1
2
3
4
5
|
[hadoop@hddcluster2 script]$ ls /etc/init .d /hadoop .sh
ls : cannot access /etc/init .d /hadoop .sh: Too many levels of symbolic links
[hadoop@hddcluster2 script]$ ls /home/hadoop/script/hadoop .sh /etc/init .d /hadoop .sh
ls : cannot access /etc/init .d /hadoop .sh: Too many levels of symbolic links
/home/hadoop/script/hadoop .sh
|
解决办法:sudo 删除链接,然后补上全路径。
在做ln的时候要将文件的绝对路径下的完整目录写上去!例子如下:
1
2
3
4
5
6
7
8
9
10
11
12
|
[hadoop@hddcluster2 script]$ sudo rm /etc/init .d /hadoop .sh
[hadoop@hddcluster2 script]$ sudo ln -s /home/hadoop/script/hadoop .sh /etc/init .d /hadoop .sh
[hadoop@hddcluster2 script]$ /etc/init .d /hadoop .sh st
/etc/init .d /hadoop .sh {start|stop|restart|status}
[hadoop@hddcluster2 script]$ /etc/init .d /hadoop .sh status
11283 ResourceManager 12323 Jps 10836 DataNode 10694 NameNode 11033 SecondaryNameNode 11610 NodeManager 11756 JobHistoryServer |
本文转自 yanconggod 51CTO博客,原文链接:http://blog.51cto.com/yanconggod/1903566