[
https://issues.apache.org/jira/browse/HCATALOG-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171397#comment-13171397
]
Julien Le Dem commented on HCATALOG-10:
---------------------------------------
You are correct, a class in the org.apache.hadoop.security.token package would
be more appropriate.
In fact the isSecurityEnabled method itself is a good candidate.
{code}
try {
UserGroupInformation.class.getMethod("isSecurityEnabled");
Security.getInstance().handleSecurity(job, outputJobInfo, client, conf,
harRequested);
} catch (NoSuchMethodException e) {
LOG.info("Security is not supported by this version of hadoop.");
}
{code}
Then if it's present we are going to use it to check if security is enabled.
I'm attaching an updated patch: HCAT-10_a.patch
> Shouldn't assume the secure hadoop installation
> -----------------------------------------------
>
> Key: HCATALOG-10
> URL: https://issues.apache.org/jira/browse/HCATALOG-10
> Project: HCatalog
> Issue Type: Bug
> Affects Versions: 0.1
> Reporter: Devaraj Das
> Assignee: Julien Le Dem
> Attachments: HCAT-10.patch, HCAT-10_a.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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira