Connecting Databricks from Azure App Service using Hive-JDBC Driver
3 min readJan 29, 2019
You may have a use case where you need to query and report data from Hive. Azure Databricks supports various Business Intelligence tools (ref: https://docs.azuredatabricks.net/user-guide/bi/index.html) to serve the purpose.
In this example, we’ll be creating an Azure App Service which will fetch records using Hive-JDBC driver.
- Create a sample table at Azure Databricks.
2. Generate a user token
3. Note down the JDBC URL. The JDBC/ODBC option is available only with the Premium plan.
4. Download a JDBC Driver with all the dependencies from: https://docs.azuredatabricks.net/user-guide/bi/workbenchj.html. In my case, it’s uber-hive-jdbc-1.2.1.jar