hadoop2.2.0 jdk1.7 tachyon0.5.0 无zookeeper

tachyon和hadoop都是伪分布式模式


 

1.修改core-site.xml文件

<property>
 <name>fs.tachyon.impl</name>
 <value>tachyon.hadoop.TFS</value>
</property>

2.配置hadoop-env.sh

hadoop-env.sh文件中添加Tachyon客户端jar包路径的环境变量

export HADOOP_CLASSPATH=/home/hadoop/tachyon-0.5.0-bin/client/target/tachyon-client-0.5.0-jar-with-dependencies.jar

3.启动hadoop集群

sbin/start-dfs.sh
sbin/start-yarn.sh

4.启动tachyon

tachyon-start.sh local

tachyon with hadoop

5.执行MR作业

hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.2.0.jar wordcount -libjars /home/hadoop/tachyon-0.5.0-bin/client/target/tachyon-client-0.5.0-jar-with-dependencies.jar tachyon://hadoop:19998/test/passwd tachyon://hadoop:19998/out

6.查看结果

tachyon with hadoop

tachyon tfs cat /out/part-r-00000

tachyon with hadoop

 


 

相关文章:

  • 2021-04-19
  • 2022-12-23
  • 2021-05-19
  • 2021-11-03
  • 2022-01-24
  • 2022-02-27
  • 2021-12-16
  • 2021-10-27
猜你喜欢
  • 2021-10-07
  • 2022-12-23
  • 2022-01-21
  • 2022-01-16
  • 2021-08-06
  • 2022-01-28
  • 2022-02-02
相关资源
相似解决方案