今天在安装hadoop集群的时候,所有节点配置完毕,发现执行下面的命令的时候
hadoop@name-node:~/hadoop$ bin/hadoop fs -ls
name节点会报如下错误:
11/04/02 17:16:12 INFO security.Groups: Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; cacheTimeout=300000
11/04/02 17:16:13 WARN conf.Configuration: mapred.task.id is deprecated. Instead, use mapreduce.task.attempt.id
11/04/02 17:16:14 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 0 time(s).
11/04/02 17:16:15 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 1 time(s).
11/04/02 17:16:16 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 2 time(s).
11/04/02 17:16:17 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 3 time(s).
11/04/02 17:16:18 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 4 time(s).
11/04/02 17:16:19 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 5 time(s).
11/04/02 17:16:20 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 6 time(s).
11/04/02 17:16:21 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 7 time(s).
11/04/02 17:16:22 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 8 time(s).
11/04/02 17:16:23 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 9 time(s).
Bad connection to FS. command aborted.
hadoop@name-node:~$ sudo vim /etc/hosts