Created 09-05-2016 12:27 PM
Hi ,
We are verifying our product usecases over Ranger enabled HDP enviroment .
Our product launched from User A (LDAP user) . User A dont have access on any DB and Tables .
We have another User B (LDAP) . User B have access on marketingDb.saletable
When we logged in our product and use marketingDb.saletable and submit job so Job is getting success and Jobtracker is showing User A as user .
Question :- If job is launching from User A and User A dont have access on any HCatalog table so how job got successfully completed ?
To further debug this issue , we launched PIG job while User A keytab was in session so PIG job also successfully completed.
Could you please answer of these questions ... Is this happening due to any wrong configuration ..
Please guide us
Created 09-05-2016 04:53 PM
The Ranger Hive plugin protects Hive data when it is accessed via HiveServer2. When you access these tables using HCatalog in Pig you are not going through HiveServer2, but instead Pig is using the files directly from HDFS (HCatalog is just used to map the table metadata to the HDFS files in this case).
In order to protect this data, you should also define a Ranger HDFS policy to protect the underlying HDFS directory that is used to store the marketingDb.saletable data.
To clarify:
Created 09-05-2016 04:53 PM
The Ranger Hive plugin protects Hive data when it is accessed via HiveServer2. When you access these tables using HCatalog in Pig you are not going through HiveServer2, but instead Pig is using the files directly from HDFS (HCatalog is just used to map the table metadata to the HDFS files in this case).
In order to protect this data, you should also define a Ranger HDFS policy to protect the underlying HDFS directory that is used to store the marketingDb.saletable data.
To clarify:
Created 09-06-2016 07:37 AM
Thank you very much for detailed answer .My doubt have been cleared now
Created 09-06-2016 04:30 PM
If @Laurence Da Luz answered your question, please accept the answer to help others in the community.
Created 09-06-2016 04:43 PM
Yes i should do it..:)
Done it now..Thanks..