我安装了dse 5.1测试2节点cassandra集群,工作正常。
我需要配置LDAP身份验证。
下面是我的dse.yaml文件和cassandra .yaml文件
=========================
server_host:hostname server_port:389 search_dn:cn =用户名 search_password:ldappassword user_search_base:dc = test,dc = testdomain,dc = com user_memberof_attribute:member group_search_type:directory_search# group_search_filter :(&(cn = *)(objectclass = group)) group_name_attribute:cn credentials_validity_in_ms:0 connection_pool: max_active:8 max_idle:8
========================================
cassandra.yaml
authenticator:com.datastax.bdp.datastax.bdp.cassandra.auth.LdapAuthenticator 授权人:com.datastax.bdp.cassandra.auth.DseAuthorizer
role_manager:com.datastax.bdp.cassandra.auth.DseRoleManager roles_validity_in_ms:2000
dse version
[root @ hostname] dse -v 5.1.3 [root @ hostname dse]#
=========================================
我遇到错误
=============================================== =====
ned_function_warn_timeout = 500; user_function_timeout_policy =模具; windows_timer_interval = 1; write_request_timeout_in_ms = 2000] INFO [main] 2017-10-18 09:45:54,428 DatabaseDescriptor.java:368 - DiskAccessMode' auto'确定为mmap,indexAccessMode是mmap INFO [main] 2017-10-18 09:45:54,428 DatabaseDescriptor.java:422 - 全局可记录堆上阈值启用8192MB INFO [main] 2017-10-18 09:45:54,428 DatabaseDescriptor.java:426 - 全局可记录的堆外阈值启用8192MB INFO [main] 2017-10-18 09:45:54,447 RateBasedBackPressure.java:123 - 初始化背压高比率:0.9,因子:5,流量:快, 窗口大小:2000。 INFO [main] 2017-10-18 09:45:54,447 DatabaseDescriptor.java:718 - 使用策略org.apache.cassandra.net.RateBase禁用背压 dBackPressure {high_ratio = 0.9,factor = 5,flow = FAST}。 INFO [main] 2017-10-18 09:45:54,468 DseDelegateSnitch.java:40 - 将我的工作量设置为[Analytics,Cassandra] INFO [main] 2017-10-18 09:45:54,473 DseConfigYamlLoader.java:38 - 从文件加载设置:/etc/dse/dse.yaml ERROR [main] 2017-10-18 09:45:54,516 DseModule.java:109 - 无法启动服务器。退出.. org.yaml.snakeyaml.error.YAMLException:无法找到属性' server_host'在课堂上:com.datastax.bdp.config.Config 在com.datastax.bdp.config.DseYamlPropertyUtils.getProperty(DseYamlPropertyUtils.java:70)〜[dse-core-5.1.3.jar:5.1.3] 在org.yaml.snakeyaml.introspector.PropertyUtils.getProperty(PropertyUtils.java:121)〜[snakeyaml-1.12.jar:na] at org.yaml.snakeyaml.constructor.Constructor $ ConstructMapping.getProperty(Constructor.java:308)〜[snakeyaml-1.12.jar:na] 在org.yaml.snakeyaml.constructor.Constructor $ ConstructMapping.constructJavaBean2ndStep(Constructor.java:240)〜[snakeyaml-1.12.jar:na ] 在org.yaml.snakeyaml.constructor.Constructor $ ConstructMapping.construct(Constructor.java:189)〜[snakeyaml-1.12.jar:na] 在org.yaml.snakeyaml.constructor.Constructor $ ConstructYamlObject.construct(Constructor.java:331)〜[snakeyaml-1.12.jar:na] 在org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182)〜[snakeyaml-1.12.jar:na] 在org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:141)〜[snakeyaml-1.12.jar:na] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127)~ [snakeyaml-1.12.jar:na] 在org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481)〜[snakeyaml-1.12.jar:na] 在org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:475)〜[snakeyaml-1.12.jar:na] 在com.datastax.bdp.config.DseConfigYamlLoader。(DseConfigYamlLoader.java:57)〜[dse-core-5.1.3.jar:5.1.3] 在com.datastax.bdp.snitch.DseDelegateSnitch。(DseDelegateSnitch.java:41)〜[dse-core-5.1.3.jar:5.1.3] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)〜[na:1.8.0_144] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)〜[na:1.8.0_144] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)〜[na:1.8.0_144] 在java.lang.reflect.Constructor.newInstance(Constructor.java:423)〜[na:1.8.0_144] 在java.lang.Class.newInstance(Class.java:442)〜[na:1.8.0_144] 在org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:525)〜[cassandra-all-3.11.0.1855.jar:3.11.0.1855] 在org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:518)〜[cassandra-all-3.11.0.1855.jar:3.11.0.1855] 在org.apache.cassandra.config.DatabaseDescriptor.createEndpointSnitch(DatabaseDescriptor.java:1028)〜[cassandra-all-3.11.0.1855.jar ::
=============================================== ===============
答案 0 :(得分:0)
您似乎删除了ldap_options
中所有LDAP选项的父键dse.yaml
。您指定的所有子密钥都需要嵌套在ldap_options
根密钥下。