Hi Malay,

Have you configured the configuration of the elasticsearch like hosts,
ports and clustername in elasticsearch.yaml?

(cluster.name: elasticsearch) for cluster name?

I had ran into similar kind of issues, but for me I forgot to put the
cluster name in configuration. That worked for me make sure you have your
configuration good to go.

Thanks
Vaghawan


On Wed, Mar 29, 2017 at 10:28 AM, Ambuj Sharma <[email protected]> wrote:

> 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 <[email protected]
> > 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 <[email protected]>
>> 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 <
>>> [email protected]> 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/p
>>>> rocess?pretty
>>>>
>>>> {
>>>>
>>>>   "cluster_name" : "prod",
>>>>
>>>>   "nodes" : {
>>>>
>>>>     "Jru48ImiSuSbSe95e0Qh8A" : {
>>>>
>>>>       "name" : "prod-node1",
>>>>
>>>> .....
>>>>
>>>>      Thanks !!!
>>>>
>>>
>>>
>>
>

Reply via email to