工作机/协调器的presto服务未启动

dzhpxtsq  于 2021-06-26  发布在  Hive
关注(0)|答案(1)|浏览(639)

我们已经为ubuntu发行版安装了ambari补丁,以便与presto一起使用,但是在安装之后,当调用服务启动时,worker/coordinator节点会出现以下错误。

  1. Show the stack trace when generating an error response
  2. 2017-04-24T13:00:24.280+0530 INFO main Bootstrap http-server.threads.max-idle-time 1.00m 1.00m
  3. 2017-04-24T13:00:24.280+0530 INFO main Bootstrap http-server.auth.users-file null null
  4. 2017-04-24T13:00:24.280+0530 INFO main Bootstrap jmx.rmiregistry.port null null
  5. 2017-04-24T13:00:24.280+0530 INFO main Bootstrap jmx.rmiserver.port null null
  6. 2017-04-24T13:00:24.280+0530 INFO main Bootstrap node.binary-spec null null
  7. 2017-04-24T13:00:24.281+0530 INFO main Bootstrap node.config-spec null null
  8. 2017-04-24T13:00:24.281+0530 INFO main Bootstrap node.environment null production
  9. 2017-04-24T13:00:24.281+0530 INFO main Bootstrap node.internal-address-source IP IP
  10. 2017-04-24T13:00:24.281+0530 INFO main Bootstrap node.location null null
  11. 2017-04-24T13:00:24.281+0530 INFO main Bootstrap node.bind-ip null null
  12. 2017-04-24T13:00:24.281+0530 INFO main Bootstrap node.external-address null null
  13. 2017-04-24T13:00:24.281+0530 INFO main Bootstrap node.id null f85737c2-aaa9-44c7-ac12-004716129809
  14. 2017-04-24T13:00:24.281+0530 INFO main Bootstrap node.internal-address null null
  15. 2017-04-24T13:00:24.281+0530 INFO main Bootstrap node.pool general general
  16. 2017-04-24T13:00:24.281+0530 INFO main Bootstrap
  17. 2017-04-24T13:00:25.086+0530 ERROR main com.facebook.presto.server.PrestoServer Unable to create injector, see the following errors:
  18. 1) Event class [class io.airlift.http.server.HttpRequestEvent] EventField method [public java.time.Instant io.airlift.http.server.HttpRequestEvent.getTimeStamp()] return type [class java.time.Instant] is not supported
  19. at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:76)
  20. 1 error
  21. com.google.inject.CreationException: Unable to create injector, see the following errors:
  22. 1) Event class [class io.airlift.http.server.HttpRequestEvent] EventField method [public java.time.Instant io.airlift.http.server.HttpRequestEvent.getTimeStamp()] return type [class java.time.Instant] is not supported
  23. at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:76)
  24. 1 error
  25. at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:466)
  26. at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155)
  27. at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
  28. at com.google.inject.Guice.createInjector(Guice.java:96)
  29. at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:242)
  30. at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:116)
  31. at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:67)

任何线索,什么是错误配置的设置,下面是配置文件。
配置属性

  1. query.max-memory=50GB
  2. node-scheduler.include-coordinator=false
  3. query.max-memory-per-node=1GB
  4. http-server.http.port=8285
  5. discovery.uri=http://ambari-slave1.stg-dp-ranger.stg.XXX.net:8285
  6. coordinator=true
  7. discovery-server.enabled=true
z0qdvdin

z0qdvdin1#

正如错误所说, java.time.Instant 不见了。这个类是由Java8引入的,presto需要这个类。所以我假设您的问题是由于您安装的java版本低于8。

相关问题