[
https://issues.apache.org/jira/browse/SENTRY-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14232458#comment-14232458
]
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: https://issues.apache.org/jira/browse/SENTRY-357
> 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
> java.io.FileNotFoundException: File /user/solr/sentry/sentry-provider.ini
> does not exist
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)