I’m using CDH5, upgraded failed from CDH4 and then reinstalled directly.
/etc/hadoop/conf is linked to /etc/hadoop/conf/conf.cloudera.mapreduce1/.
Deploy Client Configuration does not make it right.
The way fix it is manually set a new path and remove the old one, like:
1 2 |
ssh hadoop5 alternatives --set hadoop-conf /etc/hadoop/conf.cloudera.yarn; ssh hadoop5 alternatives --remove hadoop-conf /etc/hadoop/conf.cloudera.mapreduce1/ |
But the next time you try Deploy Client Configuration would corrupt it again.
1 2 3 4 5 6 7 8 9 10 11 |
[root@hadoop4 daily]# alternatives --config hadoop-conf There are 5 programs which provide 'hadoop-conf'. Selection Command ----------------------------------------------- *+ 1 /etc/hadoop/conf.cloudera.mapreduce1 2 /etc/hadoop/conf.cloudera.hdfs1 3 /etc/hadoop/conf.cloudera.yarn 4 /opt/cloudera/parcels/CDH-5.0.0-0.cdh5b1.p0.57/etc/hadoop/conf.empty 5 /etc/hadoop/conf.cloudera.hdfs |
Delete files and alternatives config
1 2 3 4 |
ssh hadoop5 alternatives --set hadoop-conf /etc/hadoop/conf.cloudera.yarn; ssh hadoop5 alternatives --remove hadoop-conf /etc/hadoop/conf.cloudera.mapreduce1/; ssh hadoop5 alternatives --remove hadoop-conf /etc/hadoop/conf.cloudera.hdfs1; ssh hadoop5 rm -rf /etc/hadoop/conf*1; |
Deploy again, no mapreduce1 now.
This also works for Hive:
1 2 3 |
ssh hadoop5 alternatives --remove hive-conf /etc/hive/conf.cloudera.hive1/; ssh hadoop5 alternatives --set hive-conf /etc/hive/conf.cloudera.hive; ssh hadoop5 rm -rf /etc/hive/conf.cloudera.hive1; |
Fix Hadoop Conf Alternatives for CDH5 by @sskaje: https://sskaje.me/2014/02/fix-hadoop-conf-alternatives-cdh5/
Incoming search terms:
Link to this post!