predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ambuj Sharma <am...@getamplify.com>
Subject Re: ERROR: Remote Elastic search cluster
Date Wed, 29 Mar 2017 04:43:20 GMT
make sure elasticSearch is running nd available from PIO Server. Try to
send request to ES using Curl


Thanks and Regards
Ambuj Sharma
Sunrise may late, But Morning is sure.....
Team ML
Betaout

On Tue, Mar 28, 2017 at 11:39 PM, Malay Tripathi <malaytripathi3@gmail.com>
wrote:

> Hi Ambuj,
>
> I did try below configuration and ran "pio status", same error.
>
> PIO_STORAGE_SOURCES_ELASTICSEARCH_TYPE=elasticsearch
>
> PIO_STORAGE_SOURCES_ELASTICSEARCH_CLUSTERNAME=prod
>
> PIO_STORAGE_SOURCES_ELASTICSEARCH_HOSTS=aabbcc176
>
> PIO_STORAGE_SOURCES_ELASTICSEARCH_PORTS=9300
>
>
> Thanks,
>
> Malay
>
> On Tue, Mar 28, 2017 at 2:34 AM, Ambuj Sharma <ambuj@getamplify.com>
> wrote:
>
>> You need to configure only these properties
>>
>> PIO_STORAGE_SOURCES_ELASTICSEARCH_TYPE=elasticsearch
>> PIO_STORAGE_SOURCES_ELASTICSEARCH_CLUSTERNAME=<your cluster Name>
>> PIO_STORAGE_SOURCES_ELASTICSEARCH_HOSTS=<ES Master IP>
>> PIO_STORAGE_SOURCES_ELASTICSEARCH_PORTS=9300
>>
>>
>>
>> Thanks and Regards
>> Ambuj Sharma
>> Sunrise may late, But Morning is sure.....
>> Team ML
>> Betaout
>>
>> On Tue, Mar 28, 2017 at 12:47 PM, Malay Tripathi <
>> malaytripathi3@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have setup 3 node cluster for ES - aabbcc174, aabbcc175, aabbcc176.
>>> In my spark edge node, I have installed PredictionIO & given below
>>> properties in conf/pio-env.sh-
>>>
>>> PIO_STORAGE_SOURCES_ELASTICSEARCH_TYPE=elasticsearch
>>>
>>> PIO_STORAGE_SOURCES_ELASTICSEARCH_CLUSTERNAME=prod
>>>
>>> PIO_STORAGE_SOURCES_ELASTICSEARCH_HOSTS= aabbcc174, aabbcc175, aabbcc176
>>>
>>> PIO_STORAGE_SOURCES_ELASTICSEARCH_PORTS=9300,9300,9300
>>>
>>>
>>> But if i run *"pio status"* I keep getting error -
>>>
>>> [ERROR] [Console$] Unable to connect to all storage backends
>>> successfully. The following shows the error message from the storage
>>> backend.
>>>
>>> [ERROR] [Console$] None of the configured nodes are available: []
>>> (org.elasticsearch.client.transport.NoNodeAvailableException)
>>>
>>> [ERROR] [Console$] Dumping configuration of initialized storage backend
>>> sources. Please make sure they are correct.
>>>
>>> [ERROR] [Console$] Source Name: ELASTICSEARCH; Type: elasticsearch;
>>> Configuration: HOSTS -> aabbcc174, aabbcc175, aabbcc176, TYPE ->
>>> elasticsearch, CLUSTERNAME -> prod
>>>
>>>
>>> Although If i CURL my elastic search from this edge node where "pio
>>> status" is failing I get successful response-
>>>
>>> [xxxxxx@edgeNode conf]$ curl http://aabbcc174:9200/_nodes/process?pretty
>>>
>>> {
>>>
>>>   "cluster_name" : "prod",
>>>
>>>   "nodes" : {
>>>
>>>     "Jru48ImiSuSbSe95e0Qh8A" : {
>>>
>>>       "name" : "prod-node1",
>>>
>>> .....
>>>
>>>      Thanks !!!
>>>
>>
>>
>

Mime
View raw message