You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by 黄健 <hu...@jd.com> on 2015/01/13 04:41:54 UTC

Questions about Ranger integrate with LDAP

Dear Sir:
      Now I try to integrate Ranger with LDAP, also I try to integrate Hue with LDAP.when I configure the three tools ,it worked.But I found som trouble with them.
1. When Hue integrates with LDAP,it use LDAP backend, so I can manage the user infomation with LDAP ,it have interface like this
[cid:_Foxmail.1@e8e19ddb-4515-f580-2bde-a54bae46269e]

I hope Ranger can refer to the hue system,
2. When I use synchronizate users and groups,some infomation like first name, last name ,email, can not synchronizate to Ranger. And Ranger will create groups for users,but the grous are not useful.
3. From all above I think we need the function which can delete users or groups,I hope Ranger have a friendly interface to us.

Thanks!
________________________________
Yours sincerely, Jian Huang
Beijing China

Re: Questions about Ranger integrate with LDAP

Posted by Gautam Borad <gb...@gmail.com>.
Hi Jian,
    Please find my answers inline in blue.

On Tue, Jan 13, 2015 at 9:11 AM, 黄健 <hu...@jd.com> wrote:

>
>   Dear Sir:
>       Now I try to integrate Ranger with LDAP, also I try to integrate
> Hue with LDAP.when I configure the three tools ,it worked.But I found som
> trouble with them.
> 1. When Hue integrates with LDAP,it use LDAP backend, so I can manage the
> user infomation with LDAP ,it have interface like this
>
>  I hope Ranger can refer to the hue system,
>
>
Currently we dont integrate with Hue users. Whatever users are set to be
synced from LDAP will be made available in Ranger Admin ( independent of
Hue configuration)

2. When I use synchronizate users and groups,some infomation like first
> name, last name ,email, can not synchronizate to Ranger. And Ranger will
> create groups for users,but the grous are not useful.
>
>
As of now Ranger will only sync username and groupnames, syncing other
information is in the pipeline.


> 3. From all above I think we need the function which can delete users or
> groups,I hope Ranger have a friendly interface to us.
>
>
Yes, there is already a Jira where we are discussing this functionality :
RANGER-205 <https://issues.apache.org/jira/browse/RANGER-205>


>  Thanks!
> ------------------------------
> Yours sincerely, Jian Huang
> Beijing China
>
>


-- 
Regards,
Gautam.

About group and policy

Posted by 黄健 <hu...@jd.com>.
Hi,Bosco
     Last time  you said that :
The groups should work. The best what to test it to do “hadoop groups $user”
and see what is returning. And use the same groups in the policy.

1. I found that ,only when I use the command "groupadd","useradd" to create user and group in the linux of hive client, the ranger's group worked,But I don't want to create user and group in the linux of each hive client. Can you tell me how to use “hadoop groups $user”

2. Some times we want to use two or more hiveserver2 client which have the same permissions, but I can't create the same policy in two HIVE Repositorys. I need One Policy control two HIVE Repositorys. or I can copy the policy from one repository to another.

3. Why ranger use role to control the permission of user , I think you know that "apache sentry" have the same purpose like ranger , it use role to control the users' permission. I need a good way to manage users' permission when I have thirty users or more

Thanks!
________________________________
Yours sincerely, Jian Huang
Beijing China

Re: About group and policy

Posted by Don Bosco Durai <bo...@apache.org>.
> But I don't want to create user and group in the linux of each hive
>client. Can you tell me how to use “hadoop groups $user”
Users and groups are interpreted by HDFS, Hive and all Hadoop components.
So you need to have user to group mappings either in linux or in LDAP/AD.
If I am not wrong, Hadoop also support groups from flat file. You can
investigate that option also.
Can you also let me know where your current user to groups are?


>2. Some times we want to use two or more hiveserver2 client which have
>the same permissions, but I can't create the same policy in two HIVE
>Repositorys. I need One Policy control two HIVE Repositorys. or I can
>copy the policy from one repository to another.

You have two options:
1. You can export the policy from RangerAdmin and import to another one.
2. If both the HiveServers will have identical policies, then you should
be able to point them to the same repo in the Ranger side. If you want the
Audit to be separated, then you should send the audits to different
databases. You still have to standup another RangerAdmin only the audits.
This is sort of a work around, but saves you effort of copying policies.


>3. Why ranger use role to control the permission of user , I think you
>know that "apache sentry" have the same purpose like ranger , it use role
>to control the users' permission. I need a good way to manage users'
>permission when I have thirty users or more
I think, it is not about roles, but how you are going to manage your users
for authentication and groups. Once you have 30+ users and have multiple
applications your enterprise, then you would like to have AD or LDAP to
manage them. Once you have AD/LDAP, then you create groups/role in AD/LDAP
and map them in Hadoop and use it to give permissions. This makes your
management very simple. Even if you don’t have central AD/LDAP, you can
still setup a standalone LDAP in your Hadoop and create groups in it. Let
me know if you need any help setting LDAP with memberOf. If you are using
AD, then groups are inbuilt and it can also serve as your KDC.

I hope this answers your question. Feel free to ask more if you need
clarification.

Thanks

Bosco




On 3/26/15, 2:45 AM, "黄健" <hu...@jd.com> wrote:

>Hi,Bosco
>     Last time  you said that :
>The groups should work. The best what to test it to do “hadoop groups
>$user”
>and see what is returning. And use the same groups in the policy.
>
>1. I found that ,only when I use the command "groupadd","useradd" to
>create user and group in the linux of hive client, the ranger's group
>worked,But I don't want to create user and group in the linux of each
>hive client. Can you tell me how to use “hadoop groups $user”
>
>2. Some times we want to use two or more hiveserver2 client which have
>the same permissions, but I can't create the same policy in two HIVE
>Repositorys. I need One Policy control two HIVE Repositorys. or I can
>copy the policy from one repository to another.
>
>3. Why ranger use role to control the permission of user , I think you
>know that "apache sentry" have the same purpose like ranger , it use role
>to control the users' permission. I need a good way to manage users'
>permission when I have thirty users or more
>
>Thanks!
>________________________________
>Yours sincerely, Jian Huang
>Beijing China



Re: About group and policy

Posted by Don Bosco Durai <bo...@apache.org>.
> But I don't want to create user and group in the linux of each hive
>client. Can you tell me how to use “hadoop groups $user”
Users and groups are interpreted by HDFS, Hive and all Hadoop components.
So you need to have user to group mappings either in linux or in LDAP/AD.
If I am not wrong, Hadoop also support groups from flat file. You can
investigate that option also.
Can you also let me know where your current user to groups are?


>2. Some times we want to use two or more hiveserver2 client which have
>the same permissions, but I can't create the same policy in two HIVE
>Repositorys. I need One Policy control two HIVE Repositorys. or I can
>copy the policy from one repository to another.

You have two options:
1. You can export the policy from RangerAdmin and import to another one.
2. If both the HiveServers will have identical policies, then you should
be able to point them to the same repo in the Ranger side. If you want the
Audit to be separated, then you should send the audits to different
databases. You still have to standup another RangerAdmin only the audits.
This is sort of a work around, but saves you effort of copying policies.


>3. Why ranger use role to control the permission of user , I think you
>know that "apache sentry" have the same purpose like ranger , it use role
>to control the users' permission. I need a good way to manage users'
>permission when I have thirty users or more
I think, it is not about roles, but how you are going to manage your users
for authentication and groups. Once you have 30+ users and have multiple
applications your enterprise, then you would like to have AD or LDAP to
manage them. Once you have AD/LDAP, then you create groups/role in AD/LDAP
and map them in Hadoop and use it to give permissions. This makes your
management very simple. Even if you don’t have central AD/LDAP, you can
still setup a standalone LDAP in your Hadoop and create groups in it. Let
me know if you need any help setting LDAP with memberOf. If you are using
AD, then groups are inbuilt and it can also serve as your KDC.

I hope this answers your question. Feel free to ask more if you need
clarification.

Thanks

Bosco




On 3/26/15, 2:45 AM, "黄健" <hu...@jd.com> wrote:

>Hi,Bosco
>     Last time  you said that :
>The groups should work. The best what to test it to do “hadoop groups
>$user”
>and see what is returning. And use the same groups in the policy.
>
>1. I found that ,only when I use the command "groupadd","useradd" to
>create user and group in the linux of hive client, the ranger's group
>worked,But I don't want to create user and group in the linux of each
>hive client. Can you tell me how to use “hadoop groups $user”
>
>2. Some times we want to use two or more hiveserver2 client which have
>the same permissions, but I can't create the same policy in two HIVE
>Repositorys. I need One Policy control two HIVE Repositorys. or I can
>copy the policy from one repository to another.
>
>3. Why ranger use role to control the permission of user , I think you
>know that "apache sentry" have the same purpose like ranger , it use role
>to control the users' permission. I need a good way to manage users'
>permission when I have thirty users or more
>
>Thanks!
>________________________________
>Yours sincerely, Jian Huang
>Beijing China



About group and policy

Posted by 黄健 <hu...@jd.com>.
Hi,Bosco
     Last time  you said that :
The groups should work. The best what to test it to do “hadoop groups $user”
and see what is returning. And use the same groups in the policy.

1. I found that ,only when I use the command "groupadd","useradd" to create user and group in the linux of hive client, the ranger's group worked,But I don't want to create user and group in the linux of each hive client. Can you tell me how to use “hadoop groups $user”

2. Some times we want to use two or more hiveserver2 client which have the same permissions, but I can't create the same policy in two HIVE Repositorys. I need One Policy control two HIVE Repositorys. or I can copy the policy from one repository to another.

3. Why ranger use role to control the permission of user , I think you know that "apache sentry" have the same purpose like ranger , it use role to control the users' permission. I need a good way to manage users' permission when I have thirty users or more

Thanks!
________________________________
Yours sincerely, Jian Huang
Beijing China

Re: Questions about Ranger integrate with LDAP

Posted by Don Bosco Durai <bo...@apache.org>.
Hi Jian

Is your LDAP configured to have “overlay”?

Also, can you point to the document you are referring to regarding Hue and
LDAP groups? Or explain little more about what you mean by that?

Thanks

Bosco


On 1/13/15, 12:20 AM, "黄健" <hu...@jd.com> wrote:

>Hi!
>    I have seen your reply in the mail list, now I  try to integrate
>Ranger with LDAP, the username can be synced, First Name and Last Name
>sync too,but it is the same as username.The groups did not work,can you
>issue a document,which show us how to configure Ranger with  LDAP
>synchronization.
>
>     I think you can add some button in the Ranger UI , just like hue
>User Admin, so we can control the  synchronization.
>
>     Why not support LDAP backend like hue, I think you can use the same
>way like Hue to  integrate
>with LDAP
>      Thanks!
>________________________________
>Yours sincerely, Jian Huang
>Beijing China
>
>
>-- 
>CONFIDENTIALITY NOTICE
>NOTICE: This message is intended for the use of the individual or entity
>to 
>which it is addressed and may contain information that is confidential,
>privileged and exempt from disclosure under applicable law. If the reader
>of this message is not the intended recipient, you are hereby notified
>that 
>any printing, copying, dissemination, distribution, disclosure or
>forwarding of this communication is strictly prohibited. If you have
>received this communication in error, please contact the sender
>immediately 
>and delete it from your system. Thank You.



Re: Questions about Ranger integrate with LDAP

Posted by Balaji Ganesan <bg...@hortonworks.com>.
Hi Jian, would you be interested in building this capability within Ranger?

> On Jan 14, 2015, at 7:56 PM, 黄健 <hu...@jd.com> wrote:
> 
> Hi!
>      The document for Hue integrate with LDAP which I found is the url blew
>      http://doc.mapr.com/display/MapR/Configuring+Hue+3.x+with+LDAP#ConfiguringHue3.xwithLDAP-LDAPauthentication
> 
> http://gethue.com/making-hadoop-accessible-to-your-employees-with-ldap/
> 
> The second url is the official for Hue configuration.If you want to see the procedure code , you can see the url from GitHub blow .I hope it is useful for you to improve Ranger integrate with LDAP
> https://github.com/cloudera/hue
> 
> Thanks !
> ________________________________
> Yours sincerely, Jian Huang
> Beijing China
> 
> 发件人: 黄健<ma...@jd.com>
> 发送时间: 2015-01-13 16:20
> 收件人: dev<ma...@ranger.incubator.apache.org>
> 主题: Re: Questions about Ranger integrate with LDAP
> Hi!
>    I have seen your reply in the mail list, now I  try to integrate Ranger with LDAP, the username can be synced, First Name and Last Name sync too,but it is the same as username.The groups did not work,can you issue a document,which show us how to configure Ranger with  LDAP  synchronization.
> 
>     I think you can add some button in the Ranger UI , just like hue User Admin, so we can control the  synchronization.
> 
>     Why not support LDAP backend like hue, I think you can use the same way like Hue to  integrate
> with LDAP
>      Thanks!
> ________________________________
> Yours sincerely, Jian Huang
> Beijing China
> 
> 
> -- 
> CONFIDENTIALITY NOTICE
> NOTICE: This message is intended for the use of the individual or entity to 
> which it is addressed and may contain information that is confidential, 
> privileged and exempt from disclosure under applicable law. If the reader 
> of this message is not the intended recipient, you are hereby notified that 
> any printing, copying, dissemination, distribution, disclosure or 
> forwarding of this communication is strictly prohibited. If you have 
> received this communication in error, please contact the sender immediately 
> and delete it from your system. Thank You.


Re: Re: Questions about Ranger integrate with LDAP

Posted by 黄健 <hu...@jd.com>.
Hi!
      The document for Hue integrate with LDAP which I found is the url blew
      http://doc.mapr.com/display/MapR/Configuring+Hue+3.x+with+LDAP#ConfiguringHue3.xwithLDAP-LDAPauthentication

http://gethue.com/making-hadoop-accessible-to-your-employees-with-ldap/

The second url is the official for Hue configuration.If you want to see the procedure code , you can see the url from GitHub blow .I hope it is useful for you to improve Ranger integrate with LDAP
https://github.com/cloudera/hue

Thanks !
________________________________
Yours sincerely, Jian Huang
Beijing China

发件人: 黄健<ma...@jd.com>
发送时间: 2015-01-13 16:20
收件人: dev<ma...@ranger.incubator.apache.org>
主题: Re: Questions about Ranger integrate with LDAP
Hi!
    I have seen your reply in the mail list, now I  try to integrate Ranger with LDAP, the username can be synced, First Name and Last Name sync too,but it is the same as username.The groups did not work,can you issue a document,which show us how to configure Ranger with  LDAP  synchronization.

     I think you can add some button in the Ranger UI , just like hue User Admin, so we can control the  synchronization.

     Why not support LDAP backend like hue, I think you can use the same way like Hue to  integrate
with LDAP
      Thanks!
________________________________
Yours sincerely, Jian Huang
Beijing China


Re: Questions about Ranger integrate with LDAP

Posted by 黄健 <hu...@jd.com>.
Hi!
    I have seen your reply in the mail list, now I  try to integrate Ranger with LDAP, the username can be synced, First Name and Last Name sync too,but it is the same as username.The groups did not work,can you issue a document,which show us how to configure Ranger with  LDAP  synchronization.

     I think you can add some button in the Ranger UI , just like hue User Admin, so we can control the  synchronization.

     Why not support LDAP backend like hue, I think you can use the same way like Hue to  integrate
with LDAP
      Thanks!
________________________________
Yours sincerely, Jian Huang
Beijing China


Re: ranger hive plugin UDF support

Posted by Don Bosco Durai <bo...@apache.org>.
Jian, this shouldn’t be the case. Can you create a bug for this?

Thanks

Bosco


On 3/10/15, 10:56 PM, "黄健" <hu...@jd.com> wrote:

>
>Dear Sir:
>      When I use the  policies for hive plugin,I found that the default
>policies of UDF is not effect, so I try to use the UDF name ,it worked. I
>think that use the symbol "*" in UDF name is not effect. Is that a bug or
>my configuration ?
>Thanks!
>________________________________
>Yours sincerely, Jian Huang
>Beijing China



ranger hive plugin UDF support

Posted by 黄健 <hu...@jd.com>.
Dear Sir:
      When I use the  policies for hive plugin,I found that the default policies of UDF is not effect, so I try to use the UDF name ,it worked. I think that use the symbol "*" in UDF name is not effect. Is that a bug or my configuration ?
Thanks!
________________________________
Yours sincerely, Jian Huang
Beijing China