Hi:
    I found that the following methods are used when setting parameters to 
create a sparksession access hive table
1) hive.execution.engine:spark
spark = SparkSession.builder()
  .appName("get data from hive")
  .config("hive.execution.engine", "spark")
  .enableHiveSupport()
  .getOrCreate()
2) spark.sql.warehouse.dir:warehouseLocation
spark = SparkSession.builder()
  .appName("get data from hive")
  .config("spark.sql.warehouse.dir", warehouseLocation)
  .enableHiveSupport()
  .getOrCreate()

What is the difference between the above two parameter settings?

Reply via email to