Home > other >  Hadoop - 2.7.2 ZKFC format error
Hadoop - 2.7.2 ZKFC format error

Time:09-16

I installed on centos 6.5 _x64 hadoop - 2.7.2 cluster, unable to format the ZKFC (bin/HDFS ZKFC - formatZK), could not find host error, as follows:
The INFO they are. They are: Initiating the client connection, connectString=node01:2181; Node02:2181; Node03:2181 sessionTimeout=5000 watcher=org). Apache hadoop. Ha. ActiveStandbyElector $WatcherWithClientRef @ 5193 e02f
16/08/15 10:07:12 FATAL tools. DFSZKFailoverController: Got a FATAL error, exiting now
java.net.UnknownHostException: node01:2181; Node02:2181; Node03
The at java.net.Inet4AddressImpl.lookupAllHostAddr (Native Method)
The at java.net.InetAddress$1.lookupAllHostAddr InetAddress. Java: (901)
The at java.net.InetAddress.getAddressesFromNameService InetAddress. Java: (1295)
The at java.net.InetAddress.getAllByName0 InetAddress. Java: (1248)
The at java.net.InetAddress.getAllByName InetAddress. Java: (1164)
The at java.net.InetAddress.getAllByName InetAddress. Java: (1098)
At org. Apache. Zookeeper. Client. StaticHostProvider. & lt; init> (StaticHostProvider. Java: 61)
At org. Apache. Zookeeper. Zookeeper. & lt; init> (ZooKeeper. Java: 445)
At org. Apache. Zookeeper. Zookeeper. & lt; init> (ZooKeeper. Java: 380)
At org, apache hadoop. Ha.. ActiveStandbyElector getNewZooKeeper (ActiveStandbyElector. Java: 631)
At org, apache hadoop. Ha. ActiveStandbyElector. The createConnection (ActiveStandbyElector. Java: 775)
At org, apache hadoop. Ha. ActiveStandbyElector. & lt; init> (ActiveStandbyElector. Java: 229)
At org, apache hadoop. Ha.. ZKFailoverController initZK (ZKFailoverController. Java: 350)
At org, apache hadoop. Ha.. ZKFailoverController doRun (ZKFailoverController. Java: 191)
At org, apache hadoop. Ha. ZKFailoverController. Access the $000 (61) ZKFailoverController. Java:
At org, apache hadoop. Ha. ZKFailoverController $1. The run (172) ZKFailoverController. Java:
At org, apache hadoop. Ha. ZKFailoverController $1. The run (168) ZKFailoverController. Java:
At org, apache hadoop. Security. SecurityUtil. DoAsLoginUserOrFatal (SecurityUtil. Java: 415)
At org, apache hadoop. Ha. ZKFailoverController. Run (168) ZKFailoverController. Java:
At org, apache hadoop. HDFS. View DFSZKFailoverController. Main (181) DFSZKFailoverController. Java:
excuse me, may be what causes this error is operating normally (they are)?

CodePudding user response:

Configuration file inside node03 back to add: 2181
  • Related