Warm tip: This article is reproduced from stackoverflow.com, please click
hadoop mapr

Uploading file with square brackets in its name to Hadoop via hadoop fs -put

发布于 2020-03-27 15:46:49

I have a file that has a square bracket in its name. This file needs to be uploaded to Hadoop via hadoop fs -put. I am using MapR 6.

The following variants lead to a put: unexpected URISyntaxException

hadoop fs -put aaa[bbb.txt /destination
hadoop fs -put aaa\[bbb.txt /destination
hadoop fs -put "aaa[bbb.txt" /destination
hadoop fs -put "aaa\[bbb.txt" /destination
Questioner
Stefan Papp
Viewed
72
Jorge Machado 2020-01-31 23:06

did you tried "aaa%5Bbbb.txt" ?