2016-08-04 68 views
0

我安装了一个四节点hadoop集群。在hadoop Webui我可以看到所有的datanode和namenode已启动并正在运行。但是当我在配置单元中运行select count(*) from table_name;时,查询正在卡住。Map减少工作虽然Hadoop是卡住了

hive> select count(*) from test_hive2; 
Query ID = dssbp_20160804124833_ff269da1-6b91-4e46-a1df-460603a5cb98 
Total jobs = 1 
Launching Job 1 out of 1 
Number of reduce tasks determined at compile time: 1 
In order to change the average load for a reducer (in bytes): 
    set hive.exec.reducers.bytes.per.reducer=<number> 
In order to limit the maximum number of reducers: 
    set hive.exec.reducers.max=<number> 
In order to set a constant number of reducers: 
    set mapreduce.job.reduces=<number> 

,我很continiously在我的DataNode节点管理器日志和日志蜂巢得到的错误是:

2016-08-04 12:33:31,474 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: namenode1/172.18.128.24:6005. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS) 

的事情,我已经检查:

1.可做到的telnet从数据节点命名节点。
2.可以执行hadoop放置命令。
3.可以在配置单元中创建表并向其中加载数据。

cat /etc/hosts 
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 
#::1   localhost localhost.localdomain localhost6 localhost6.localdomain6 
172.18.128.24 namenode1 mycluster 
172.18.128.25 namenode2 
172.18.128.26 datanode1 
172.18.128.27 datanode2 

如果任何人可以提出可能的解决方案,这将是很大的帮助。

问候, 兰詹

+1

你可以运行一个主机名-f和主机名-i并粘贴输出吗? –

回答

0

我可能能够解决这个问题的存在一些问题,与资源管理器和数据节点,它无法连接到172.18.128.24:6005此端口。