Support Questions
Find answers, ask questions, and share your expertise

Hiveserver2 Interactive (LLAP) doesn't start


Hello Team,

We are using HDP-2.6.5 in our environment.

We are getting following error while starting up Hiveserver2 Interactive (LLAP) server:

2019-03-27T04:33:05,291 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-]
Caused by: java.lang.ClassNotFoundException: org.apache.tez.hadoop.shim.HadoopShimsLoader
    at ~[?:1.8.0_192]
    at java.lang.ClassLoader.loadClass( ~[?:1.8.0_192]
    at sun.misc.Launcher$AppClassLoader.loadClass( ~[?:1.8.0_192]
    at java.lang.ClassLoader.loadClass( ~[?:1.8.0_192]
    ... 3 more

On all the nodes of cluster, hadoop-shim* jars are present as given below:

[root@p-hdp-01 ~]# cd /usr/hdp/
[root@p-hdp-01 tez_hive2]# ls -lrth
total 4.0M
-rw-r--r-- 1 root root  23K May 11  2018 tez-yarn-timeline-history-with-fs-
-rw-r--r-- 1 root root 7.7K May 11  2018 tez-yarn-timeline-history-with-acls-
-rw-r--r-- 1 root root  28K May 11  2018 tez-yarn-timeline-history-
-rw-r--r-- 1 root root  12K May 11  2018 tez-yarn-timeline-cache-plugin-
-rw-r--r-- 1 root root 155K May 11  2018 tez-tests-
-rw-r--r-- 1 root root 642K May 11  2018 tez-runtime-library-
-rw-r--r-- 1 root root 192K May 11  2018 tez-runtime-internals-
-rw-r--r-- 1 root root 284K May 11  2018 tez-mapreduce-
-rw-r--r-- 1 root root  72K May 11  2018 tez-job-analyzer-
-rw-r--r-- 1 root root  15K May 11  2018 tez-javadoc-tools-
-rw-r--r-- 1 root root  77K May 11  2018 tez-history-parser-
-rw-r--r-- 1 root root 106K May 11  2018 tez-ext-service-tests-
-rw-r--r-- 1 root root  56K May 11  2018 tez-examples-
-rw-r--r-- 1 root root 1.3M May 11  2018 tez-dag-
-rw-r--r-- 1 root root  76K May 11  2018 tez-common-
-rw-r--r-- 1 root root 975K May 11  2018 tez-api-
-rw-r--r-- 1 root root 5.4K May 11  2018 hadoop-shim-hdp-
-rw-r--r-- 1 root root 8.7K May 11  2018 hadoop-shim-
drwxr-xr-x 2 root root    6 May 11  2018 doc
lrwxrwxrwx 1 root root   19 Mar 25 06:16 conf -> /etc/tez_hive2/conf
drwxr-xr-x 3 root root   18 Mar 25 06:16 man
drwxr-xr-x 2 root root 4.0K Mar 25 06:16 lib
drwxr-xr-x 2 root root   42 Mar 25 06:16 ui
[root@p-hdp-01 tez_hive2]

How to resolve this?

Please suggest.






@Bhushan Kandalkar I guess these files are present, but still LLAP is not able to pick the aux jars. Can you please try to add these jars into AUX jars and try start of LLAP. You can try to add them like below,

- Add below 2 files in Advanced hive-interactive-env -> Auxillary JAR list


Nitin Shelke


Thanks @Nitin Shelke. This resolved LLAP starting issue. But while inserting any data in Hive table using LLAP we got below error:

TaskAttempt 3 failed, info=[org.apache.hadoop.ipc.RemoteException(java.lang.NoClassDefFoundError): org/apache/tez/runtime/internals/api/TaskReporterInterface
        at org.apache.hadoop.hive.llap.daemon.impl.ContainerRunnerImpl.submitWork(
        at org.apache.hadoop.hive.llap.daemon.impl.LlapDaemon.submitWork(
        at org.apache.hadoop.hive.llap.daemon.impl.LlapProtocolServerImpl.submitWork(
        at org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos$LlapDaemonProtocol$2.callBlockingMethod(
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$
        at org.apache.hadoop.ipc.RPC$
        at org.apache.hadoop.ipc.Server$Handler$
        at org.apache.hadoop.ipc.Server$Handler$
        at Method)
        at org.apache.hadoop.ipc.Server$
Caused by: java.lang.ClassNotFoundException: org.apache.tez.runtime.internals.api.TaskReporterInterface
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        ... 12 more
]], Vertex did not succeed due to OWN_TASK_FAILURE, failedTasks:1 killedTasks:0, Vertex vertex_1553784387057_0006_2_00 [Map 1] killed/failed due to:OWN_TASK_FAILURE]DAG did not succeed due to VERTEX_FAILURE. failedVertices:1 killedVertices:0 (state=08S01,code=2)

To resolve this issue, added all jars under '/usr/hdp/' location in Auxilary Jar list as follow:


Now, able to insert data in Hive table.

; ;