Access Kerberos-protected HTTP endpoints
As a user, before accessing any Druid HTTP endpoints, you need to authenticate yourself using Kerberos and get a valid Kerberos ticket.
As a user, before accessing any Druid HTTP endpoints, you need to authenticate yourself using Kerberos and get a valid Kerberos ticket.
kinit -k -t <keytab_file_path> <user@REALM.COM>
curl --negotiate -u:<anyUser> -b ~/<cookies.txt> -c ~/<cookies.txt> -X POST -H'Content-Type: application/json' http://_<endpoint>
curl --negotiate -u:<anyUser> -b ~/<cookies.txt> -c ~/<cookies.txt> -X POST -H'Content-Type: application/json' http://broker-host:port/druid/v2/?pretty -d @query.json