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 Driver: Hive JDBC (version


0: jdbc:hive2://>


New Contributor

Solved ,

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

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