我正在尝试按照快速入门指南here在一台机器上设置Apache Druid。当我启动历史服务器时,它会在屏幕上显示io.druid.java.util.common.IOE: No known server
异常。
命令:
java `cat conf-quickstart/druid/historical/jvm.config xargs` \
-cp "conf-quickstart/druid/_common:conf-quickstart/druid/historical:lib/*" \
io.druid.cli.Main server historical
完整堆栈跟踪 -
2018-04-07T18:23:40,234警告[主要] io.druid.java.util.common.RetryUtils - 尝试1失败,正在重试 1,246ms。 io.druid.java.util.common.IOE:没有已知的服务器 io.druid.discovery.DruidLeaderClient.getCurrentKnownLeader(DruidLeaderClient.java:276) 〜[druid-server-0.12.0.jar:0.12.0] at io.druid.discovery.DruidLeaderClient.makeRequest(DruidLeaderClient.java:128) 〜[druid-server-0.12.0.jar:0.12.0] at io.druid.query.lookup.LookupReferencesManager.fetchLookupsForTier(LookupReferencesManager.java:569) 〜[druid-server-0.12.0.jar:0.12.0] at io.druid.query.lookup.LookupReferencesManager.tryGetLookupListFromCoordinator(LookupReferencesManager.java:420) 〜[druid-server-0.12.0.jar:0.12.0] at io.druid.query.lookup.LookupReferencesManager.lambda $ getLookupListFromCoordinator $ 4(LookupReferencesManager.java:398) 〜[druid-server-0.12.0.jar:0.12.0] at io.druid.java.util.common.RetryUtils.retry(RetryUtils.java:63) [java-util-0.12.0.jar:0.12.0] at io.druid.java.util.common.RetryUtils.retry(RetryUtils.java:81) [java-util-0.12.0.jar:0.12.0] at io.druid.query.lookup.LookupReferencesManager.getLookupListFromCoordinator(LookupReferencesManager.java:388) [德 - 服务器 - 0.12.0.jar:0.12.0]
我尝试使用快速入门指南中提到的完全相同的步骤多次设置,但我无法解决此错误。如何解决此错误?
答案 0 :(得分:4)
如果您已尝试启动德鲁伊,请删除druid-X.Y.Z/log
和druid-X.Y.Z/var
文件夹。
启动zookeeper ./zookeeper-X.Y.Z/bin/zkServer.sh start
使用druid-X.Y.Z/bin/init
按此顺序在新标签页中运行每个命令
java `cat conf-quickstart/druid/coordinator/jvm.config | xargs` -cp "conf-quickstart/druid/_common:conf-quickstart/druid/coordinator:lib/*" io.druid.cli.Main server coordinator
java `cat conf-quickstart/druid/overlord/jvm.config | xargs` -cp "conf-quickstart/druid/_common:conf-quickstart/druid/overlord:lib/*" io.druid.cli.Main server overlord
java `cat conf-quickstart/druid/broker/jvm.config | xargs` -cp "conf-quickstart/druid/_common:conf-quickstart/druid/broker:lib/*" io.druid.cli.Main server broker
java `cat conf-quickstart/druid/historical/jvm.config | xargs` -cp "conf-quickstart/druid/_common:conf-quickstart/druid/historical:lib/*" io.druid.cli.Main server historical
java `cat conf-quickstart/druid/middleManager/jvm.config | xargs` -cp "conf-quickstart/druid/_common:conf-quickstart/druid/middleManager:lib/*" io.druid.cli.Main server middleManager
现在,您应该为每个命令打开一个标签(所以5)。
插入数据curl -X 'POST' -H 'Content-Type:application/json' -d @quickstart/wikiticker-index.json localhost:8090/druid/indexer/v1/task
然后您会看到{"task":"index_hadoop_wikiticker_2018-06-06T19:17:51.900Z"}