尝试访问Hive时启动Presto服务器的错误



我正在尝试在Rhel Machine上启动Presto。

但是,在通过"./launcher run"启动Presto服务器时,我会收到以下错误:

3 errors
com.google.inject.CreationException: Unable to create injector, see the following errors:
1) Configuration property 'http-server.http.port=8080 ' was not used
  at io.airlift.bootstrap.Bootstrap.lambda$initialize$2(Bootstrap.java:235)
2) Error: Could not coerce value '8080 ' to int (property 'http-server.http.port') in order to call [public io.airlift.http.server.HttpServerConfig io.airlift.http.server.HttpServerConfig.setHttpPort(int)]
  at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:74)
3) Error: Invalid configuration property node.id: is malformed (for class io.airlift.node.NodeConfig.nodeId)
  at io.airlift.node.NodeModule.configure(NodeModule.java:34)
3 errors
        at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:466)
        at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
        at com.google.inject.Guice.createInjector(Guice.java:96)
        at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:242)
        at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:116)
        at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:67)

几件事。您需要在" http-server.http.port = 8080"之后删除空间。

另外,您的node.id属性无效。Node.ID应与以下等级相匹配:" [A-ZA-Z0-9] [_ A-ZA-ZA-Z0-9-]*"节点/src/main/java/io/airlift/node/nodeconfig.java#l30)。

相同的问题:连接器JMX

没有工厂

删除所有/etc/*配置文件空间

最新更新