java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found.

Posted by Tenghuan He on
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/java-lang-IllegalArgumentException-Unable-to-instantiate-SparkSession-with-Hive-support-because-Hive-tp12432.html

Hi, all

    I am new to CarbonData when following the Quick Start Guide
<http://carbondata.apache.org/quick-start-guide.html>, following error
occured

import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.CarbonSession._
val carbon =
SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession()

java.lang.IllegalArgumentException: Unable to instantiate SparkSession with
Hive support because Hive classes are not found.
  at
org.apache.spark.sql.SparkSession$Builder.enableHiveSupport(SparkSession.scala:815)
  at
org.apache.spark.sql.CarbonSession$CarbonBuilder.getOrCreateCarbonSession(CarbonSession.scala:80)
  at
org.apache.spark.sql.CarbonSession$CarbonBuilder.getOrCreateCarbonSession(CarbonSession.scala:67)
  ... 50 elided

By the way, I am confused by the "default metastore location, which is
pointed to ../carbon.metastore"
Is it a configuration file I should write it myself, or a file that will be
generated in the specified path?

Can any one help me?

Thanks & Best Regards

Tenghuan