[
https://issues.apache.org/jira/browse/SENTRY-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14197880#comment-14197880
]
guoquanshen commented on SENTRY-357:
------------------------------------
hi [~prasadm]. there exists inconsistent with reading policy file in sentry
solr plug-in. This jira is a good example. Because the user configure the
parameter sentry.solr.provider.resource=/user/solr/sentry/sentry-provider.ini.
The value of resource has no schema. This resource will be used in two
places:the constrcuting of LocalGroupResourceAuthorizationProvider and
SimpleFileProviderBackend. The SimpleFileProviderBackend will used the
configuration given by the SolrAuthBing and it know the resource was put on
HDFS. LocalGroupResourceAuthorizationProvider hasn't an chance to get the
configuration, because it has no construct function with a configuration
parameter. LocalGroupResourceAuthorizationProvider uses LocalFileSystem to find
the resource when no schema set, that's why this problem happen.
> 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
> Reporter: Nishant Gupta
> Assignee: guoquanshen
> Priority: Blocker
>
> 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)