You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@predictionio.apache.org by Naresh Peddy <pe...@gmail.com> on 2017/05/25 08:21:39 UTC
Not able send queries to deployed Engine service
Hi Team,
I am using Prediction IO 0.10 in Docker Tool Box(win 8.1) and
Classification template.
Am able to build,train,deploy Engine service. But am not able to send
queries to deployed service.
I tried with
1)localhost:8000
2)0.0.0.0.0:8000
3)192.168.99.100:8000
I tried from new window in docker, from java client as well but nothing
fruitful
Please find the attached screenshot Could you please help me in this
[image: Inline image 1]
--
Naresh Peddy
Re: Not able send queries to deployed Engine service
Posted by Naresh Peddy <pe...@gmail.com>.
Hi,
Thanks for the update. But still am not able to retrieve the data from
Engine Server
Please help me, am doing the below
Am using Docker Tool Box in windows 8.1 , Prediction IO 0.10 and
Classification template
1)Successfully imported the data to HBASE event server(localhost:7070)
2)Modified engine.json(app name:MyTestApp)
3)pio build,pio train and pio deploy --port 8123 --ip localhost
It is showing [HttpListner] Bound to localhost/127.0.0.1:8123
[MasterActor]Engine is deployed and running.Engine API is live at
http://localhost:8123
[image: Inline image 1]
Opened another docker terminal
tried below commands
1)curl -H "Content-Type: application/json" \
-d '{ "attr0":1, "attr1":1, "attr2":0 }' http://localhost:8123/queries.json
2)curl -H "Content-Type: application/json" \
-d '{ "attr0":1, "attr1":1, "attr2":0 }'
http://192.168.99.100:8123/queries.json
[image: Inline image 2]
But it is not giving connection refused.
Please let me know how to retrieve the records from Engine Server
Thanks,
Naresh
On Thu, May 25, 2017 at 4:13 PM, Ravi Kiran <ra...@gmail.com> wrote:
> just check if some other service is running on 8000 port. I think its port
> issue
>
> On Thu, May 25, 2017 at 4:04 PM, Dennis Honders <de...@gmail.com>
> wrote:
>
>> From the classification template docs:
>>
>> $ curl -H "Content-Type: application/json" \
>> -d '{ "attr0":2, "attr1":0, "attr2":0 }' http://localhost:8000/queries.json
>>
>> Add /queries.json to the url.
>>
>>
>>
>>
>> Op 25 mei 2017 om 10:21 heeft Naresh Peddy <pe...@gmail.com> het
>> volgende geschreven:
>>
>> Hi Team,
>>
>> I am using Prediction IO 0.10 in Docker Tool Box(win 8.1) and
>> Classification template.
>> Am able to build,train,deploy Engine service. But am not able to send
>> queries to deployed service.
>>
>> I tried with
>> 1)localhost:8000
>> 2)0.0.0.0.0:8000
>> 3)192.168.99.100:8000
>>
>> I tried from new window in docker, from java client as well but nothing
>> fruitful
>>
>> Please find the attached screenshot Could you please help me in this
>>
>> <image.png>
>>
>>
>> --
>> Naresh Peddy
>>
>>
>
--
Naresh Peddy
Re: Not able send queries to deployed Engine service
Posted by Ravi Kiran <ra...@gmail.com>.
just check if some other service is running on 8000 port. I think its port
issue
On Thu, May 25, 2017 at 4:04 PM, Dennis Honders <de...@gmail.com>
wrote:
> From the classification template docs:
>
> $ curl -H "Content-Type: application/json" \
> -d '{ "attr0":2, "attr1":0, "attr2":0 }' http://localhost:8000/queries.json
>
> Add /queries.json to the url.
>
>
>
>
> Op 25 mei 2017 om 10:21 heeft Naresh Peddy <pe...@gmail.com> het
> volgende geschreven:
>
> Hi Team,
>
> I am using Prediction IO 0.10 in Docker Tool Box(win 8.1) and
> Classification template.
> Am able to build,train,deploy Engine service. But am not able to send
> queries to deployed service.
>
> I tried with
> 1)localhost:8000
> 2)0.0.0.0.0:8000
> 3)192.168.99.100:8000
>
> I tried from new window in docker, from java client as well but nothing
> fruitful
>
> Please find the attached screenshot Could you please help me in this
>
> <image.png>
>
>
> --
> Naresh Peddy
>
>
Re: Not able send queries to deployed Engine service
Posted by Dennis Honders <de...@gmail.com>.
From the classification template docs:
$ curl -H "Content-Type: application/json" \ -d '{ "attr0":2, "attr1":0, "attr2":0 }' http://localhost:8000/queries.json
Add /queries.json to the url.
> Op 25 mei 2017 om 10:21 heeft Naresh Peddy <pe...@gmail.com> het volgende geschreven:
>
> Hi Team,
>
> I am using Prediction IO 0.10 in Docker Tool Box(win 8.1) and Classification template.
> Am able to build,train,deploy Engine service. But am not able to send queries to deployed service.
>
> I tried with
> 1)localhost:8000
> 2)0.0.0.0.0:8000
> 3)192.168.99.100:8000
>
> I tried from new window in docker, from java client as well but nothing fruitful
>
> Please find the attached screenshot Could you please help me in this
>
> <image.png>
>
>
> --
> Naresh Peddy