predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sunny <sunnysta...@gmail.com>
Subject Re: Unable to Access Event Server or Engine from Web Browser (Outside SSH)
Date Tue, 04 Oct 2016 12:25:58 GMT
Hello Amal,

It seems that you need to tweak EC2 network settings to allow incoming
traffic to both the ports (7070 & 8000) to be able to access it from
outside the linux instance.

-- Tapo

On Tue, 4 Oct 2016 at 17:09 amal kumar <amal.kmr.singh@gmail.com> wrote:

> Hi Team,
>
> Hello,
>
> I have installed the PredictionIO on EC2, using the below reference
> http://predictionio.incubator.apache.org/install/install-linux/
>
> Event server is started with command  to serve the glolab traffic
> pio eventserver 0.0.0.0 &
>
>
> Also, I have deployed PredictionIO template i.e.
> http://predictionio.incubator.apache.org/templates/recommendation/quickstart/
> using the command to serve the global traffic i.e.
> pio deploy --ip 0.0.0.0 &
>
>
> Now, I am able to connect to  Event Server (port : 7070) from SSH
> curl -i -X GET http://localhost:7070
>
> HTTP/1.1 200 OK
> Server: spray-can/1.3.3
> Date: Tue, 04 Oct 2016 11:31:44 GMT
> Content-Type: application/json; charset=UTF-8
> Content-Length: 18
>
> {"status":"alive"}
>
>
> Also, I am able to connect to  Engine (port : 8000) from SSH:
> curl -k -H "Content-Type: application/json" -d '{ "user": "1", "num": 2 }'
> https://localhost:8000/queries.json
>
> {"itemScores":[{"item":"8","score":8.775522559547664},{"item":"55","score":7.826485976992348}
>
>
> But, I am not able to access Event Server (port : 7070) or Engine (port :
> 8000) from Outside web brower.
>
> Error:
> Connection Refused
>
>
> Can you please help.
>
>
>
> Thanks,
> Amal Kumar
>

Mime
View raw message