the first time I test beeline commond(beeline -u jdbc:hive2://zte-1:10000/default -n hdfs -p 123), it can work as the following picture.(the command "hive --service metastore&;hive --service hiveserver2&;" should be used before)
when i reboot the system, start the hiveserver2, and use the same commands, it generates the errors.
ranger is always running, the first time it success, but the second time it failed, and now it can't success, its error is always saying "Error: java.lang.NoSuchMethodError: org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthzContext.getForwardedAddresses()Ljava/util/List; (state=,code=0)"
Is this a vanilla Apache Hive install? The recommendation is to run HiveServer2 with its own embedded metastore, so you would start HiveServer2 as
hive --service hiveserver2 -hiveconf hive.metastore.uris=' '
yeah, I install a Apache Hive in ordinary way not using HDP. I try the way (you suggest) to start the HiveServer2, but it seems to generate the same error, when I use the Beeline command to show tables. Anyway, thank you for your advice.
Can you please run beeline with verbose i.e. beeline --verbose this will allow beeline to get DEBUG logs and can you please also look for the hiveserver2.log and hivemetastore.log for the potential cause of issue and send the logs as well.