我正面临着将 atlas 与 hive 集成的困难时期。我按照这个步骤https://atlas.apache.org/#/HookHive。当我启动 atlas 时,它会在 application.log 中引发一些错误,并且 atlas Web UI 也无法正常工作。它看起来与“atlas.kafka.zookeeper.connect=localhost:2181 # Zookeeper 连接 Kafka 的 URL”有关。示例:/atlas-application.properties 文件中的 localhost:2181”。这里有什么问题?谁来帮帮我 :)
错误:
2021-09-21 10:08:48,028 INFO - [main:] ~ Starting service org.apache.atlas.kafka.EmbeddedKafkaServer (Services:68)
2021-09-21 10:08:48,028 INFO - [main:] ~ ==> EmbeddedKafkaServer.start(isEmbedded=true) (EmbeddedKafkaServer:74)
2021-09-21 10:08:48,028 INFO - [main:] ~ Starting zookeeper at localhost:9026,localhost:2181 # Zookeeper connect URL for Kafka. Example: localhost:2181 (EmbeddedKafkaServer:108)
2021-09-21 10:08:48,791 ERROR - [main-SendThread():] ~ Unable to resolve address: localhost:2181 # Zookeeper connect URL for Kafka. Example: localhost:2181 (StaticHostProvider:154)
java.net.UnknownHostException: localhost:2181 # Zookeeper connect URL for Kafka. Example: localhost: Name or service not known
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$1.getAllByName(StaticHostProvider.java:92)
at org.apache.zookeeper.client.StaticHostProvider.resolve(StaticHostProvider.java:147)
at org.apache.zookeeper.client.StaticHostProvider.next(StaticHostProvider.java:375)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1137)
2021-09-21 10:08:48,792 WARN - [main-SendThread(localhost:2181 # Zookeeper connect URL for Kafka. Example: localhost:2181):] ~ Session 0x0 for server localhost:2181 # Zookeeper connect URL for Kafka. Example: localhost:2181, unexpected error, closing socket connection and attempting reconnect (ClientCnxn$SendThread:1246)
java.lang.IllegalArgumentException: Unable to canonicalize address localhost:2181 # Zookeeper connect URL for Kafka. Example: localhost:2181 because it's not resolvable
at org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:71)
at org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:39)
at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1087)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1139)
2021-09-21 10:08:49,996 ERROR - [main-SendThread(localhost:9026):] ~ Unable to resolve address: localhost:2181 # Zookeeper connect URL for Kafka. Example: localhost:2181 (StaticHostProvider:154)
java.net.UnknownHostException: localhost:2181 # Zookeeper connect URL for Kafka. Example: localhost
at java.net.InetAddress.getAllByName0(InetAddress.java:1281)
at java.net.InetAddress.getAllByName(InetAddress.java:1193)
at java.net.InetAddress.getAllByName(InetAddress.java:1127)
at org.apache.zookeeper.client.StaticHostProvider$1.getAllByName(StaticHostProvider.java:92)
at org.apache.zookeeper.client.StaticHostProvider.resolve(StaticHostProvider.java:147)
at org.apache.zookeeper.client.StaticHostProvider.next(StaticHostProvider.java:375)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1137)
谢谢,穆吉尔。