You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ranger.apache.org by 汪赫扬 <hy...@zuche.com> on 2016/11/04 03:06:09 UTC

Need help on three problem met when using ranger 0.6.1.

Hi,

I have built ranger 0.6.1  to replace the ranger 0.5 previously used on my hadoop cluster. The cluster runs Hadoop 2.7.2 and hive 2.1.0.

The first question is related to hdfs plugin aduit log. I set the following config in the install.properties file of hive plugin and hdfs plugin to enable audit to solr.

XAAUDIT.SOLR.ENABLE=true
XAAUDIT.SOLR.URL=http://10.104.90.40:6083/solr/ranger_audits
XAAUDIT.SOLR.USER=ranger_solr

Also, I  set the following in the install.properties of rangder admin.
audit_store=solr
audit_solr_urls=http://namenode01-bi-dev:6083/solr/ranger_audits
audit_solr_user=ranger_solr
audit_solr_password=
audit_solr_zookeepers=
audit_db_name=ranger_audit
audit_db_user=rangerlogger
audit_db_password=ranger

After starting all the service. The hdfs audit logs show in mysql database as in  ranger 0.5 instead of showing on ranger admin. The wield thing is that with the same setting, hive audit log can be seen on ranger admin webui.


The rest two problem relates to hive plug in.

After starting hive plug in ,the normal database wise or table wise access control can work with audit log shown on ranger admin web ui.

But When I tried the masking feature I get the empty field choosing data mask. Detail can be seen on the screen shot I attached.


Another problem I met is the row level filter doesn't take effect. As cam be seen in the attachment png file.

I set id = "100" in Row Level Filter but the policy never got enforced and everytime I edit the same policy again, the table field is empty instead of remembering the table name I set before. I don't know whether this lead to the policy not taking effect.

Anyone know the reason causing the problem  or have met the similar problem?

Thanks in advance for your consideration.

Best regards

Heyang Wang