Chukwa集成Hadoop如何处理IPC版本兼容问题

版本信息:

hadoop-0.22.0

chukwa-incubating-0.5.0

在Chukwa的Collector启动过程中如下以下错误:

INFO LocalToRemoteHdfsMover LocalToRemoteHdfsMover - remote fs name is hdfs://xx:12000
WARN LocalToRemoteHdfsMover LocalToRemoteHdfsMover - Error in LocalToHdfsMover
org.apache.hadoop.ipc.RemoteException:Server IPC version 5 cannot communicate with client version 4

原因分析:

hadoop-0.22.0使用的IPC版本为5,而chukwa-incubating-0.5.0依赖的hadoop库使用的IPC版本为4。

解决方案:

chukwa-incubating-0.5.0\share\chukwa\lib\目录下,删除hadoop-core-1.0.0.jarhadoop-test-1.0.0.jar

将hadoop目录下的4个文件复制到chukwa-incubating-0.5.0\share\chukwa\lib\目录下:

hadoop-hdfs-0.22.0.jar

hadoop-hdfs-test-0.22.0.jar

hadoop-common-0.22.0.jar

hadoop-common-test-0.22.0.jar

你可能感兴趣的:(hadoop,chukwa)