这部分的先决条件数已经安装Java(JDK 6 或者以上版本)java
下载Tachyon 0.7.1二进制发行版本:git
$ wget https://github.com/amplab/tachyon/releases/download/v0.7.1/tachyon-0.7.1-bin.tar.gz $ tar xvfz tachyon-0.7.1-bin.tar.gz $ cd tachyon-0.7.1
在执行Tachyon运行脚本以前, 不可缺乏的环境变量必须在conf/tachyon-env.sh中指定,这应该包括模板文件的建立:github
$ cp conf/tachyon-env.sh.template conf/tachyon-env.sh
独立模式的运行, 确保: * TACHYON_UNDERFS_ADDRESS
在 conf/tachyon-env.sh
的本地文件系统中设置临时目录(e.g., export TACHYON_UNDERFS_ADDRESS=/tmp
). * 远程登陆服务是打开的从而SSH本地主机会成功。 web
而后,你须要格式化Tachyon文件系统启动它。注意:自从Tachyon须要设置 RAMfs以来,基于LInux的用户启动本地系统须要用户输入他们的root 密码ubuntu
$ ./bin/tachyon format $ ./bin/tachyon-start.sh local
为了验证Tachyon正在运行,你能够访问 http://localhost:19999, 或者查看日志中 logs 文件夹中。你也能够运行一个示例程序:spa
$ ./bin/tachyon runTest Basic CACHE_THROUGH
对于第一个示例程序,你应该可以看到相似以下:日志
/Basic_File_CACHE_THROUGH has been removed 2014-02-02 09:32:02,760 INFO (TachyonFS.java:connect) - Trying to connect master @ localhost/127.0.0.1:19998 2014-02-02 09:32:02,791 INFO (MasterClient.java:getUserId) - User registered at the master localhost/127.0.0.1:19998 got UserId 10 2014-02-02 09:32:02,792 INFO (TachyonFS.java:connect) - Trying to get local worker host : hy-ubuntu 2014-02-02 09:32:02,800 INFO (TachyonFS.java:connect) - Connecting local worker @ hy-ubuntu/127.0.1.1:29998 2014-02-02 09:32:02,819 INFO (CommonUtils.java:printTimeTakenMs) - createFile with fileId 18 took 60 ms. 2014-02-02 09:32:03,194 INFO (TachyonFS.java:createAndGetUserTempFolder) - Folder /mnt/ramdisk/tachyonworker/users/10 was created! 2014-02-02 09:32:03,198 INFO (BlockOutStream.java:<init>) - /mnt/ramdisk/tachyonworker/users/10/19327352832 was created! Passed the test!
运行一个全面检查:code
$ ./bin/tachyon runTests
你能够在任什么时候候中止Tachyon经过运行:orm
$ ./bin/tachyon-stop.sh