0

我在集群中有以下错误:

2012-10-31 21:15:49,414 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Incompatible build versions: namenode BV = 318bc781117fa276ae81a3d111f5eeba0020634f; datanode BV = 217a3767c48ad11d4632e19a22897677268c40c4
    at org.apache.hadoop.hdfs.server.datanode.DataNode.handshake(DataNode.java:587)

我的主人有:

Subversion file:///data/1/tmp/nightly_2012-02-16_09-46-24_3/hadoop-0.20-0.20.2+923.195-1~maverick -r 217a3767c48ad11d4632e19a22897677268c40c4

所有的奴隶都有:

Subversion file:///data/1/tmp/nightly_2012-03-20_13-13-48_3/hadoop-0.20-0.20.2+923.197-1~maverick -r 318bc781117fa276ae81a3d111f5eeba0020634f 

如何将母校降级到 b195?我如何指出要安装的内部版本号?

一般来说,我在存储库中有以下内容:

cat  /etc/apt/sources.list.d/cloudera.list 
deb http://archive.cloudera.com/debian maverick-cdh3u3 contrib
deb-src http://archive.cloudera.com/debian maverick-cdh3u3 contrib
4

1 回答 1

0

总而言之,这有点hacky,但我做了以下事情来获得安装的“img”。

在我拥有所需版本号的机器上,我复制了所有 hadoop .deb 文件

/var/cache/apt/archives/ 

hadoop-0.20_0.20.2+923.197-1~maverick-cdh3_all.deb
hadoop-0.20-jobtracker_0.20.2+923.197-1~maverick-cdh3_all.deb
hadoop-0.20-namenode_0.20.2+923.197-1~maverick-cdh3_all.deb
hadoop-0.20-native_0.20.2+923.197-1~maverick-cdh3_amd64.deb
hadoop-0.20-secondarynamenode_0.20.2+923.197-1~maverick-cdh3_all.deb
hadoop-hbase_0.90.4+49.137-1~maverick-cdh3_all.deb
hadoop-hbase-master_0.90.4+49.137-1~maverick-cdh3_all.deb
hadoop-zookeeper_3.3.4+19.3-1~maverick-cdh3_all.deb
hadoop-zookeeper-server_3.3.4+19.3-1~maverick-cdh3_all.deb

然后我只需为所有软件包运行 dpkg -i ,因此我可以“安装”适当的版本

于 2012-11-06T08:51:55.133 回答