Java tachyon0.8.2与hadoop2.6.0一起部署,但IPC版本不匹配

Java tachyon0.8.2与hadoop2.6.0一起部署,但IPC版本不匹配,java,hadoop,alluxio,Java,Hadoop,Alluxio,现在,我想在我的ubuntu14.04上部署tachyon0.8.2,我已经有了hadoop和spark: 论主人 bd@master$ jps 11871 Jps 3388 Master 2919 NameNode 3266 ResourceManager 3123 SecondaryNameNode 论奴隶 bd@slave$ jps 4350 Jps 2778 NodeManager 2647 DataNode 2879 Worker 我是taachyon-env.sh的编辑: exp

现在,我想在我的ubuntu14.04上部署tachyon0.8.2,我已经有了hadoop和spark: 论主人

bd@master$ jps
11871 Jps
3388 Master
2919 NameNode
3266 ResourceManager
3123 SecondaryNameNode
论奴隶

bd@slave$ jps
4350 Jps
2778 NodeManager
2647 DataNode
2879 Worker
我是taachyon-env.sh的编辑:

export TACHYON_MASTER_ADDRESS=${TACHYON_MASTER_ADDRESS:-master}
export TACHYON_UNDERFS_ADDRESS=${TACHYON_UNDERFS_ADDRESS:-hdfs://master:9000}
然后,我运行
bin/tachyon格式
bin/tachyon-start.sh local
。 我在
JPS
中看不到超光速大师:

/usr/local/bigdata/tachyon-0.8.2 [06:06:32]
bd$ bin/tachyon-start.sh local
Killed 0 processes on master
Killed 0 processes on master
Connecting to master as bd...
Killed 0 processes on master
Connection to master closed.
[sudo] password for bd:
Formatting RamFS: /mnt/ramdisk (512mb)
Starting master @ master
Starting worker @ master
/usr/local/bigdata/tachyon-0.8.2 [06:06:54]
bd$ jps
12183 TachyonWorker
3388 Master
2919 NameNode
3266 ResourceManager
3123 SecondaryNameNode
12203 Jps
我在master.logs中看到了日志,我说:

2015-12-27 18:06:50,635 ERROR MASTER_LOGGER (MetricsConfig.java:loadConfigFile) - Error loading metrics configuration file.
2015-12-27 18:06:51,735 ERROR MASTER_LOGGER (HdfsUnderFileSystem.java:<init>) - Exception thrown when trying to get FileSystem for hdfs://master:9000
org.apache.hadoop.ipc.RemoteException: Server IPC version 9 cannot communicate with client version 4
    at org.apache.hadoop.ipc.Client.call(Client.java:1070)
    at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
    at com.sun.proxy.$Proxy1.getProtocolVersion(Unknown Source)
    at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)
    at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379)
    at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:119)
    at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:238)
    at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:203)
    at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:89)
    at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1386)
    at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)
    at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1404)
    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:254)
    at org.apache.hadoop.fs.Path.getFileSystem(Path.java:187)
    at tachyon.underfs.hdfs.HdfsUnderFileSystem.<init>(HdfsUnderFileSystem.java:74)
    at tachyon.underfs.hdfs.HdfsUnderFileSystemFactory.create(HdfsUnderFileSystemFactory.java:30)
    at tachyon.underfs.UnderFileSystemRegistry.create(UnderFileSystemRegistry.java:116)
    at tachyon.underfs.UnderFileSystem.get(UnderFileSystem.java:100)
    at tachyon.underfs.UnderFileSystem.get(UnderFileSystem.java:83)
    at tachyon.master.TachyonMaster.connectToUFS(TachyonMaster.java:412)
    at tachyon.master.TachyonMaster.startMasters(TachyonMaster.java:280)
    at tachyon.master.TachyonMaster.start(TachyonMaster.java:261)
    at tachyon.master.TachyonMaster.main(TachyonMaster.java:64)
2015-12-27 18:06:51,742 ERROR MASTER_LOGGER (TachyonMaster.java:main) - Uncaught exception terminating Master
java.lang.IllegalArgumentException: All eligible Under File Systems were unable to create an instance for the given path: hdfs://master:9000
java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException: Server IPC version 9 cannot communicate with client version 4

    at tachyon.underfs.UnderFileSystemRegistry.create(UnderFileSystemRegistry.java:132)
    at tachyon.underfs.UnderFileSystem.get(UnderFileSystem.java:100)
    at tachyon.underfs.UnderFileSystem.get(UnderFileSystem.java:83)
    at tachyon.master.TachyonMaster.connectToUFS(TachyonMaster.java:412)
    at tachyon.master.TachyonMaster.startMasters(TachyonMaster.java:280)
    at tachyon.master.TachyonMaster.start(TachyonMaster.java:261)
    at tachyon.master.TachyonMaster.main(TachyonMaster.java:64)
2015-12-27 18:06:50635错误主记录器(MetricsConfig.java:loadConfigFile)-加载度量配置文件时出错。
2015-12-27 18:06:51735错误主记录程序(HdfsUnderFileSystem.java:)-尝试获取的文件系统时引发异常hdfs://master:9000
org.apache.hadoop.ipc.RemoteException:服务器ipc版本9无法与客户端版本4通信
位于org.apache.hadoop.ipc.Client.call(Client.java:1070)
位于org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
位于com.sun.proxy.$Proxy1.getProtocolVersion(未知源)
位于org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)
位于org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379)
位于org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:119)
位于org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:238)
位于org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:203)
位于org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:89)
位于org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1386)
位于org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)
位于org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1404)
位于org.apache.hadoop.fs.FileSystem.get(FileSystem.java:254)
位于org.apache.hadoop.fs.Path.getFileSystem(Path.java:187)
在tachyon.underfs.hdfs.HdfsUnderFileSystem.(HdfsUnderFileSystem.java:74)
在tachyon.underfs.hdfs.HdfsUnderFileSystemFactory.create(HdfsUnderFileSystemFactory.java:30)
位于tachyon.underfs.UnderFileSystemRegistry.create(UnderFileSystemRegistry.java:116)
位于tachyon.underfs.UnderFileSystem.get(UnderFileSystem.java:100)
位于tachyon.underfs.UnderFileSystem.get(UnderFileSystem.java:83)
位于tachyon.master.TachyonMaster.connectToUFS(TachyonMaster.java:412)
在tachyon.master.TachyonMaster.startMasters(TachyonMaster.java:280)
在tachyon.master.TachyonMaster.start(TachyonMaster.java:261)
位于tachyon.master.TachyonMaster.main(TachyonMaster.java:64)
2015-12-27 18:06:51742错误主记录程序(TachyonMaster.java:main)-未捕获异常终止主记录程序
java.lang.IllegalArgumentException:文件系统下所有符合条件的用户都无法为给定路径创建实例:hdfs://master:9000
java.lang.RuntimeException:org.apache.hadoop.ipc.RemoteException:服务器ipc版本9无法与客户端版本4通信
位于tachyon.underfs.UnderFileSystemRegistry.create(UnderFileSystemRegistry.java:132)
位于tachyon.underfs.UnderFileSystem.get(UnderFileSystem.java:100)
位于tachyon.underfs.UnderFileSystem.get(UnderFileSystem.java:83)
位于tachyon.master.TachyonMaster.connectToUFS(TachyonMaster.java:412)
在tachyon.master.TachyonMaster.startMasters(TachyonMaster.java:280)
在tachyon.master.TachyonMaster.start(TachyonMaster.java:261)
位于tachyon.master.TachyonMaster.main(TachyonMaster.java:64)

如何解决此问题?

此异常是由于Hadoop客户端和服务器端的版本不匹配引起的。检查Hadoop版本,然后使用以下命令针对该版本重新编译Tachyon:

mvn-Dhadoop.version=您的\u hadoop\u版本干净安装

示例:
mvn-Dhadoop.version=2.4.0干净安装


现在配置编译过的超光速粒子,它应该可以正常工作了。参考。

我认为问题在于
org.apache.hadoop.ipc.RemoteException:服务器ipc版本9无法在org.apache.hadoop.ipc.client.call(client.java:1070)与客户端版本4通信。