首页 > 代码库 > tachyon with hadoop

tachyon with hadoop


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.shsbin/start-yarn.sh

4.启动tachyon

tachyon-start.sh local

技术分享

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 tfs cat /out/part-r-00000

技术分享

 


 

tachyon with hadoop