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 "Steve Loughran (JIRA)" <ji...@apache.org> on 2012/11/15 13:08:12 UTC

[jira] [Commented] (HADOOP-9044) add FindClass main class to provide classpath checking of installations

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

Steve Loughran commented on HADOOP-9044:
----------------------------------------

FindClass class with tests

This is not an extension to the hadoop command, but it is a toolrunner class that can be invoked by the hadoop + classname method. I don't see any reason why it could not be added as a new command -I've just initially targeted it at installation script such as those of Whirr.

usage
{code}
Usage : [load <classname> | create <classname> | resource <resourcename>
org.apache.hadoop.util.TestFindClass
The return codes are:
  0 -- The operation was successful
  1 -- Something went wrong
  2 -- The usage message was printed
  3 -- The class or resource was not found
  4 -- The class was found but could not be loaded
  5 -- The class was loaded, but an instance it could not be created
{code}
                
> add FindClass main class to provide classpath checking of installations
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-9044
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9044
>             Project: Hadoop Common
>          Issue Type: New Feature
>          Components: util
>    Affects Versions: 1.1.0
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Minor
>         Attachments: HADOOP-9044.patch
>
>
> It's useful in postflight checking of a hadoop installation to verify that classes load, especially codes with external JARs and native codecs. 
> An entry point designed to load a named class and create an instance of that class can do this -and be invoked from any shell script or tool that does the installation.

--
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