未验证 提交 fedd00a1 编写于 作者: A Alexey Volkov 提交者: GitHub

KFP - Reusable components - Added information regarding outputting directories (#2168)

上级 5145e89a
......@@ -54,6 +54,10 @@ To output any piece of data, the component program must write the output data to
about that location so that the system can pass the data between steps.
The program should accept the paths for the output data as command-line arguments. That is, you should not hardcode the paths.
In practical terms this means that the program should receive local paths for every output the component produces and write data to those paths.
Usually an output is a single piece of data. In this case the program should treat the given output path as a file path, open it for writing and write the data there.
In some cases there is a need to output a directory of files. In this case the program should treat the given output path as a directory path, create a directory at that location and then add files to that directory. In both cases it might be necessary to create parent directories if they do not exist.
#### Advanced: Producing data in an external system
In some scenarios, the goal of the component is to create some data object in an external service (for example a BigQuery table).
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册