Problem accessing /druid/indexer/v1/task


I’m going over the quick-start Druid tutorial: Loading a File section. When I try to submit the following ingestion task to druid:

Does anybody know what the issue is? Thanks in advance.

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)

<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 401 </title>
<h2>HTTP ERROR: 401</h2>
<p>Problem accessing /druid/indexer/v1/task. Reason:
<pre>    Authentication required</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>

Hello Hợp Chu Quang,

Please try below curl command to submit task to supervisor.

curl -X POST -H 'Content-Type: application/json' -d @examples/wikipedia-index.json http://localhost:8090/druid/indexer/v1/supervisor




Do you have any authentication/authorization set for druid ,If yes you should pass the username and password

-u username:password

Or if its Kerberos , then you need to do a :kinit -kt and use curl with --negotiate .

Thanks and regards,

Dear Vaibhav Vaibhav,

  • I’ve run about command, but have nothing return.

[druid@bigdata13 druid]$ kinit -kt /etc/security/keytabs/druid.headless.keytab

**[druid@bigdata13 druid]$ **

**[druid@bigdata13 druid]$ **

**[druid@bigdata13 druid]$ **

[druid@bigdata13 druid]$ curl --negotiate -u: -X ‘POST’ -H ‘Content-Type:application/json’ -d @quickstart/wikiticker-index.json

[druid@bigdata13 druid]$ curl --negotiate -u: -X ‘POST’ -H ‘Content-Type:application/json’ -d @quickstart/wikiticker-index.json

- and overlord console I can’t connect as file 2222.jpg.

please help me !!!