无法使用自定义密码验证器通过https启动prestodb服务器

时间:2018-10-29 14:41:26

标签: presto

我正在使用presto 0.206,并尝试使用我编写的密码验证器将其配置为通过https运行。

我收到以下错误-

2018-10-29T16:24:45.974+0200    INFO    main    com.facebook.presto.server.security.PasswordAuthenticatorManager    -- Loading password authenticator --
2018-10-29T16:24:45.976+0200    INFO    main    Bootstrap   PROPERTY  DEFAULT  RUNTIME  DESCRIPTION
2018-10-29T16:24:45.980+0200    INFO    main    com.facebook.presto.server.security.PasswordAuthenticatorManager    -- Loaded password authenticator v3io --
2018-10-29T16:24:45.989+0200    INFO    main    com.facebook.presto.server.PrestoServer ======== SERVER STARTED ========
2018-10-29T16:24:45.989+0200    ERROR   Announcer-0 io.airlift.discovery.client.Announcer   Cannot connect to discovery server for announce: Announcement failed for https://192.168.224.157:8889
2018-10-29T16:24:45.990+0200    ERROR   Announcer-0 io.airlift.discovery.client.Announcer   Service announcement failed after 9.44ms. Next request will happen within 0.00s

看来我的插件(“ v3io”)已成功加载,但是https config出了些问题

config.properties-

coordinator=true
node-scheduler.include-coordinator=true
http-server.https.enabled=true
http-server.https.port=8889
query.max-memory=5GB
query.max-memory-per-node=1GB
discovery-server.enabled=true
discovery.uri=https://192.168.224.157:8889
node.internal-address=192.168.224.157
http-server.https.keystore.path=/opt/presto-server-0.206/keystore.jks
http-server.https.keystore.key=password
http-server.authentication.type=PASSWORD

1 个答案:

答案 0 :(得分:0)

discovery.uri的值更改为http而不是https。我认为它不支持HTTPS。