Support Questions

Find answers, ask questions, and share your expertise

Hive Server2 Interactive (LLAP) Starting Error

I got the following error from datanodes when trying to start LLAP (Hiveserver2 Interactive):


ERROR [main ()] org.apache.hadoop.hive.llap.daemon.impl.LlapDaemon: Failed to start LLAP Daemon with exception
java.lang.NoClassDefFoundError: org/apache/tez/hadoop/shim/HadoopShimsLoader
	at org.apache.hadoop.hive.llap.daemon.impl.ContainerRunnerImpl.<init>( ~[hive-llap-server-]
	at org.apache.hadoop.hive.llap.daemon.impl.LlapDaemon.<init>( ~[hive-llap-server-]
	at org.apache.hadoop.hive.llap.daemon.impl.LlapDaemon.main( [hive-llap-server-]


Super Mentor
@Mahmoud Sabri

Can you please check your "/usr/hdp/x.x.x.x/tez_hive2/" directory and then see if you have the following kind of JARs present there?
Here please replace the "x.x.x.x" with the respective version of your HDP
Example: Version may be different in your case? If not then the LLAP might not be installed properly. Try reinstalling it once.

[root@sandbox ~]# cd /usr/hdp/
[root@sandbox tez_hive2]# ls -l hadoop-shim-*
-rw-r--r-- 1 root root 8792 Apr  1  2017 hadoop-shim-
-rw-r--r-- 1 root root 5463 Apr  1  2017 hadoop-shim-hdp-

Yes, I've as following on all nodes:

# ls -al /usr/hdp/*.jar

-rw-r--r-- 1 root root 8803 Jan 4 13:35 /usr/hdp/

-rw-r--r-- 1 root root 5453 Jan 4 13:35 /usr/hdp/