Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http Host Connection Exception , Connection refused. #124

Open
smit-1999 opened this issue Jul 12, 2019 · 0 comments
Open

Http Host Connection Exception , Connection refused. #124

smit-1999 opened this issue Jul 12, 2019 · 0 comments

Comments

@smit-1999
Copy link

Hi Guys,
This is Smit here and I am currently setting up reporter using Kafka.I tried through the load_historical_data script but was unable to run it successfully.So I am currently working on finding speed statistics using Kafka streams and I am currently stuck on this :

2019-07-12 10:47:42,566 ERROR io.opentraffic.reporter.HttpClient - After 3 attempts couldn't POST to http://localhost:8002/report? -> org.apache.http.conn.HttpHostConnectException: Connect to localhost:8002 [localhost/127.0.0.1] failed: Connection refused (Connection refused).

I am unable to understand what the error is.I searched Google and it says that this error occurs when there is no service listening on port 8002.But on running the docker command for viewing containers,I found out that port 8002 has reporter - py active on it.
Here :
image

Is there any other service that needs to be run on port 8002? If so,please guide me out.

Also the input data from a Json file can contain vehicle ids of multiple vehicles right ?
Like this one :

{"id": "qwe","timestamp": 1558769564,"latitude": 28.39942,"longitude": 77.33245,"accuracy": 88}
{"id": "qwe","timestamp": 1558828803,"latitude": 12.63023,"longitude": 79.16444,"accuracy": 84}
{"id": "qweaa","timestamp": 1558769561,"latitude": 28.39941,"longitude": 77.33243,"accuracy": 88}
{"id": "qweaa","timestamp": 1558828806,"latitude": 12.63020,"longitude": 79.16444,"accuracy": 84}
{"id": "qweaa","timestamp": 1558769568,"latitude": 28.39949,"longitude": 77.33245,"accuracy": 88}
{"id": "qweab","timestamp": 1558828807,"latitude": 12.63027,"longitude": 79.16447,"accuracy": 84}
{"id": "qweab","timestamp": 1558769569,"latitude": 28.39946,"longitude": 77.33248,"accuracy": 88}
{"id": "qweab","timestamp": 1558828802,"latitude": 12.63025,"longitude": 79.16449,"accuracy": 84}
{"id": "qweaa","timestamp": 1558769563,"latitude": 28.39942,"longitude": 77.33240,"accuracy": 88}
{"id": "qwe","timestamp": 1558828801,"latitude": 12.63021,"longitude": 79.16442,"accuracy": 84}

Or does the Json file to be read should contain gps data from a single vehicle?

Please suggest me the correct way if I am wrong somewhere.Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant