如何使用 informatica powercentre 命令任务运行 python 脚本

问题描述 投票:0回答:1

任何人都可以帮助如何通过 informatica 命令任务执行 python 脚本。我能够在本地计算机中运行该脚本,但不知道如何通过 informatica 运行它。 请求:如果您已经使用命令任务在项目中执行了 python 脚本,请分享示例或屏幕截图,这将很容易理解。谢谢

informatica informatica-powercenter informatica-powerexchange informatica-data-integration-hub
1个回答
0
投票

首先,确保 Python 在您的集成服务上可用。

接下来,在工作流程中使用

Command Task
。或者会话中的
Pre/Post session command
属性。您可能需要在服务器上指示 python 二进制文件和脚本的完整路径,例如

/your_python_folder/bin/python -m /your_script_path/script_name.py

创建一个批处理脚本来激活 Python 环境是个好主意,如果您需要的话。

© www.soinside.com 2019 - 2024. All rights reserved.