Hi,
I am trying to run the druid sample file batch ingestion and the endpoint is not working. Not sure how to debug this and the console is running on 8081 port.
~/druid/druid-0.12.3 $ curl -X ‘POST’ -H ‘Content-Type:application/json’ -d /Users/ravi/druid/druid-0.12.3/quickstart/wikipedia-index.json http://localhost:8090/druid/indexer/v1/task
curl: (7) Failed to connect to localhost port 8090: Connection refused
druid Terminal log.zip (237 KB)
Are you using Druid on a single machine or a cluster?
Check firewall rules and make sure all the necessary ports are open.
So the error changed?
Also, is the Zookeeper running?
Hi, I am using it on a single machine and I just gave a try by executing the 5 java line, each on a different window. Now I am able a service is running on port 8090 but still I am facing an error in file parsing
curl -X ‘POST’ -H ‘Content-Type:application/json’ -d /Users/ravi/druid/druid-0.12.3/quickstart/examples/wikipedia-index.json http://localhost:8090/druid/indexer/v1/task
Response
Error 500
HTTP ERROR: 500
Problem accessing /druid/indexer/v1/task. Reason:
javax.servlet.ServletException: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('/' (code 47)): maybe a (non-standard) comment? (not recognized as one since Feature 'ALLOW_COMMENTS' not enabled for parser)
at [Source: HttpInputOverHTTP@241f9baa[c=62,q=1,[0]=EOF,s=STREAM]; line: 1, column: 2]
Powered by Jetty:// 9.3.19.v20170502
**Additional Info **
java -version
OpenJDK version “1.8.0_152-release”
OpenJDK Runtime Environment (build 1.8.0_152-release-1056-b12)
OpenJDK 64-Bit Server VM (build 25.152-b12, mixed mode)
javac -version
javac 1.8.0_152-release
NOTE: I am just following the druid tutorial
Yes, the error changed and the zookeeper is running.
Did you make any changes to wikipedia-index.json?
Can you paste the file here?
Run the below command from inside the druid directory. I think you are missing the @ before the file path.
curl -X 'POST' -H 'Content-Type:application/json' -d @examples/wikipedia-index.json [http://localhost:8090/druid/indexer/v1/task](http://localhost:8090/druid/indexer/v1/task)