【发布时间】:2021-02-08 19:07:25
【问题描述】:
我查看了有关 Azure Databricks 外部 Hive Metastore(Azure SQL 数据库)使用情况的 [文档][1]。
我能够下载 jar 并将它们放入 /dbfs/hive_metastore_jar
我的下一步是使用初始化文件运行集群:
# Hive-specific configuration options.
# spark.hadoop prefix is added to make sure these Hive specific options propagate to the metastore client.
# JDBC connect string for a JDBC metastore
spark.hadoop.javax.jdo.option.ConnectionURL jdbc:sqlserver://<host>.database.windows.net:1433;database=<database> #should I add more parameters?
# Username to use against metastore database
spark.hadoop.javax.jdo.option.ConnectionUserName admin
# Password to use against metastore database
spark.hadoop.javax.jdo.option.ConnectionPassword p@ssword
# Driver class name for a JDBC metastore
spark.hadoop.javax.jdo.option.ConnectionDriverName com.microsoft.sqlserver.jdbc.SQLServerDriver
# Spark specific configuration options
spark.sql.hive.metastore.version 2.7.3 #I am not sure about this
# Skip this one if <hive-version> is 0.13.x.
spark.sql.hive.metastore.jars /dbfs/hive_metastore_jar
我已将 ini 文件上传到 DBMS 并启动集群。无法读取ini。有问题.. [1]:https://docs.microsoft.com/en-us/azure/databricks/data/metastores/external-hive-metastore
【问题讨论】:
-
请发布错误跟踪。很可能是与 SQL 服务器的连接问题。用
%sh nc -vz <host>.database.windows.net 1433检查它 -
谢谢你,亚历克斯。防火墙没问题。我发布了详细的问题和解决方案。
标签: databricks azure-databricks