kKam000nG
2015-07-05 14:23
root@11:/opt/hadoop-1.2.1/bin# jps
10468 JobTracker
12393 Jps
并非视频中那些进程,看其他同学的问答后检查了自己的配置文件,但是并不知道具体问题。请老师讲解一下可能出错的地方
以及
root@11:/opt/hadoop-1.2.1/bin# hadoop fs -ls /
Warning: $HADOOP_HOME is deprecated.
15/07/05 02:21:29 INFO ipc.Client: Retrying connect to server: 0.0.0.11/0.0.0.11:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
15/07/05 02:21:30 INFO ipc.Client: Retrying connect to server: 0.0.0.11/0.0.0.11:9000. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
15/07/05 02:21:31 INFO ipc.Client: Retrying connect to server: 0.0.0.11/0.0.0.11:9000. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
^Croot@11:/opt/hadoop-1.2.1/bin# ^C
配置文件出错了。可能的问题,可能是配错了主机名和目录。视频里用的是imooc和目录,需要替换成你实际的主机名和目录。
我在jps后,Datanode一直没有运行。把hdfs-site.xml的value改为/hadoop/dfs/data就好了(视频里为/hadoop/data)。小伙伴们可以试试
认识Hadoop--基础篇
138918 学习 · 363 问题
相似问题