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

Spark HiveWarehouseSession fail to execute query in HDP3

Spark HiveWarehouseSession fail to execute query in HDP3


After upgarding to HDP3, our former way to query hive tables from spark is deprecated. I am looking at the new way: HiveWarehouseSession.

However, currently, i am able to query databases and tables, but failed when executing query with HiveWarehouseSession.

The following is my example and exception:

scala > hive.executeQuery("select * from db.table where ds = '20190219'")

ERROR LlapBaseInputFormat: Closing connection due to error org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.ClassCastException:$CombineHiveInputSplit cannot be cast to org.apache.hadoop.mapred.FileSplit

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