hadoop:跑网上的伪分布式wordcount出现问题

sh/bash/dash/ksh/zsh等Shell脚本
回复
xph4444
帖子: 2
注册时间: 2009-08-08 22:33

hadoop:跑网上的伪分布式wordcount出现问题

#1

帖子 xph4444 » 2009-08-08 22:37

http://www.ibm.com/developerworks/cn/op ... index.html

前一天头几次跑这个伪分布式wordcount的时候都成功了,可是第二天再做的时候居然失败了!

当做到 $ bin/hadoop dfs -put ./test-in input 这一步时 会提示以下信息:


09/02/02 11:18:59 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 1 time(s).
09/02/02 11:19:00 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 2 time(s).
09/02/02 11:19:01 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 3 time(s).
09/02/02 11:19:02 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 4 time(s).
09/02/02 11:19:04 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 5 time(s).
09/02/02 11:19:05 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 6 time(s).
09/02/02 11:19:06 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 7 time(s).
09/02/02 11:19:07 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 8 time(s).
09/02/02 11:19:08 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 9 time(s).
09/02/02 11:19:09 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 10 time(s).
Bad connection to FS. command aborted

请问到底是怎么回事?
我在firestarter防火墙打开和关闭的情况下都不能成功。
而且我发现当输入java -version后并不会出现java 的信息,而是出现以下信息:

......(省略)
bash: java: command not found


但是以前都不会的,可我什么信息都没有修改呀
xge.ustc
帖子: 1
注册时间: 2009-08-14 21:43

Re: hadoop:跑网上的伪分布式wordcount出现问题

#2

帖子 xge.ustc » 2009-08-14 21:46

3个配置文件中,用localhost
master slaves中也用localhost
hadoop-env.sh中配置好java环境变量
blueprince0817
帖子: 31
注册时间: 2011-04-14 16:14

Re: hadoop:跑网上的伪分布式wordcount出现问题

#3

帖子 blueprince0817 » 2011-04-25 19:25

同样的问题,顶起,求解
andywang0723
帖子: 1
注册时间: 2011-06-25 13:59

Re: hadoop:跑网上的伪分布式wordcount出现问题

#4

帖子 andywang0723 » 2011-06-25 14:01

防火墙没有开 sudo ufw disable
回复