gpt4 book ai didi

java - 启用基本安全性,但出现错误无法将类型 ID 'basic' 解析为子类型

转载 作者:行者123 更新时间:2023-11-30 05:25:26 25 4
gpt4 key购买 nike

受影响的版本

  • durid 版本:apache-druid-0.16.0-incubating
  • jdk版本:jdk1.8.0_172-cloudera

描述

我想通过指南 https://druid.apache.org/docs/latest/development/extensions-core/druid-basic-security.html 启用我的单服务器“基本安全”但是当我运行 start-micro-quickstart 时出现错误。

日志显示:无法将类型 id“basic”解析为 [简单类型,类 org.apache.druid.server.security.Authorizer] 的子类型:已知类型 ids = [Authorizer,allowAll]在[来源:N/A;行:-1,列:-1]

The more detail to see github issue

我的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”作为扩展

访问https://druid.apache.org/docs/latest/development/extensions-core/druid-basic-security.html

我需要将“druid-basic-security”添加到 common.runtime.properties,如下所示

druid.extensions.loadList=["druid-hdfs-storage", "druid-kafka-indexing-service", "druid-datasketches", "druid-basic-security"]

关于java - 启用基本安全性,但出现错误无法将类型 ID 'basic' 解析为子类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58759153/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com