To make Hive read/write to Tachyon, I
have modified core-site.xml of hadoop to make Tachyon as default dfs.
But it's causing below error:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/users/nish191/software/tez-0.7.1-SNAPSHOT/tachyon-client-0.8.3-SNAPSHOT-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/users/nish191/software/tez-0.7.1-SNAPSHOT/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/users/nish191/software/hadoop-2.6.0/share/hadoop/common/lib/tachyon-client-0.8.3-SNAPSHOT-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/users/nish191/software/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See
http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2015-11-29 22:52:47,882 INFO [main] (AbstractTFS.java:initialize(331)) - initialize(tachyon://
10.10.1.1:19998/wordcount/input.txt,
Configuration: core-default.xml, core-site.xml, mapred-default.xml,
mapred-site.xml, yarn-default.xml, yarn-site.xml, hdfs-default.xml,
hdfs-site.xml). Connecting to Tachyon: tachyon://
10.10.1.1:19998/wordcount/input.txt2015-11-29 22:52:47,893 INFO [main] (ConfUtils.java:loadFromHadoopConfiguration(91)) - Loading Tachyon properties from Hadoop configuration: {tachyon.user.file.understoragetype.default=SYNC_PERSIST}
2015-11-29
22:52:47,939 INFO [main] (ClientBase.java:connect(112)) - Tachyon
client (version 0.8.3-SNAPSHOT) is trying to connect with BlockMaster
master @ /
10.10.1.1:199982015-11-29 22:52:47,962 INFO [main] (ClientBase.java:connect(120)) - Client registered with BlockMaster master @ /
10.10.1.1:199982015-11-29
22:52:48,013 INFO [main] (ClientBase.java:connect(112)) - Tachyon
client (version 0.8.3-SNAPSHOT) is trying to connect with
FileSystemMaster master @ /
10.10.1.1:199982015-11-29 22:52:48,014 INFO [main] (ClientBase.java:connect(120)) - Client registered with FileSystemMaster master @ /
10.10.1.1:199982015-11-29 22:52:48,030 INFO [main] (AbstractTFS.java:initialize(352)) - tachyon://
10.10.1.1:19998 tachyon://
10.10.1.1:19998 hdfs://
10.10.1.1:80202015-11-29 22:52:48,031 INFO [main] (AbstractTFS.java:getWorkingDirectory(319)) - getWorkingDirectory: /
2015-11-29 22:52:48,031 INFO [main] (AbstractTFS.java:getWorkingDirectory(319)) - getWorkingDirectory: /
2015-11-29 22:52:48,881 INFO [main] impl.TimelineClientImpl (TimelineClientImpl.java:serviceInit(285)) - Timeline service address:
http://10.10.1.1:8188/ws/v1/timeline/2015-11-29 22:52:49,011 INFO [main] client.RMProxy (RMProxy.java:createRMProxy(98)) - Connecting to ResourceManager at /
10.10.1.1:80322015-11-29 22:52:49,137 INFO [main] client.AHSProxy (AHSProxy.java:createAHSProxy(42)) - Connecting to Application History server at /
10.10.1.1:102002015-11-29 22:52:49,525 INFO [main] (AbstractTFS.java:getFileStatus(271)) - getFileStatus(tachyon://
10.10.1.1:19998/wordcount/output): HDFS Path: hdfs://
10.10.1.1:8020/wordcount/output TPath: tachyon://
10.10.1.1:19998/wordcount/outputorg.apache.hadoop.mapred.FileAlreadyExistsException: Output directory tachyon://
10.10.1.1:19998/wordcount/output already exists
at org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:146)
at org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:562)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:432)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1296)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1293)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1628)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1293)
at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1314)
at org.apache.hadoop.examples.WordCount.main(WordCount.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71)
at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144)
at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)