一、TDH開啟kerberos后登陸hive方式
TDH的hive是繼承到平台中的,需要使用遠程的方式連接hive數據庫,當kerberos開啟后,需要添加kerberos協議規則;使用方式如下
beeline -u 'jdbc:hive2://localhost:10000/demo;principal=hive/tdh-1@TDH;authentication=kerberos' -n hive -p 123456
如果不加principal=hive/tdh-1@TDH;authentication=kerberos則使用的是LDAP方式,使用用戶名和密碼登陸的元數據庫mysql;則會報錯