格式化zkfc失败,有一个从节点出现name or service not known

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=<NA>
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.<init>(StaticHostProvider.java:61)
    at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:445)
    at org.apache.zookeeper.ZooKeeper.<init>(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.<init>(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)
 

查看全部
qq_45646901
sky-ing
2020/11/29 15:26
  • linux
  • centos
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复