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
  • 179,855
  • 19
  • 132
  • 245
AkhilaV
  • 423
  • 3
  • 8
  • 18

0 Answers0