如果您无法通过SSH进入主节点,是否可以在Dataproc群集上提交HDFS命令。我在Gcloud SDK或其他API中找不到任何内容。
所以像:
gcloud dataproc jobs submit hdfs 'ls /hdfs/path/' --cluster=my-cluster --region=europe-west1
最简单的方法是通过pig fsgcloud dataproc jobs submit pig --execute 'fs -ls /'
,否则将其pig sh
作为其他shell命令的全部。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句