Giter VIP home page Giter VIP logo

Comments (5)

wyukawa avatar wyukawa commented on July 24, 2024

yanagishima.properties seems wrong.

The following setting seems correct.

presto.datasources=datalake
presto.coordinator.server.datalake=http://ip-172-31-16-250.ec2.internal:8889

But, the following error means presto.coordinator.server.datalake is nothing.
Is presto.coordinator.server.datalake really set? please check yanagishima.properties it out again.

java.util.NoSuchElementException: No value present
at java.util.Optional.get(Optional.java:135)
at yanagishima.config.YanagishimaConfig.getPrestoCoordinatorServer(YanagishimaConfig.java:17)

from yanagishima.

iyerland avatar iyerland commented on July 24, 2024

Here's what I understood about the properties file:

presto.datasources=datalake

This is to allocate a name to the datasource. This can be any name, it could also have been called foo!! Doesn't matter, as long as we continue to use this datasource name subsequently?! Am I right? I just randomly called it datalake!

Here's a line from presto config.properties file:
discovery.uri=http://ip-172-31-16-250.ec2.internal:8889

So, this is the hostname:port where presto server is running locally (on same host).

But, I don't understand what you mean by Is presto.coordinator.server.datalake really set???

Here's the output when I check what is running on port 8889:

[hadoop@ip-172-31-16-250 ~]$ sudo ss -lptn 'sport = :8889'
State       Recv-Q Send-Q             Local Address:Port                            Peer Address:Port
LISTEN      0      4096                          :::8889                                      :::*                   users:(("presto-server",pid=1798,fd=197))

from yanagishima.

wyukawa avatar wyukawa commented on July 24, 2024

You are right.

datasource name can be any name.

But, if presto.coordinator.server.datalake is not set, exception can be thrown.

https://github.com/wyukawa/yanagishima/blob/master/src/main/java/yanagishima/config/YanagishimaConfig.java#L17

So, presto.coordinator.server.datalake seems not to be set.

from yanagishima.

iyerland avatar iyerland commented on July 24, 2024

But, it is set in the properties file!!! Point is ... why is the code unable to read it?! I'm not saying it is your fault ... but it is not clear why?! As you can see, this property should make it through:

presto.coordinator.server.datalake=http://ip-172-31-16-250.ec2.internal:8889

but it doesn't!!!

from yanagishima.

iyerland avatar iyerland commented on July 24, 2024

OK. Found out the problem :)

I had to modify the security groups of my EMR Master to allow port 8889 (presto coordinator url)... see attached screenshot!

Sorry about that ... and thanks!

screen shot 2017-05-31 at 10 50 12 am

from yanagishima.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.