Last active
December 4, 2018 11:10
-
-
Save JD-V/41c0dfeb4b4765ab8884bc53fbaa28f9 to your computer and use it in GitHub Desktop.
initiate data flow job
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create setup.py | |
user pip freeze to list all the depndencies and then add it to setup.py | |
activate virtual env | |
source ./bin/activate | |
to run dataflow | |
python df.py --project <gcp_proj_name> --input_topic projects/cldcvr-dev/topics/<topic-name> --runner DataflowRunner --temp_location gs://<bucket location for dumpig backup>/ --setup_file /Users/jd-v/datflow/setup.py --job_name <name_that_will_show_up_in_gcp> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment