You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Andy Isaacson <ad...@cloudera.com> on 2013/01/09 00:05:29 UTC

Re: hadoop -put command

However, note that DFSShell currently has some issues with
percent-encoded characters.

https://issues.apache.org/jira/browse/HDFS-4329

-andy

On Wed, Dec 26, 2012 at 1:35 PM, Ted Dunning <td...@maprtech.com> wrote:
> The colon is a reserved character in a URI according to RFC 3986[1].
>
> You should be able to percent encode those colons as %3A.
>
> [1] http://tools.ietf.org/html/rfc3986
>
>
> On Wed, Dec 26, 2012 at 1:00 PM, Mohit Anchlia <mo...@gmail.com>
> wrote:
>>
>> It looks like hadoop fs -put command doesn't like ":" in the file names.
>> Is there a way I can escape it?
>>
>>
>> hadoop fs -put /home/mapr/p/hjob.2012:12:26:11.0.dat
>> /user/apuser/temp-qdc/scratch/merge_jobs
>>
>> put: java.net.URISyntaxException: Relative path in absolute URI:
>> hjob.2012:12:26:11.0.dat
>
>