predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haddix, Steven" <Steven.Had...@wendys.com>
Subject Re: Unable to connect to Engine server port and not getting the response
Date Sat, 27 May 2017 19:31:05 GMT
You probably also need to use the correct server name since you're on a different docker box.

Sent from Nine<http://www.9folders.com/>
________________________________
From: Haddix, Steven
Sent: May 27, 2017 3:29 PM
To: user@predictionio.incubator.apache.org
Subject: Re: Unable to connect to Engine server port and not getting the response

You need to open port 8123 if you're opening a different port than 8000 on docker.

Sent from Nine<http://www.9folders.com/>
________________________________
From: Naresh Peddy <peddynaresh@gmail.com>
Sent: May 27, 2017 2:48 PM
To: user@predictionio.incubator.apache.org
Subject: Unable to connect to Engine server port and not getting the response

Hi,

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

$ docker run -it -p 8000:8000 steveny/predictionio /bin/bash

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<http://127.0.0.1:8123/>
[MasterActor]Engine is deployed and running.Engine API is live at http://localhost:8123<http://localhost:8123/>
[Inline image 1]

Opened another docker terminal
created the container with the above image ID
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

[Inline image 2]

But it is not giving connection refused.

Please let me know how to retrieve the records from Engine Server

Thanks,

Naresh Peddy
Notice: This e-mail message and its attachments are the property of The Wendy's Company or
one of its subsidiaries and may contain confidential or legally privileged information intended
solely for the use of the addressee(s). If you are not an intended recipient, then any use,
copying or distribution of this message or its attachments is strictly prohibited. If you
received this message in error, please notify the sender and delete this message entirely
from your system.
Notice: This e-mail message and its attachments are the property of The Wendy's Company or
one of its subsidiaries and may contain confidential or legally privileged information intended
solely for the use of the addressee(s). If you are not an intended recipient, then any use,
copying or distribution of this message or its attachments is strictly prohibited. If you
received this message in error, please notify the sender and delete this message entirely
from your system.

Mime
View raw message