sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shenguoquan (JIRA)" <>
Subject [jira] [Commented] (SENTRY-357) Not able to read policy files on HDFS for Solr
Date Wed, 03 Dec 2014 02:00:14 GMT


shenguoquan commented on SENTRY-357:

Hi [~gchanan]. I check out the source code, and find the failure is that where to load the
policy file for LocalGroupResourceAuthorizationProvider. The TestHDFSIntegration.testEnd2End
uses the LocalGroupResourceAuthorizationProvider to load the policy from the LocalFileSystem
where the policy file actually exists. But HiveBinding has the parameter fs.defaultFS is set.
LocalGroupResourceAuthorizationProvider should load the policy file from HDFS when the SENTRY-357
is patched, because the LocalGroupResourceAuthorizationProvider should deduce the source when
the configuration is transferred. I solve this problem by coping the policy file to HDFS.

> Not able to read policy files on HDFS for Solr
> ----------------------------------------------
>                 Key: SENTRY-357
>                 URL:
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Nishant Gupta
>            Assignee: shenguoquan
>            Priority: Blocker
>             Fix For: 1.5.0
>         Attachments: SENTRY-357.002.patch, SENTRY-357.patch
> Using Cloudera CDH 4.7 packaged with sentry(incubating) 1.1.0+22. Unable to enable Sentry
authorization for Solr. Though the policy file is there on HDFS with required permissions
to solr user it gives the error while SolrAuthzBinding
> File /user/solr/sentry/sentry-provider.ini does not exist

This message was sent by Atlassian JIRA

View raw message