2013-10-19 2 views
1

Cloudera Manager를 사용하여 단일 노드 클러스터를 설정하려고합니다. 여기에 최신 문제가 있습니다. 나는 모든 서비스를 시작하려고하면Cloudera Manager와 Pseudo Distributed 모드로 Hadoop 설정 - 데이터 노드가 시작되지 않음

, HDFS가 시작되지 않습니다, 데이터 노드에 문제가 나타납니다 - 내가 호스트 관리자를 실행하면주는 치명적인 오류 메시지가

Initialization failed for block pool Block pool BP-1896453393-127.0.1.1-1382183730690 (storage id DS-185043233-127.0.1.1-50010-1382183775494) service to Hadoop1/127.0.1.1:8022 
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException): Datanode denied communication with namenode: DatanodeRegistration(127.0.0.1, storageID=DS-185043233-127.0.1.1-50010-1382183775494, infoPort=50075, ipcPort=50020, storageInfo=lv=-40;cid=cluster25;nsid=1577346304;c=0) 
at org.apache.hadoop.hdfs.server.blockmanagement.DatanodeManager.registerDatanode(DatanodeManager.java:656) 
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.registerDatanode(FSNamesystem.java:3495) 
at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.registerDatanode(NameNodeRpcServer.java:899) 
at 
... 

, 그것은 이 문제가 사용하는 IP 주소와 관련된 것, 그리고 문제의 원인은 다음과 같습니다 내/etc/hosts 파일에있을 수 있습니다, 인터넷 검색에서

The following errors were found while checking /etc/hosts... 

The hostname Hadoop1 maps to 127.0.1.1 in /etc/hosts. 
This setting, typically found in Debian and Ubuntu environments, typically causes issues. 
We recommend either using the standard loopback address (127.0.0.1) or specifying the appropriate IP address for your host. 

: 다음과 같은 경고를 제공합니다.

127.0.0.1 localhost 
127.0.1.1 Hadoop1 

# The following lines are desirable for IPv6 capable hosts 
::1  ip6-localhost ip6-loopback 
fe00::0 ip6-localnet 
ff00::0 ip6-mcastprefix 
ff02::1 ip6-allnodes 
ff02::2 ip6-allrouters 

답변

0

이 대신은/etc에서 127.0.1.1을 사용하는 분류 당함/호스트 내가 ifconfig를의 지점 섹션에 기계의 IP 주소를 사용하는 파일. IP를이에서 :

은 ifconfig의 출력은 INET 요지를 타고

ppp0  Link encap:Point-to-Point Protocol 
      inet addr:xxx.xxx.xxx.xxx P-t-P:xx.xx.xx.xx Mask:255.255.255.255 
      UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1440 Metric:1 
      RX packets:800950 errors:1 dropped:0 overruns:0 frame:0 
      TX packets:454479 errors:0 dropped:0 overruns:0 carrier:0 
      collisions:0 txqueuelen:3 
      RX bytes:1115444967 (1.1 GB) TX bytes:32007110 (32.0 MB) 

같은 부분이있을 것이다.

또는 정확한 라인

ifconfig | grep P-t-P 

를 실행합니다.

관련 문제