20/11/29 14:47:53 INFO zookeeper.ZooKeeper: Client environment:java.library.path=/export/servers/hadoop-2.6.0/lib/native
20/11/29 14:47:53 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp
20/11/29 14:47:53 INFO zookeeper.ZooKeeper: Client environment:java.compiler=
20/11/29 14:47:53 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
20/11/29 14:47:53 INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
20/11/29 14:47:53 INFO zookeeper.ZooKeeper: Client environment:os.version=3.10.0-693.el7.x86_64
20/11/29 14:47:53 INFO zookeeper.ZooKeeper: Client environment:user.name=root
20/11/29 14:47:53 INFO zookeeper.ZooKeeper: Client environment:user.home=/root
20/11/29 14:47:53 INFO zookeeper.ZooKeeper: Client environment:user.dir=/export/servers/zookeeper-3.4.5/conf
20/11/29 14:47:53 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=master:2181;slave1:2181;slave2:2181 sessionTimeout=5000 watcher=org.apache.hadoop.ha.ActiveStandbyElector$WatcherWithClientRef@20ce78ec
Exception in thread “main” java.net.UnknownHostException: master:2181;slave1:2181;slave2: Name or service not known
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at org.apache.zookeeper.client.StaticHostProvider.(StaticHostProvider.java:61)
at org.apache.zookeeper.ZooKeeper.(ZooKeeper.java:445)
at org.apache.zookeeper.ZooKeeper.(ZooKeeper.java:380)
at org.apache.hadoop.ha.ActiveStandbyElector.getNewZooKeeper(ActiveStandbyElector.java:628)
at org.apache.hadoop.ha.ActiveStandbyElector.createConnection(ActiveStandbyElector.java:767)
at org.apache.hadoop.ha.ActiveStandbyElector.(ActiveStandbyElector.java:227)
at org.apache.hadoop.ha.ZKFailoverController.initZK(ZKFailoverController.java:348)
at org.apache.hadoop.ha.ZKFailoverController.doRun(ZKFailoverController.java:189)
at org.apache.hadoop.ha.ZKFailoverController.access$000(ZKFailoverController.java:61)
at org.apache.hadoop.ha.ZKFailoverController$1.run(ZKFailoverController.java:170)
at org.apache.hadoop.ha.ZKFailoverController$1.run(ZKFailoverController.java:166)
at org.apache.hadoop.security.SecurityUtil.doAsLoginUserOrFatal(SecurityUtil.java:412)
at org.apache.hadoop.ha.ZKFailoverController.run(ZKFailoverController.java:166)
at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:180)
救救孩子吧 名称和myid还有配置文件的名称都看过了 格式化zkfc还是这个样子 大佬们快救救孩子