[ 
https://issues.apache.org/jira/browse/HADOOP-15892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chang Zhichao updated HADOOP-15892:
-----------------------------------
    Description: 
I am try using hadoop distcp command to copy a file to a directory, like this
{code:java}
hadoop distcp 
hdfs://sdg/user/hive/warehouse/migration_chang.db/snda_game_user_profile_mid_3/part_date=2018-10-28/000079_0
   
hdfs://sdg/user/hive/warehouse/migration_chang.db/snda_game_user_profile_mid_5/part_date=2018-10-28/
{code}
It will copy the source file '000079_0' to a file called "part_date=2018-10-28".

I think it is confusing, and better way is remind error like " No such file or 
directory" .('hadoop fs -cp' command or Linux 'cp' command do like this way.)

 

 

  was:
hadoop distcp command copy a file to a directory, like this
{code:java}
hadoop distcp  
hdfs://sdg/user/hive/warehouse/migration_chang.db/snda_game_user_profile_mid_3/part_date=2018-10-28/000079_0
   
hdfs://sdg/user/hive/warehouse/migration_chang.db/snda_game_user_profile_mid_5/part_date=2018-10-28/
{code}
It will copy the source file '000079_0' to a file called "part_date=2018-10-28".

I think it is confusing and better way is remind error like 'hadoop fs -cp' 
command: " No such file or directory" .

 

 


>  hadoop distcp command fail without reminder
> --------------------------------------------
>
>                 Key: HADOOP-15892
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15892
>             Project: Hadoop Common
>          Issue Type: Wish
>          Components: fs
>    Affects Versions: 2.5.0
>            Reporter: Chang Zhichao
>            Priority: Minor
>
> I am try using hadoop distcp command to copy a file to a directory, like this
> {code:java}
> hadoop distcp 
> hdfs://sdg/user/hive/warehouse/migration_chang.db/snda_game_user_profile_mid_3/part_date=2018-10-28/000079_0
>    
> hdfs://sdg/user/hive/warehouse/migration_chang.db/snda_game_user_profile_mid_5/part_date=2018-10-28/
> {code}
> It will copy the source file '000079_0' to a file called 
> "part_date=2018-10-28".
> I think it is confusing, and better way is remind error like " No such file 
> or directory" .('hadoop fs -cp' command or Linux 'cp' command do like this 
> way.)
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to