简体   繁体   English

我们可以使用 Cloud Data Fusion 执行 python 脚本吗

[英]Can we execute a python script using Cloud Data Fusion

I am new to GCP... Can we execute a python script using some workflow in Cloud Data Fusion?我是 GCP 的新手...我们可以使用 Cloud Data Fusion 中的某些工作流执行 python 脚本吗?

please tell about which workflow can be used?请告知可以使用哪个工作流程?

You can execute python scripts by using the Python transform batch plugin in Data Fusion.您可以使用 Data Fusion 中的 Python 转换批处理插件执行 python 脚本。 This plugin can be deployed through the Hub.这个插件可以通过 Hub 部署。 The Python transform source code can be found here . Python 变换源代码可以在这里找到。

nope does not work there is some problem with the python plugin do not use it. nope 不起作用 python 插件有一些问题 不要使用它。 the same pipeline with java script plugin was successful while python failed the code was pretty simple to like record['body_0'] += 10与 java 脚本插件相同的管道成功,而 python 失败,代码非常简单,喜欢 record['body_0'] += 10

in Python, you must use record['body_0'] = record['body_0'] + 10在 Python 中,必须使用 record['body_0'] = record['body_0'] + 10

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM