Can we access gsutil from Google Cloud Dataflow? if yes, then could someone please explain with example?

心已入冬 提交于 2019-12-11 04:14:51

问题


I'm new with google cloud dataflow and I need to copy files in GCS (Google Cloud Storage) from one bucket to another and rename. Answer with example would highly appreciated.


回答1:


Technically yes you can do this, but it would be better if you used Dataflow to just pick up the files and move them over to the new bucket instead of as a wrapper around gustil.

The class you need should be beam.io.gcsio.GcsIO() and that should be able to pick up and put down files where you need it too.



来源:https://stackoverflow.com/questions/45216308/can-we-access-gsutil-from-google-cloud-dataflow-if-yes-then-could-someone-plea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!