Member since
06-05-2016
6
Posts
0
Kudos Received
2
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
4074 | 07-03-2016 11:22 PM | |
2699 | 06-21-2016 01:37 AM |
07-03-2016
11:22 PM
Find the cause of problem. I have to explicitly add the hadoop group in AD and make the mapred user as the member of that group. After that I am able to see the logs. As given over below URL: http://stackoverflow.com/questions/38114866/historyserver-not-able-to-read-log-after-enabling-kerberos
... View more
06-27-2016
12:13 AM
hi, i enable the kerberos on the cluster and it is working fine. But due to some issue mapred user is not albe to read and display log over jobhistory server. I check the logs of job history server and it giving access error as: org.apache.hadoop.security.AccessControlException: Permission denied: user=mapred, access=READ_EXECUTE, inode="/user/history/done_intermediate/prakul":prakul:hadoop:drwxrwx--- as we can see the directory have access to hadoop group and mapred is in hadoop group, even then it is not able to read the logs. Similar error it is giving for /tmp/logs/<USER> folder due to which no log was displayed on resource manager UI. I verify over all machine that hadoop group contains mapred user on all machine: cloudera]# id mapred uid=491(mapred) gid=489(mapred) groups=489(mapred),496(hadoop) I also kinit the mapred user and try to access manually to these directory, but mapred not able to access even when folder having 770 permission: [root@mn0 cloudera]# hdfs dfs -ls /tmp/logs/prakul ls: Permission denied: user=mapred, access=READ_EXECUTE, inode="/tmp/logs/prakul":prakul:hadoop:drwxrwx--- [root@mn0 cloudera]# hdfs dfs -ls /tmp/logs/ Found 8 items drwxrwx--- - xyz hadoop 0 2016-06-14 19:19 /tmp/logs/xyz drwxrwx--- - abc hadoop 0 2016-06-13 06:06 /tmp/logs/abc drwxrwx--- - prakul hadoop 0 2016-06-10 04:47 /tmp/logs/prakul [root@mn0 cloudera]# klist Ticket cache: FILE:/tmp/krb5cc_0 Default principal: mapred/mn0.eastus.cloudapp.azure.com@AD.COM Valid starting Expires Service principal 06/27/16 01:07:32 06/27/16 11:07:32 krbtgt/AD.COM@AD.COM renew until 07/04/16 01:07:32 If i give 777 permission to the directory then mapred is able to read and show log over UI as well as CLI. Can any one know whether it is some cloudera bug or there is some configuration issue due to which mapred not able to access the log even having full permission at group level? I am using cloudera 5.7 with kerberos enable. thanks in advance Prakul singhal
... View more
Labels:
- Labels:
-
Apache Hadoop
-
HDFS
-
Kerberos
-
Security
06-21-2016
01:37 AM
thanks ngurjar for quick help. I also found a good document for integrating AD with navigator the URL of doc is http://blog.samoylenko.me/2015/02/01/configuring-cloudera-navigator-external-authentication/ After following this doc i am able to run navigator properly
... View more
06-21-2016
12:18 AM
hi, I integrate the AD with navigator using http://www.cloudera.com/documentation/enterprise/5-6-x/topics/cn_sg_external_auth.html And now i am able to login the navigator from AD user. My problem is that the user which have administrator writes are not able to search allgroups inside role management tab. On seraching any group it give error: Fetching group(s) has failed. Refresh your browser. If the problem persists, contact your administrator. Can anyone help me for solving the issue. thanks in advance prakul singhal
... View more