英文:
runOutput isn't appearing even after using dbutils.notebook.exit in ADF
问题
我正在使用以下代码来获取Azure Databricks笔记本中的一些信息,但即使笔记本活动成功完成后,runOutput也没有出现。
我使用的代码如下。
import json
dbutils.notebook.exit(json.dumps({
"num_records" : dest_count,
"source_table_name" : table_name
}))
Databricks笔记本已经正确退出,但笔记本活动没有显示runOutput。
请问有人能帮我看看这里有什么问题吗?
英文:
I am using the below code to get some information in the Azure Databricks notebook, but runOutput isn't appearing even after the successful completion of the notebook activity.
Code that I used.
import json
dbutils.notebook.exit(json.dumps({
"num_records" : dest_count,
"source_table_name" : table_name
}))
Databricks notebook exited properly, but Notebook activity isn't showing runOutput.
Can someone please help me what is wrong here?
答案1
得分: 0
当我在我的环境中尝试上述操作时,对我来说运行良好。
这是我的链接服务配置。
结果:
我建议您尝试一些故障排除步骤,比如更改笔记本,更改链接服务中的 Databricks 工作区为新工作区,或者使用现有群集。
如果问题仍然存在,那最好提出一个支持工单来解决您的问题。
英文:
When I tried the above in my environment, it is working fine for me.
These are my Linked service Configurations.
Result:
I suggest you try the troubleshooting steps like, changing Notebook and changing the Databricks workspace with new one or using Existing cluster in linked service.
If still, it is giving the same, then it's better to raise a Support ticket for your issue.
答案2
得分: 0
我不确定为什么它没有填充runOuput。基本上,我需要获取它正在推送到Azure Synapse的记录数,因此我已经使用了Lookup Activity来获取该表中的记录数。
英文:
I am not sure why it is not populating runOuput. Basically, I need to get number of records it is pushing to Azure Synapse, So I have used Lookup Activity to get the Number of records in that table.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论