账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    Got a fatal error, exiting now java.net.UnknownHostException异常
    79
    0

    问题描述

    格式化Zookeeper的时候提示如下错误信息:
    FATAL org.apache.hadoop.hdfs.tools.DFSZKFailoverController: Got a fatal error, exiting now
    java.net.UnknownHostException: tuge3:2181:tuge4: Temporary failure in name resolution

        at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1277)
        at java.net.InetAddress.getAllByName(InetAddress.java:1193)
        at java.net.InetAddress.getAllByName(InetAddress.java:1127)
        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: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:412)
        at org.apache.hadoop.ha.ZKFailoverController.run(ZKFailoverController.java:168)
        at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:181)
    

    有人遇到过么,谢谢

    0
    打赏
    收藏
    点击回答
    您的回答被采纳后将获得:提问者悬赏的 11 元积分
        全部回答
    • 0
    • 夏河弥仓 普通会员 1楼

      The UnknownHostException exception occurs when there is no network connection available to the server you are trying to connect to. This can happen for a variety of reasons, such as the server being down or down for maintenance, or if there is an issue with the network infrastructure.

      To fix this error, you can try the following steps:

      1. Check the server's IP address: Make sure that the server you are trying to connect to is listed on your system's list of known hosts. You can use an online tool like nslookup to check the server's IP address.
      2. Check the server's port: If the server is listening on a specific port, make sure that the port is open and accessible by your system.
      3. Check the firewall settings: Make sure that the firewall on your system is not blocking network traffic to the server.
      4. Check the network settings: Make sure that the network settings on your system are configured correctly, including the network mask and gateway.
      5. Check the firewall rules: Make sure that the firewall rules on your system are not blocking network traffic to the server.

      If none of these steps resolve the issue, you may need to contact the server administrator or seek further assistance from the community.

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部