목록Google Cloud (1)
이야기박스

gsutil로 GCS 경로 이동하면서 생겼던 일들을 짧은 포스팅으로 담아 보려고 합니다. # 목적 gs://storyparks_bucket/dir_a 라는 경로의 폴더를 gs://storyparks_bucket/dir_b 로 옮기자! 즉, 폴더 이름을 변경 혹은 dir_a의 파일들을 dir_b로 옮기는 것이 되겠네요 # Solution 1. mv 명령어 사용 hdfs 명령어에서는 mv에 wildcard(*)를 사용하여 다음과 같이 손쉽게 파일들을 옮길 수 있었습니다. hdfs dfs -mv hdfs://storyparks_datalake/dir_a/* hdfs://storyparks_datalake/dir_b/ 하지만 gsutil에서는 mv 명령어에 wildcard(*) 사용이 불가능 하더라고요! gsu..
Computer & Data/Cloud Platform
2020. 6. 11. 12:28