Comments (5)
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.
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.
You are right.
datasource name can be any name.
But, if presto.coordinator.server.datalake
is not set, exception can be thrown.
So, presto.coordinator.server.datalake
seems not to be set.
from yanagishima.
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.
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!
from yanagishima.
Related Issues (20)
- Don't keep session properties in service class
- Depending on query id leads to incorrect elapsed time in case of clock skew
- start failed: Error: Could not find or load main class yanagishima.YanagishimaApplication HOT 1
- Add retry logic in hive jdbc level HOT 1
- Class SparkUtil bug HOT 2
- Not able to run gradle build for yanagishima 22 HOT 2
- Document steps to release
- How to configure for supporting Trino Server with https SSL HOT 1
- Add support for insecure TLS mode in Trino HOT 4
- Remove support for Spark HOT 2
- Subindex eg: share、diff are Whitelabel Error Page HOT 2
- Remove support for user and password by RequestParam
- Update Configuration docs for new release HOT 1
- [Yanagishima] bytes is negative
- Choose Hive Engine to show Query List. Find NullPointerException
- How do I change the hotkeys?
- Basic authentication or X-Trino-User must be sent HOT 3
- Authentication failed: Basic authentication or X-Trino-User must be sent HOT 1
- Download blank text with double quotation
- 【Question】- Is master is stable?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yanagishima.