Kerberos 認證時,需要將資料庫驅動和 URL 按本文進行更改。
TRANSWARP INCEPTOR(星環)
jdbc:hive2://ip:port/database;principal=hive/service@REALM;authentication=kerberos;kuser=pricipal;keytab=keytab路徑
URL 中的 principal:
由三部分組成:xxx/xxx@xxx
service 不是 IP 名,而是機器名
該 principal 需滿足 hive-site.xml 檔案中的規則
hive通用版本:hive
hive 2.x版本:hive2.x
hive 3.x版本:hive3.x
Apache Impala
應答 zookeeper 需要 Kerberos認證,可以查看主體 jar 包版本
應答使用的是資料庫自帶的 zookeeper jar包
檢查 zookeeper 的相關配置
url中最好包含principal和keytab
明確 zookeeper 是否需要進行認證,若無需認證則將 zookeeper.sasl.client 系統參數設定為 false,需要 sasl 認證,則需要注意連接的principal
如果 hbase.zookeeper.quorum參數值是主機名,則需要在 hosts 中配置映射
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
反馈已提交
网络繁忙