Support Questions

Find answers, ask questions, and share your expertise

how to stop beeline bypassing hiveserver2 pam authentication on a beeline Embedded Client connection

New Contributor

supriseingly in spite of Hiveserver2 configured for PAM authentication , beeline is bypassing PAM authentication . Request to know on how to stop beeline accessing hiveserver2 without credentials

Log as given below :

beeline> !connect jdbc:hive2://

Connecting to jdbc:hive2://

Enter username for jdbc:hive2://:

Enter password for jdbc:hive2://:

Connected to: Apache Hive (version 1.2.1.2.3.2.48-5) Driver: Hive JDBC (version 1.2.1.2.3.2.48-5)

Transaction isolation: TRANSACTION_REPEATABLE_READ

0: jdbc:hive2://>

1 REPLY 1

New Contributor

Solved ,

Solution : place a blank file " hiveserver2-site.xml " in path of environmental variable HIVE_CONF_DIR ( path defined in hive-env.sh ) in every Node where hiveserver2 is running .

Comment : This would ensure to block anonymous Login's to hiveserver2 without valid username/password's