我从link attached here 安装了德鲁伊以安装德鲁伊。
以下代码已添加到common.runtime.properties文件中。
# Basic Security
druid.auth.authenticatorChain=["MyBasicAuthenticator"]
druid.auth.authenticator.MyBasicAuthenticator.type=basic
druid.auth.authenticator.MyBasicAuthenticator.initialAdminPassword=password1
druid.auth.authenticator.MyBasicAuthenticator.initialInternalClientPassword=password2
druid.auth.authenticator.MyBasicAuthenticator.authorizerName=MyBasicAuthorizer
## Creating an Escalator
# Escalator
druid.escalator.type=basic
druid.escalator.internalClientUsername=druid_system
druid.escalator.internalClientPassword=password2
druid.escalator.authorizerName=MyBasicAuthorizer
druid.auth.authorizers=["MyBasicAuthorizer"]
druid.auth.authorizer.MyBasicAuthorizer.type=basic
还将"druid-basic-security"
添加到druid.extensions.loadList
druid.extensions.loadList=["druid-hdfs-storage", "druid-kafka-indexing-service", "druid-datasketches", "druid-basic-security"]
查询德鲁伊时如何进行身份验证?
我应该在HTTP标头中添加用户名和密码吗?
答案 0 :(得分:0)
您使用基本身份验证。您应该只可以使用以下URL将查询发送到druid:
https://username:password@your-druid.com/druid/v2/sql