[ https://issues.apache.org/jira/browse/AMBARI-17997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jayush Luniya resolved AMBARI-17997. ------------------------------------ Resolution: Invalid > When i enable kerberos,MapReduce2 and Yarn both faied to start. > --------------------------------------------------------------- > > Key: AMBARI-17997 > URL: https://issues.apache.org/jira/browse/AMBARI-17997 > Project: Ambari > Issue Type: Bug > Components: security > Affects Versions: 2.2.2 > Environment: Centos6.7 > Reporter: niushuo > > No kerberos,the cluster was OK!But,When I enable kerberos,MapReduce2 and Yarn > both faied to start.The log like this,how can I do to fix the problem? > Traceback (most recent call last): > File > "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/historyserver.py", > line 182, in <module> > HistoryServer().execute() > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", > line 219, in execute > method(env) > File > "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/historyserver.py", > line 92, in start > self.configure(env) # FOR SECURITY > File > "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/historyserver.py", > line 55, in configure > yarn(name="historyserver") > File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", > line 89, in thunk > return fn(*args, **kwargs) > File > "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py", > line 71, in yarn > recursive_chmod=True > File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", > line 154, in __init__ > self.env.run() > File > "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", > line 160, in run > self.run_action(resource, action) > File > "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", > line 124, in run_action > provider_action() > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", > line 463, in action_create_on_execute > self.action_delayed("create") > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", > line 460, in action_delayed > self.get_hdfs_resource_executor().action_delayed(action_name, self) > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", > line 250, in action_delayed > self._assert_valid() > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", > line 234, in _assert_valid > self.target_status = self._get_file_status(target) > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", > line 295, in _get_file_status > list_status = self.util.run_command(target, 'GETFILESTATUS', > method='GET', ignore_status_codes=['404'], assertable_result=False) > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", > line 195, in run_command > raise Fail(err_msg) > resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w > '%{http_code}' -X GET --negotiate -u : > 'http://bigdata-32.bigdata:50070/webhdfs/v1/app-logs?op=GETFILESTATUS&user.name=hdfs'' > returned status_code=401. > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> > <title>Error 401 Authentication required</title> > </head> > <body><h2>HTTP ERROR 401</h2> > <p>Problem accessing /webhdfs/v1/app-logs. Reason: > <pre> Authentication required</pre></p><hr /><i><small>Powered by > Jetty://</small></i><br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > </body> > </html> -- This message was sent by Atlassian JIRA (v6.3.4#6332)