Looks like you are trying to connect to HiveServer v1. Beeline is the CLI
client that is supported to work with HiveServer2. You can start HiveServer2
like this: hive --service hiveserver2 and then connect to it using beeline.
Thanks,
—Vaibhav
From: Mich Talebzadeh
Thanks Vaibhav
I shutdown all and rebooted the Linux host.
Started hive with hiveserver2 as follows:
hduser@rhes564::/home/hduser/jobs hive --service hiveserver2
[1] 12234
hduser@rhes564::/home/hduser/jobs SLF4J: Class path contains multiple SLF4J
bindings.
SLF4J: Found
Managed to log in. Need top provide the correct user and password
beeline
Beeline version 0.14.0 by Apache Hive
beeline !connect jdbc:hive2://rhes564:1
scan complete in 7ms
Connecting to jdbc:hive2://rhes564:1
Enter username for jdbc:hive2://rhes564:1: hduser
Enter password