You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "diptenduLF (via GitHub)" <gi...@apache.org> on 2024/09/10 12:48:55 UTC
[I] [Bug]: How to run YAML pipeline from Python SDK rather than from command line [beam]
diptenduLF opened a new issue, #32416:
URL: https://github.com/apache/beam/issues/32416
### What happened?
The examples run YAML pipeline from the command line:
`python -m apache_beam.yaml.main --pipeline_spec_file=pipeline-01.yaml
`
However, I want to run the pipeline file from within a Python script like:
```
with beam.Pipeline('DirectRunner') as p:
......
```
How can this be done?
### Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
### Issue Components
- [X] Component: Python SDK
- [ ] Component: Java SDK
- [ ] Component: Go SDK
- [ ] Component: Typescript SDK
- [ ] Component: IO connector
- [X] Component: Beam YAML
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [ ] Component: Infrastructure
- [ ] Component: Spark Runner
- [ ] Component: Flink Runner
- [ ] Component: Samza Runner
- [ ] Component: Twister2 Runner
- [ ] Component: Hazelcast Jet Runner
- [ ] Component: Google Cloud Dataflow Runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: How to run YAML pipeline from Python SDK rather than from command line [beam]
Posted by "liferoad (via GitHub)" <gi...@apache.org>.
liferoad closed issue #32416: [Bug]: How to run YAML pipeline from Python SDK rather than from command line
URL: https://github.com/apache/beam/issues/32416
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: How to run YAML pipeline from Python SDK rather than from command line [beam]
Posted by "liferoad (via GitHub)" <gi...@apache.org>.
liferoad commented on issue #32416:
URL: https://github.com/apache/beam/issues/32416#issuecomment-2344008052
https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/main/python/src/main/python/yaml-template/main.py
```
from apache_beam.yaml import main
# parse your argv then do this
main.run(argv=your_argv)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org