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 2013/08/26 05:01:54 UTC
[jira] [Updated] (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:all-tabpanel ]
Steve Loughran updated HADOOP-9044:
-----------------------------------
Attachment: HADOOP-9044-002.patch
This patch (which applies to trunk)
# adds a {{printresource}} option that prints the resource to stdout.
# adds a test for it by locating log4j properties, capturing the output (a testing method to redefine the output/err streams was added for this), verifying it contains "Apache", which is of course in the headers of all of the ASF supplied files.
As all errors are printed to stderr, it should be usable in operations where the result is streamed to a new file
{code}
FindClass printresource /log4j.properties > log4j.txt
{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, 2.0.3-alpha
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-9044-002.patch, HADOOP-9044.patch, 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