incubator-hcatalog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Le Dem (Commented) (JIRA)" <>
Subject [jira] [Commented] (HCATALOG-10) Shouldn't assume the secure hadoop installation
Date Wed, 14 Dec 2011 22:17:31 GMT


Julien Le Dem commented on HCATALOG-10:


Actually the first error is thrown when the Security class is loaded (or fails to load because
of it's dependency on, before the method handleSecurity() can be called.
This is why the Security class is not referred to outside the try block.
In my test the loading fails with a ClassNotFoundException on the first required
You can not get a NoSuchMethodError if the class containing the method can not be loaded (you
get a NoClassDefFoundError first).
I'm checking the message in the exception to make sure I am not masking a different issue.

We could have a more proactive approach: In HCatOutputFormat check for the existence of ""
that would be more explicit. What do you think?
try {
  // checking the presence of the Hadoop security package
  Security.getInstance().handleSecurity(job, outputJobInfo, client, conf, harRequested);
} catch (NoClassDefFoundError e) {
  // if hadoop security is not present we are working with a version of hadoop which does
  // not do security
  if (!e.getMessage().startsWith("org/apache/hadoop/security")) {
    throw e;
> Shouldn't assume the secure hadoop installation
> -----------------------------------------------
>                 Key: HCATALOG-10
>                 URL:
>             Project: HCatalog
>          Issue Type: Bug
>    Affects Versions: 0.1
>            Reporter: Devaraj Das
>            Assignee: Julien Le Dem
>         Attachments: HCAT-10.patch
> HCatalog currently only builds against Hadoop 20S. It should successfully build against
hadoop-0.20 as well. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message