简体   繁体   English

Apache Spark Streaming 连接字符串错误,Databricks 连接到 Azure 事件中心

[英]Apache Spark Streaming Connection String error with Databricks connection to Azure Event Hub

I'm getting the error:我收到错误:

Exception: ERROR: 'int' object has no attribute 'value'
AttributeError: 'str' object has no attribute '_jvm'
ehConf['eventhubs.connectionString'] = self.connectionProperties.sc._jvm.org.apache.spark.eventhubs.EventHubsUtils.encrypt(connectionString)

When I try and call the following function:当我尝试拨打以下 function 时:

def EventHubConnectionProperties(self,processId,startOffset,endTime):
        ehConf = {}
        ehConf['eventhubs.connectionString'] = self.connectionProperties.sc._jvm.org.apache.spark.eventhubs.EventHubsUtils.encrypt(connectionString)

Does anyone have any thoughts?有人有想法吗?

It should be used as below -它应该如下使用 -

ehConf['eventhubs.connectionString'] = sc._jvm.org.apache.spark.eventhubs.EventHubsUtils.encrypt(connectionString)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在集群 Spark Config 中为 Azure Databricks 设置数据湖连接 - Setting data lake connection in cluster Spark Config for Azure Databricks 将本地 Jupyter Hub 连接到 Azure Databricks Spark 集群 - Connect local Jupyter Hub to Azure Databricks Spark Cluster Azure 数据工厂托管身份连接到 Databricks - Azure Data Factory Manged Identity connection to Databricks 出站 TCP 连接问题导致从 azure function 向事件中心和数据湖发送数据 - Outbound TCP Connection issue cause be sending data to event hub and data lake from azure function 连接到 Azure SQL 数据库时,Databricks 作业出现频繁的“连接超时”错误 - Getting frequent "connection timeout" error on Databricks Job while connecting to Azure SQL Database Databricks-Salesforce 连接 - Databricks-Salesforce connection Azure 函数数据库连接字符串 - Azure Functions Database Connection String Databricks:Azure Queue Storage structured streaming key not found 错误 - Databricks: Azure Queue Storage structured streaming key not found error Azure 托管标识:无密码连接字符串到 Azure SQL 数据库连接错误 - Azure managed identity: Passwordless connection string to Azure SQL database connection error Azure 函数错误:受监视集合的连接字符串格式无效 - Azure Functions error: The connection string for the monitored collection is in an invalid format
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM