Tachyon 0.7.1伪分布式集群安装与测试
Tachyon是一個高容錯的分布式文件系統(tǒng),允許文件以內(nèi)存的速度在集群框架中進(jìn)行可靠的共享,就像Spark和 MapReduce那樣。通過利用信息繼承,內(nèi)存侵入,Tachyon獲得了高性能。Tachyon工作集文件緩存在內(nèi)存中,并且讓不同的 Jobs/Queries以及框架都能內(nèi)存的速度來訪問緩存文件。因此,Tachyon可以減少那些需要經(jīng)常使用的數(shù)據(jù)集通過訪問磁盤來獲得的次數(shù)。
源碼下載
源碼地址:https://github.com/amplab/tachyon
git clone https://github.com/amplab/tachyon.git
編譯
進(jìn)入 TACHYON_HOME
git tagv0.1.0 v0.2.0 v0.2.1 v0.3.0 v0.4.0 v0.4.1 v0.4.1-thrift v0.5.0 v0.6.0 v0.6.1 v0.6.2 v0.6.3 v0.6.4 v0.7.0 v0.7.0-rc1 v0.7.1切換到v0.7.1版本
git checkout v0.7.1 Note: checking out 'v0.7.1'.You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:git checkout -b new_branch_nameHEAD 目前位于 a2b69c9... [maven-release-plugin] prepare release v0.7.1執(zhí)行如下命令:
export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m" mvn clean package -Dhadoop.version=2.3.0-cdh5.1.0 -Dspark.version=1.4.1 -DskipTests配置
mkdir -p /home/cluster/apps/tachyon/journal
mkdir -p /home/cluster/apps/tachyon/ramdisk
mv conf/tachyon-env.sh.template conf/tachyon-env.sh
tachyon_home/下創(chuàng)建logs目錄
mkdir logs
vim conf/log4j.properties 增加如下內(nèi)容:
tachyon.logs.dir=/home/cluster/apps/tachyon/logs
mv conf/core-site.xml.template conf/core-site.xml
編輯 conf/core-site.xml,增加如下內(nèi)容:
<configuration>
<property>
<name>fs.tachyon.impl</name>
<value>tachyon.hadoop.TFS</value>
</property>
</configuration>
啟動
bin/tachyon-start.sh local Killed 0 processes on wangyue-um Killed 0 processes on wangyue-um Connecting to localhost as wangyue... Killed 0 processes on wangyue-um Connection to localhost closed. [sudo] password for wangyue: Formatting RamFS: /home/cluster/apps/tachyon/ramdisk (1gb) Starting master @ master Starting worker @ wangyue-umjps下: 21025 ZeppelinServer 22214 Worker 21987 Master 21360 TachyonWorker 32212 RemoteInterpreterServer 23361 NameNode 29603 RemoteInterpreterServer 21324 TachyonMaster 23493 DataNode 21412 Jps 27005 RemoteInterpreterServer已經(jīng)啟動TachyonMaster & TachyonWorkertachyon-start.sh local命令將同時在本地啟動Master和Worker進(jìn)程。需要注意的是,運(yùn)行tachyon-start.sh local命令一定要擁有切換root的密碼,否者會無法啟動。這是因?yàn)镽amFS的格式化需要root權(quán)限。
測試
webui:http://master:19999
停止
wangyue@wangyue-um:/home/cluster/apps/tachyon$ bin/tachyon-stop.sh Killed 1 processes on wangyue-um Killed 1 processes on wangyue-um Connecting to localhost as wangyue... Killed 0 processes on wangyue-um Connection to localhost closed.執(zhí)行jps: 21025 ZeppelinServer 22214 Worker 21987 Master 32212 RemoteInterpreterServer 23361 NameNode 29603 RemoteInterpreterServer 27469 Jps 23493 DataNode 27005 RemoteInterpreterServer 沒有tachyon相關(guān)進(jìn)程尊重原創(chuàng),拒絕轉(zhuǎn)載,http://blog.csdn.net/stark_summer/article/details/48321605
版權(quán)聲明:本文為博主原創(chuàng)文章,未經(jīng)博主允許不得轉(zhuǎn)載。
轉(zhuǎn)載于:https://www.cnblogs.com/stark-summer/p/4829743.html
總結(jié)
以上是生活随笔為你收集整理的Tachyon 0.7.1伪分布式集群安装与测试的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: BZOJ 2456: mode 水题
- 下一篇: debian7更换gcc版本的二种方法分