cdmikechen commented on issue #774: Matching question of the version in Spark 
and Hive2 
URL: https://github.com/apache/incubator-hudi/issues/774#issuecomment-507902009
 
 
   @bvaradar  I added some configs in spark session refer to 
https://issues.apache.org/jira/browse/SPARK-18112
   ```
   val sparkSession = SparkSession.builder()
         ...
         .config("spark.sql.hive.metastore.version", "2.3.3")
         .config("spark.sql.hive.metastore.jars", ".../hive-jars/*")
         .enableHiveSupport()
         .getOrCreate()
   ```
   I think if we set `spark.sql.hive.metastore.version`, spark will not use 
basic hive-1.2.1 metastore in itself jars lib and check hive version and then 
use `org.apache.spark.sql.hive.client.IsolatedClientLoader`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to