Problem accessing /druid/indexer/v1/task

Hello,

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)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 401 </title>
</head>
<body>
<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>
</body>
</html>

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

Best,

Kapil

Hi,

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,
Vaibhav

Dear Vaibhav Vaibhav,

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

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

**[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 192.168.111.13:8090/druid/indexer/v1/task

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

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

please help me !!!