Tachyon configuration for s3 under filesystem -



Tachyon configuration for s3 under filesystem -

i trying set tachyon on s3 filesystem. hdfs, tachyon has parameter called tachyon_underfs_hdfs_impl set "org.apache.hadoop.hdfs.distributedfilesystem". know if such parameter exists s3? if so, value?

thanks in advance help!

hadoop fs type mentioned (org.apache.hadoop.hdfs.distributedfilesystem) interface , fits needs. instead, tachyon create s3n filesystem implementation basing on scheme specified in uri of remote dfs configured tachyon_underfs_address. amazon, need specify this:

export tachyon_underfs_address=s3n://your_bucket

note "s3n", not "s3" here.

additional setup need work s3 (see error in setting tachyon on s3 under filesystem , http://tachyon-project.org/setup-ufs.html):

in ${tachyon}/bin/tachyon-env.sh: add together key id , secret key tachyon_java_opts:

-dfs.s3n.awsaccesskeyid=123 -dfs.s3n.awssecretaccesskey=456

publish dependencies required s3n hadoop filesystem implementation, version depends on version of hadoop installed. these : commons-httpclients-* , jets3t-*. that, publish tachyon_classpath mentioned in 1 of links above. can done adding export of tachyon_classpath in ${tachyon}/libexec/tachyon-config.sh before exporting classpath:

export tachyon_classpath=~/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:~/.m2/repository/net/java/dev/jets3t/jets3t/0.9.0/jets3t-0.9.0.jar export classpath="$tachyon_conf_dir/:$tachyon_jar:$tachyon_classpath":

start tachyon cluster:

./bin/tachyon format ./bin/tachyon-start.sh local

check availability via web interface: http://localhost:19999/

in logs:

${tachyon}/logs

your core-site.xml should contain next sections create sure integrated tachyon (see spark reference http://tachyon-project.org/running-spark-on-tachyon.html configuration right scala)

fs.defaultfs - specify tachyon master host-port (below defaults) fs.default.name - default name of fs, same before fs.tachyon.impl - tachyon's hadoop.filesystem implementation hint fs.s3n.awsaccesskeyid - amazon key id

fs.s3n.awssecretaccesskey - amazon secret key

<configuration> <property> <name>fs.defaultfs</name> <value>tachyon://localhost:19998</value> </property> <property> <name>fs.default.name</name> <value>tachyon://localhost:19998</value> <description>the name of default file system. uri scheme , authorization determine filesystem implementation. </description> </property> <property> <name>fs.tachyon.impl</name> <value>tachyon.hadoop.tfs</value> </property> ... <property> <name>fs.s3n.awsaccesskeyid</name> <value>123</value> </property> <property> <name>fs.s3n.awssecretaccesskey</name> <value>345</value> </property> ... </configuration>

refer path using tachyon scheme , master host port:

tachyon://master_host:master_port/path

example default tachyon master host-port:

tachyon://localhost:19998/remote_dir/remote_file.csv

tachyon

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -