Druid JDBC authentication for java application

Hi Team,

I am connecting to druid using avatica JDBC driver from my java application.

I have added the basic authentication to druid console which is now asking for credentials. How can i authenticate to druid at the time of querying from java application ?

Thanks & Regards,

Anshul Sharma.

Hi Anshul,

Please refer avantica client doc : https://www.bookstack.cn/read/calcite/5ac209b210242dc0.md

please user authentication=BASIC in the url with username and password .

Can you pls provide the sample url ?

Thanks,

Anshul