Problem getting Presto to run

1,051 views
Skip to first unread message

Matthias Otto

unread,
Sep 23, 2015, 6:26:34 AM9/23/15
to presto...@googlegroups.com
Hello,

I am trying to run presto version 0.118 on an Ubuntu AWS instance, with the goal of it connecting to a Cassandra cluster, but I am having problems starting Presto. I followed this guide when installing Presto and I am reasonably sure I did not make any errors there, but of course I might have.

Here is the bit of the log where the startup fails, I attached the full thing as well:

2015-09-23T09:58:11.897Z    INFO    main    Bootstrap    node.pool                                                             general                           general
2015-09-23T09:58:11.897Z    INFO    main    Bootstrap   
2015-09-23T09:58:12.645Z    INFO    main    org.eclipse.jetty.util.log    Logging initialized @3016ms
2015-09-23T09:58:13.034Z    WARN    main    io.airlift.jmx.JmxAgent    Cannot determine if JMX agent is already running (not an Oracle JVM?). Will try to start it manually.
2015-09-23T09:58:13.039Z    INFO    main    stderr    Error: Exception thrown by the agent
2015-09-23T09:58:13.039Z    INFO    main    stderr    : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: ip-172-30-0-103: ip-172-30-0-103: unknown error
2015-09-23T09:58:13.042Z    WARN    main    io.airlift.jmx.JmxAgent    Cannot determine if JMX agent is already running (not an Oracle JVM?). Will try to start it manually.
2015-09-23T09:58:13.043Z    INFO    main    stderr    Error: Exception thrown by the agent
2015-09-23T09:58:13.043Z    INFO    main    stderr    : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: ip-172-30-0-103: ip-172-30-0-103: unknown error
2015-09-23T09:58:13.070Z    ERROR    main    com.facebook.presto.server.PrestoServer    Unable to create injector, see the following errors:

1) Error injecting constructor, java.lang.RuntimeException: Exception thrown by the agent
  at io.airlift.jmx.JmxAgent.<init>(JmxAgent.java:48)
  at io.airlift.jmx.JmxModule.configure(JmxModule.java:43)
  while locating io.airlift.jmx.JmxAgent


I am not pasting it all here because the whole error message goes on for 700 more lines. :)

From what I can see there is that my Java version may be wrong somehow. I installed Java 8 on the machine, when I do a java -version, this is what I get:

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)


when I do javac, it also shows compiler options, so there is a java compiler on there.

Also, the hostname message is weird to me, as that hostname is assigned by AWS during startup of the instance and refers to its internal IP.

Thanks in advance for your help,

Matthias Otto

-- 

incub8 Software Labs GmbH
Pulverstraße 1 | 44225 Dortmund, Germany

Geschäftsführer: Jan Dörrenhaus | Sitz: Dortmund
Registergericht: Amtsgericht Dortmund - HRB 25457
Steuernummer: 315/5748/1377 | USt.-Id.: DE287331286

Bankverbindung: Sparkasse Dortmund
Kto.-Nr.: 911008424 | BLZ: 440 501 99
IBAN: DE64440501990911008424 | BIC: DORTDE33

server.log

Brian Rickman

unread,
Sep 23, 2015, 3:23:46 PM9/23/15
to Presto, matthi...@incub8.de
"2015-09-23T09:58:13.039Z    INFO    main    stderr    : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: ip-172-30-0-103: ip-172-30-0-103: unknown error"

The above error message indicates that in one of your config files where a host name or IP address was expected, you have the text "ip-172-30-0-103".  Try replacing that text with "172.30.0.103".

Matthias Otto

unread,
Sep 24, 2015, 3:40:52 AM9/24/15
to Brian Rickman, Presto
Hello again,

This was indeed the root of most of the error messages, thank you. After changing the discovery.uri in Prestos config.properties from "localhost:8080" to "internal IP:8080", I still get an error, but it is axctually short enough to paste here fully. Note that the IP is not the same as in the original error because it changes for AWS instances if you reboot them:

2015-09-24T07:33:55.170Z        ERROR   main    com.facebook.presto.server.PrestoServer Unable to create injector, see the following errors:

1) Configuration property 'discovery.uri=172.30.0.28:8080' was not used
  at io.airlift.bootstrap.Bootstrap.lambda$initialize$2(Bootstrap.java:235)

2) Error: Could not coerce value '172.30.0.28:8080' to java.net.URI (property 'discovery.uri') in order to call [public io.airlift.discovery.client.DiscoveryClientConfig io.airlift.discovery.client.DiscoveryClientConfig.setDiscoveryServiceURI(java.net.URI)]
  at io.airlift.discovery.client.DiscoveryModule.configure(DiscoveryModule.java:51)

2 errors
com.google.inject.CreationException: Unable to create injector, see the following errors:

1) Configuration property 'discovery.uri=172.30.0.28:8080' was not used
  at io.airlift.bootstrap.Bootstrap.lambda$initialize$2(Bootstrap.java:235)

2) Error: Could not coerce value '172.30.0.28:8080' to java.net.URI (property 'discovery.uri') in order to call [public io.airlift.discovery.client.DiscoveryClientConfig io.airlift.discovery.client.DiscoveryClientConfig.setDiscoveryServiceURI(java.net.URI)]
  at io.airlift.discovery.client.DiscoveryModule.configure(DiscoveryModule.java:51)

2 errors
        at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:448)
        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:109)
        at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:62)


-- 

incub8 Software Labs GmbH
Pulverstraße 1 | 44225 Dortmund, Germany

Geschäftsführer: Jan Dörrenhaus | Sitz: Dortmund
Registergericht: Amtsgericht Dortmund - HRB 25457
Steuernummer: 315/5748/1377 | USt.-Id.: DE287331286

Bankverbindung: Sparkasse Dortmund
Kto.-Nr.: 911008424 | BLZ: 440 501 99
IBAN: DE64440501990911008424 | BIC: DORTDE33


袁安峰

unread,
Sep 24, 2015, 4:40:02 AM9/24/15
to Presto, brian....@gmail.com, matthi...@incub8.de
discovery.uri=172.30.0.28:8080 should be discovery.uri=http://172.30.0.28:8080

在 2015年9月24日星期四 UTC+8下午3:40:52,Matthias Otto写道:

Matthias Otto

unread,
Sep 24, 2015, 5:34:58 AM9/24/15
to 袁安峰, Presto, Brian Rickman
If I added the http:// the original 700 line error returned.

I solved the problem now thou, in part thanks to you guys. :)

This turned out not to be a Presto issue, but a DNS issue. The machine was in a amazon virtual private cloud and I had not enabled DNS hostnames for that VPC. The Error Presto threw was just not very helpful in finding this out, but eventually I started looking in that direction for lack of other leads.

Thanks and best regards,
Matthias Otto

-- 

incub8 Software Labs GmbH
Pulverstraße 1 | 44225 Dortmund, Germany

Geschäftsführer: Jan Dörrenhaus | Sitz: Dortmund
Registergericht: Amtsgericht Dortmund - HRB 25457
Steuernummer: 315/5748/1377 | USt.-Id.: DE287331286

Bankverbindung: Sparkasse Dortmund
Kto.-Nr.: 911008424 | BLZ: 440 501 99
IBAN: DE64440501990911008424 | BIC: DORTDE33


Reply all
Reply to author
Forward
0 new messages