predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haddix, Steven" <>
Subject Re: Unable to connect to Engine server port and not getting the response
Date Sat, 27 May 2017 19:28:52 GMT
You need to open port 8123 if you're opening a different port than 8000 on docker.

Sent from Nine<>
From: Naresh Peddy <>
Sent: May 27, 2017 2:48 PM
Subject: Unable to connect to Engine server port and not getting the response


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/<>
[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 }'

[Inline image 2]

But it is not giving connection refused.

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


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.

View raw message