runOutput在使用ADF中的dbutils.notebook.exit后仍未出现。

huangapple go评论55阅读模式
英文:

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?

runOutput在使用ADF中的dbutils.notebook.exit后仍未出现。

runOutput在使用ADF中的dbutils.notebook.exit后仍未出现。

答案1

得分: 0

当我在我的环境中尝试上述操作时,对我来说运行良好。

这是我的链接服务配置。

runOutput在使用ADF中的dbutils.notebook.exit后仍未出现。

runOutput在使用ADF中的dbutils.notebook.exit后仍未出现。

结果:

runOutput在使用ADF中的dbutils.notebook.exit后仍未出现。

我建议您尝试一些故障排除步骤,比如更改笔记本,更改链接服务中的 Databricks 工作区为新工作区,或者使用现有群集。

如果问题仍然存在,那最好提出一个支持工单来解决您的问题。

英文:

When I tried the above in my environment, it is working fine for me.

These are my Linked service Configurations.

runOutput在使用ADF中的dbutils.notebook.exit后仍未出现。

runOutput在使用ADF中的dbutils.notebook.exit后仍未出现。

Result:

runOutput在使用ADF中的dbutils.notebook.exit后仍未出现。

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.

huangapple
  • 本文由 发表于 2023年2月13日 23:37:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75438061.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定