-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you give me the demo to connect elasticsearch? #30
Comments
Hi You must configure two files: /myPath/myschemafile.json
.../presto/etc/catalog/es.properties
Is this enough for you? |
Yes, this is enough for me ,but i want to connect elasticsearch 2.3 ,can you give me some suggesttions?
At 2016-12-14 01:28:41, "Flávio Ferreira" <notifications@github.com> wrote:
Hi
You must configure two files.
Firstly a file like this one:
/myPath/myschemafile.json
{
"mySchema": [
{
"name": "TableName1",
"sources": [
{
"hostAddress": "__ES_HOST__",
"port": __ES_PORT__,
"clusterName": "__ES_ROUTES_CLUSTER_NAME__",
"type": "__ES_TYPE__",
"index": "__ES_INDEX_PATTERN__"
}
]
},
{
"name": "TableName2",
"sources": [
{
"hostAddress": "__ES_HOST__",
"port": __ES_PORT__,
"clusterName": "__ES_ROUTES_CLUSTER_NAME__",
"type": "__ES_TYPE_2__",
"index": "__ES_INDEX_PATTERN_2__"
}
]
},
{
.........
}
]
}
Secondly another file:
.../presto/etc/catalog/es.properties
connector.name=elasticsearch
elasticsearch.metadata-uri=file:///myPath/myschemafile.json
Is this enough for you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yes, this is enough for me ,but i want to connect elasticsearch 2.3 ,can you give me some suggesttions? |
the connector is tested and known to be working with ES 1.6 |
such as the file of hive.properties
and more the elasticsearch plugin needs some jars ?
Thank you !
The text was updated successfully, but these errors were encountered: