-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from amplab/master
merge
- Loading branch information
Showing
211 changed files
with
33,996 additions
and
13,693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,11 @@ | |
.settings/ | ||
conf/tachyon-env.sh | ||
data/ | ||
docs/_site | ||
docs/api | ||
docs/serve/ | ||
journal/ | ||
logs/ | ||
script/ | ||
tachyon.iml | ||
target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
layout: global | ||
title: Building Tachyon Master Branch | ||
--- | ||
|
||
This guide describes how to compile Tachyon from the beginning. | ||
|
||
The prerequisite for this guide is that you have [Java 6 (or above)](Java-Setup.html), | ||
[Maven](Maven.html), and [Thrift 0.9 (Optional)](Thrift.html) installed. | ||
|
||
Checkout Tachyon master branch from Github, and package: | ||
|
||
$ git clone git://github.com/amplab/tachyon.git | ||
$ cd tachyon | ||
$ mvn package | ||
|
||
If you want to build a particular version of Tachyon, for example {{site.TACHYON_RELEASED_VERSION}}, | ||
please do `git checkout v{{site.TACHYON_RELEASED_VERSION}}` after `cd tachyon`. | ||
|
||
The Maven build system fetches its dependencies, compiles, runs system's unit tests, and package the | ||
system. If this is the first time you are building the project, it can take a while to download all | ||
the dependencies. Subsequent builds, however, will be much faster. | ||
|
||
Once it is built, you can start the Tachyon: | ||
|
||
$ cp conf/tachyon-env.sh.template conf/tachyon-env.sh | ||
$ ./bin/tachyon format | ||
$ ./bin/tachyon-start.sh local | ||
|
||
To verify that Tachyon is running, you can visit [http://localhost:19999](http://localhost:19999), | ||
or see the log in the folder tachyon/logs. You can also run a simple program: | ||
|
||
$ ./bin/tachyon runTest Basic CACHE_THROUGH | ||
|
||
You should be able to see results similar to the following: | ||
|
||
/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! | ||
|
||
You can also stop the system by using: | ||
|
||
$ ./bin/tachyon-stop.sh | ||
|
||
# Unit tests | ||
|
||
To run all unit tests: | ||
|
||
$ mvn test | ||
|
||
To run all the unit tests with under filesystem other than local filesystem: | ||
|
||
$ mvn test [ -Dhadoop.version=x.x.x ] -Dintegration [ -Dufs=tachyon.LocalMiniDFSCluster ] |
Oops, something went wrong.