hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Collins (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8431) Running distcp wo args throws IllegalArgumentException
Date Thu, 06 Sep 2012 03:40:08 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-8431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449384#comment-13449384
] 

Eli Collins commented on HADOOP-8431:
-------------------------------------

It should just print the usage. Eg in the following I'd remove the ERROR log, the  IllegalArgumentException
backtrace and the "Invalid arguments" log.

{noformat}
$ ./bin/hadoop distcp
12/09/05 20:38:26 ERROR tools.DistCp: Invalid arguments: 
java.lang.IllegalArgumentException: Target path not specified
	at org.apache.hadoop.tools.OptionsParser.parse(OptionsParser.java:86)
	at org.apache.hadoop.tools.DistCp.run(DistCp.java:102)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
	at org.apache.hadoop.tools.DistCp.main(DistCp.java:368)
Invalid arguments: Target path not specified
usage: distcp OPTIONS [source_path...] <target_path>
              OPTIONS
 -async                 Should distcp execution be blocking
 -atomic                Commit all changes or none
 -bandwidth <arg>       Specify bandwidth per map in MB
 -delete                Delete from target, files missing in source
 -f <arg>               List of files that need to be copied
 -filelimit <arg>       (Deprecated!) Limit number of files copied to <= n
 -i                     Ignore failures during copy
 -log <arg>             Folder on DFS where distcp execution logs are
                        saved
 -m <arg>               Max number of concurrent maps to use for copy
 -mapredSslConf <arg>   Configuration for ssl config file, to use with
                        hftps://
 -overwrite             Choose to overwrite target files unconditionally,
                        even if they exist.
 -p <arg>               preserve status (rbugp)(replication, block-size,
                        user, group, permission)
 -sizelimit <arg>       (Deprecated!) Limit number of files copied to <= n
                        bytes
 -skipcrccheck          Whether to skip CRC checks between source and
                        target paths.
 -strategy <arg>        Copy strategy to use. Default is dividing work
                        based on file sizes
 -tmp <arg>             Intermediate work path to be used for atomic
                        commit
 -update                Update target, copying only missingfiles or
                        directories
{noformat}

                
> Running distcp wo args throws IllegalArgumentException
> ------------------------------------------------------
>
>                 Key: HADOOP-8431
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8431
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.0.0-alpha
>            Reporter: Eli Collins
>              Labels: newbie
>
> Running distcp w/o args results in the following:
> {noformat}
> hadoop-3.0.0-SNAPSHOT $ ./bin/hadoop distcp
> 12/05/23 18:49:04 ERROR tools.DistCp: Invalid arguments: 
> java.lang.IllegalArgumentException: Target path not specified
> 	at org.apache.hadoop.tools.OptionsParser.parse(OptionsParser.java:86)
> 	at org.apache.hadoop.tools.DistCp.run(DistCp.java:102)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> 	at org.apache.hadoop.tools.DistCp.main(DistCp.java:368)
> Invalid arguments: Target path not specified
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message