You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/11/26 13:12:00 UTC
[jira] [Commented] (HADOOP-15948) Inconsistency in get and put
syntax if filename/dirname contains space
[ https://issues.apache.org/jira/browse/HADOOP-15948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16698899#comment-16698899 ]
Hudson commented on HADOOP-15948:
---------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #15501 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/15501/])
HADOOP-15948. Inconsistency in get and put syntax if filename/dirname (vinayakumarb: rev 23b441c2253bcb3be5229d3c5eb1e165369070c0)
* (edit) hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopyPreserveFlag.java
* (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CopyCommands.java
> Inconsistency in get and put syntax if filename/dirname contains space
> ----------------------------------------------------------------------
>
> Key: HADOOP-15948
> URL: https://issues.apache.org/jira/browse/HADOOP-15948
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 3.1.1
> Reporter: vivek kumar
> Assignee: Ayush Saxena
> Priority: Minor
> Fix For: 3.0.4, 3.3.0, 3.2.1, 3.1.3
>
> Attachments: HDFS-13911-01.patch, HDFS-13911-02.patch
>
>
> Inconsistency in get and put syntax if file/fdir name contains space.
> While copying file/dir from local to HDFS, space needs to be represented with %20. However, the same representation does not work for copying file to Local. Expectaion is to have same syntax for both get and put.
> test:/ # mkdir /opt/
> test:/ # mkdir /opt/test\ space
> test:/ # vi /opt/test\ space/test\ file.txt
> test:/ # ll /opt/test\ space/
> total 4
> -rw-r--r-- 1 root root 7 Sep 12 18:37 test file.txt
> test:/ #
> *test:/ # hadoop fs -put /opt/test\ space/ /tmp/*
> *put: unexpected URISyntaxException*
> test:/ #
> *test:/ # hadoop fs -put /opt/test%20space/ /tmp/*
> test:/ #
> test:/ # hadoop fs -ls /tmp
> drwxr-xr-x - user1 hadoop 0 2018-09-12 18:38 /tmp/test space
> test:/ #
> *test:/ # hadoop fs -get /tmp/test%20space /srv/*
> *get: `/tmp/test%20space': No such file or directory*
> test:/ #
> *test:/ # hadoop fs -get /tmp/test\ space /srv/*
> test:/ # ll /srv/test\ space/
> total 4
> -rw-r--r-- 1 root root 7 Sep 12 18:39 test file.txt
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org