码迷,mamicode.com
首页 > 其他好文 > 详细

hadoop安装报错

时间:2016-09-09 01:06:46      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:hadoop   zookeeper   

安装hadoop HA的时候,格式化ZK,执行hdfs zkfc –formatZK命令 报错如下:


16/09/08 20:41:53 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=>hddata1:2181,hddata2:2181,hddata3:2181 sessionTimeout=5000 watcher=org.apache.hadoop.ha.ActiveStandbyElector$WatcherWithClientRef@5dd308e3

16/09/08 20:41:53 FATAL tools.DFSZKFailoverController: Got a fatal error, exiting now

java.net.UnknownHostException: >hddata1

at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)

at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)

at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1295)

at java.net.InetAddress.getAllByName0(InetAddress.java:1248)

at java.net.InetAddress.getAllByName(InetAddress.java:1164)

at java.net.InetAddress.getAllByName(InetAddress.java:1098)

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:631)

at org.apache.hadoop.ha.ActiveStandbyElector.createConnection(ActiveStandbyElector.java:775)

at org.apache.hadoop.ha.ActiveStandbyElector.<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$000(ZKFailoverController.java:61)

at org.apache.hadoop.ha.ZKFailoverController$1.run(ZKFailoverController.java:172)

at org.apache.hadoop.ha.ZKFailoverController$1.run(ZKFailoverController.java:168)

at org.apache.hadoop.security.SecurityUtil.doAsLoginUserOrFatal(SecurityUtil.java:415)

at org.apache.hadoop.ha.ZKFailoverController.run(ZKFailoverController.java:168)

at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:181)

谁碰到过这个问题,麻烦帮忙解决下

hadoop安装报错

标签:hadoop   zookeeper   

原文地址:http://2592850.blog.51cto.com/2582850/1850880

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!