How to execute Hive query in Databricks?
We are calling a ".jar" file from Azure Data Factory using Databricks JAR activity. In the JAR activity we are specifying the Cluster Id in Databricks Linked Service.
In Databricks cluster we are adding below Spark config:
spark.hadoop.hive.warehouse.subdir.inherit.perms true
spark.databricks.delta.preview.enabled true
spark.hadoop.dfs.adls.adls2name.hostname adls2name.dfs.core.windows.net
spark.sql.warehouse.dir abfss://clusters@adls2name.blob.core.windows.net/nonprod/warehouse/
spark.hadoop.dfs.adls.adls2name.mountpoint /clusters/nonprod/
spark.hadoop.dfs.adls.home.hostname adls2name.dfs.core.windows.net
spark.hadoop.dfs.adls.home.mountpoint /clusters/foldername/
spark.hadoop.dfs.adls.oauth2.refresh.url https://login.microsoftonline.com/xxxxxxxxxx/oauth2/token
spark.hadoop.dfs.adls.oauth2.client.id
spark.hadoop.dfs.adls.oauth2.credential
spark.hadoop.dfs.adls.oauth2.access.token.provider.type ClientCredential
spark.hadoop.fs.azure.account.key.stagedata01.blob.core.windows.net
spark.hadoop.fs.azure.account.key.adls2name.blob.core.windows.net
The jar file is in "stagedata01" adls. The jar file is copying file from one location to other location in "adls2name" adls.
But it is failing...
Please help how to resolve?