簿记员无法确定本地主机名

时间:2019-04-01 15:03:35

标签: docker mesosphere dcos pulsar

我正在尝试在the instructions from Pulsar docs之后在DC / OS集群上部署Apache Pulsar实例。

由于某种原因,簿记员在启动时引发异常:

14:57:02.948 [main] WARN  org.apache.bookkeeper.net.DNS - Unable to determine local hostname -falling back to "localhost"
java.net.UnknownHostException: pvtagt-1-dcos-sandbox: pvtagt-1-dcos-sandbox: Name or service not known
    at java.net.InetAddress.getLocalHost(InetAddress.java:1506) ~[?:1.8.0_181]
    at org.apache.bookkeeper.net.DNS.resolveLocalHostname(DNS.java:263) [org.apache.bookkeeper-bookkeeper-server-4.9.0.jar:4.9.0]
    at org.apache.bookkeeper.net.DNS.<clinit>(DNS.java:51) [org.apache.bookkeeper-bookkeeper-server-4.9.0.jar:4.9.0]
    at org.apache.bookkeeper.bookie.Bookie.getBookieAddress(Bookie.java:545) [org.apache.bookkeeper-bookkeeper-server-4.9.0.jar:4.9.0]
    at org.apache.bookkeeper.proto.BookieNettyServer.<init>(BookieNettyServer.java:164) [org.apache.bookkeeper-bookkeeper-server-4.9.0.jar:4.9.0]
    at org.apache.bookkeeper.proto.BookieServer.<init>(BookieServer.java:104) [org.apache.bookkeeper-bookkeeper-server-4.9.0.jar:4.9.0]
    at org.apache.bookkeeper.server.service.BookieService.<init>(BookieService.java:43) [org.apache.bookkeeper-bookkeeper-server-4.9.0.jar:4.9.0]
    at org.apache.bookkeeper.server.Main.buildBookieServer(Main.java:301) [org.apache.bookkeeper-bookkeeper-server-4.9.0.jar:4.9.0]
    at org.apache.bookkeeper.server.Main.doMain(Main.java:221) [org.apache.bookkeeper-bookkeeper-server-4.9.0.jar:4.9.0]
    at org.apache.bookkeeper.server.Main.main(Main.java:203) [org.apache.bookkeeper-bookkeeper-server-4.9.0.jar:4.9.0]
    at org.apache.bookkeeper.proto.BookieServer.main(BookieServer.java:314) [org.apache.bookkeeper-bookkeeper-server-4.9.0.jar:4.9.0]
Caused by: java.net.UnknownHostException: pvtagt-1-dcos-sandbox: Name or service not known
    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[?:1.8.0_181]
    at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929) ~[?:1.8.0_181]
    at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324) ~[?:1.8.0_181]
    at java.net.InetAddress.getLocalHost(InetAddress.java:1501) ~[?:1.8.0_181]
    ... 10 more

这将导致DC / OS不断重新启动服务。我尝试直接安装Bookkeeper一次,效果很好。有什么想法我做错了吗?

0 个答案:

没有答案