参数 | 值 | 备注 |
hive.server2.authentication | LDAP | 设置 authentication 认证机制为 LDAP。 |
hive.server2.authentication.ldap.url | ldap://$l{dap_ip}:389 | 指定 LDAP 服务的 url。 ${ldap_ip} 为 OPENLDAP 服务所在节点的 ip,可以在 EMR 控制台 集群服务 > OPENLADP 下获取。 自建 LDAP 服务根据实际情况填写。 |
hive.server2.authentication.ldap.baseDN | ou=People,dc=emr,dc=cloud,dc=tencent,dc=com | EMR 中 LDAP 服务用户所在的 Base DN,自建 LDAP 服务请根据实际情况填写。 |
hive.server2.authentication.ldap.guidKey | cn | EMR 中 LDAP 服务用户名格式,自建 LDAP 服务请根据实际情况填写。 |
beeline -u "jdbc:hive2://${hs2_ip}:${hs2_port}" -n ${user} -p ${password}
jdbc:hive2://${hs2_ip}:${hs2_port}/default;user=${user};password=${password}
文档反馈