FW: Spark2 and Hive metastore

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

FW: Spark2 and Hive metastore

Ирина Шершукова

 

hello guys,  spark2.1.0 couldn’t connect to existing Hive metastore.

 

 



---------------------------------------------------------------------
To unsubscribe e-mail: [hidden email]

spark2pyspark.rtf (1M) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: FW: Spark2 and Hive metastore

Sergey B.
In order for the Spark to see Hive metastore you need to build Spark Session accordingly:

val spark = SparkSession.builder()
  .master("local[2]")
  .appName("myApp")
  .config("hive.metastore.uris","thrift://localhost:9083")
  .enableHiveSupport()
  .getOrCreate()

On Mon, Nov 12, 2018 at 11:49 AM Ирина Шершукова <[hidden email]> wrote:

 

hello guys,  spark2.1.0 couldn’t connect to existing Hive metastore.

 

 


---------------------------------------------------------------------
To unsubscribe e-mail: [hidden email]