DinaL
DinaL

Reputation: 15

can't start prestodb server over https with a custom password authenticator

I'm using presto 0.206 and trying to config it to run over https with a password authenticator that i wrote.

I get the following error -

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

looks like my plugin ("v3io") is loaded successfully but something is wrong with the 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

Upvotes: 1

Views: 1835

Answers (1)

David Phillips
David Phillips

Reputation: 10218

Change the discovery.uri value to be http not https. I don’t think it supports HTTPS.

Upvotes: 1

Related Questions