Put file on HDFS with spaces in name

前端 未结 5 456
旧巷少年郎
旧巷少年郎 2021-01-15 05:23

I have a file named file name(1).zip (with the space and parentheses in it) and I want to put this file on the HDFS. But everytime I try to put it via had

5条回答
  •  醉梦人生
    2021-01-15 06:04

    Replace the spaces with %20.

    The percent-encoding for space is %20

    Use

    hadoop fs -put first%20name.zip /tmp/one
    

    instead of

    hadoop fs -put first name.zip /tmp/one
    

提交回复
热议问题