我正在我的 ubuntu 12.04 系统上安装 CDH4。当我使用 update-alternative 指向我的 hadoop_conf 时,它会抛出一个错误。我到处搜索,但没有找到解决这个问题的办法。
使用的命令:- sudo update-alternatives --install/etc/hadoop/conf hadoop-conf/etc/hadoop/conf.my_cluster 50
sudo update-alternatives --set hadoop-conf /etc/hadoop/conf.my_cluster
这给出了一个错误...
update-alternatives: error: cannot stat file '/etc/hadoop/conf.my_cluster': Too many levels of symbolic links
请帮忙。我正在尝试在 Ubuntu 12.04LTS 上设置一个 3 节点集群
最佳答案
sudo update-alternatives --set hadoop-conf $(readlink -f /etc/hadoop/conf.my_cluster)
关于ubuntu - update-alternatives 在 CDH4 安装中抛出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23092367/