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

Allen Wittenauer commented on HADOOP-11150:
-------------------------------------------

bq.  how about showing the message like "The first argument is not valid 
command nor fully qualified class name" before usage?

Yes, this is a good idea and really it should have been done as part of 11092.  
hadoop_validate_classname really should throw a hadoop_error message so that 
the user knows why they are getting usage.  It'd also be good to have some 
comments around _validate to explain why that function exists. :)

bq. Otherwise, is it worth to add command such as "run" which takes main class 
name as argument?

It's such an edge case that I don't think it is, especially if we call out in 
the release notes/documentation that classname needs to be in a package.  I 
have to check, but I suspect this functionality is mostly undocumented anyway 
though.

> hadoop command should accept CLASSNAME without package name
> -----------------------------------------------------------
>
>                 Key: HADOOP-11150
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11150
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: scripts
>            Reporter: Masatake Iwasaki
>            Assignee: Masatake Iwasaki
>            Priority: Minor
>         Attachments: HADOOP-11150-0.patch
>
>
> hadoop_validate_classname checks whether the classname contains ".". It is 
> possible that classname without package is used in some examples or tutorials.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to