0
val spark=
SparkSession.builder.master("local[*]").config("hive.metastore.uris", "thrift://10.30.61.13:9083")
        .appName("Spark Hive Example")
        .enableHiveSupport()
        .getOrCreate()
    val df=spark.table("xtable")
    df.show()

Through this I need to set this in hive-sit-xml . So when I want to connect to another hive then again I need to change the hive-site.xml.So how can I generalise it

OneCricketeer
  • 151,199
  • 17
  • 111
  • 216
AkhilaV
  • 413
  • 2
  • 7
  • 17

0 Answers0