Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

java.lang.IllegalArgumentException: No running LLAP daemons! Please check LLAP service status and zookeeper configuration

Highlighted

java.lang.IllegalArgumentException: No running LLAP daemons! Please check LLAP service status and zookeeper configuration

New Contributor

[root@hadoopmaster ~]# spark-shell --jars /usr/hdp/current/hive_warehouse_connector/hive-warehouse-connector-assembly-1.0.0.3.0.1.0-187.jar

scala> import com.hortonworks.hwc.HiveWarehouseSession import com.hortonworks.hwc.HiveWarehouseSession

scala> import com.hortonworks.hwc.HiveWarehouseSession._ import com.hortonworks.hwc.HiveWarehouseSession._

scala> val hive = HiveWarehouseSession.session(spark).build() hive: com.hortonworks.spark.sql.hive.llap.HiveWarehouseSessionImpl = com.hortonworks.spark.sql.hive.llap.HiveWarehouseSessionImpl@5da2966

scala> hive.setDatabase("default")

scala> val df = hive.executeQuery("select * from dd1") df: org.apache.spark.sql.Dataset[org.apache.spark.sql.Row] = [col: int]

scala> df.show() 19/01/11 15:35:24 ERROR LlapBaseInputFormat: Closing connection due to error shadehive.org.apache.hive.service.cli.HiveSQLException: java.io.IOException: org.apache.hadoop.hive.ql.metadata.HiveException: java.io.IOException: java.lang.IllegalArgumentException: No running LLAP daemons! Please check LLAP service status and zookeeper configuration

Don't have an account?
Coming from Hortonworks? Activate your account here