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.

Spark HiveWarehouseSession fail to execute query in HDP3

Spark HiveWarehouseSession fail to execute query in HDP3

Explorer

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

shadehive.org.apache.hive.service.cli.HiveSQLException: java.io.IOException: org.apache.hadoop.hive.ql.metadata.HiveException: java.io.IOException: java.lang.ClassCastException: org.apache.hadoop.hive.ql.io.CombineHiveInputFormat$CombineHiveInputSplit cannot be cast to org.apache.hadoop.mapred.FileSplit

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