<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Install and Test Kerberos client failed on Ambari due to indentation error at ../stacks/HDP/2.6/services/stack_advisor.py,  line 69 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240937#M85656</link>
    <description>&lt;P&gt;HDP 2.6.4.0 on RHEL 7&lt;/P&gt;&lt;P&gt;While enabling Kerberos the client install failed with the below error:&lt;/P&gt;&lt;P&gt;Error occured in stack advisor.
Error details: unindent does not match any outer indentation level (stack_advisor.py, line 69)
21 Dec 2018 17:14:53,092  INFO [Server Action Executor Worker 3279] StackAdvisorRunner:71 -     advisor script stderr: Traceback (most recent call last):
  File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 173, in &amp;lt;module&amp;gt;
    main(sys.argv)
  File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 103, in main
    stackAdvisor = instantiateStackAdvisor(stackName, stackVersion, parentVersions)
  File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 154, in instantiateStackAdvisor
    stack_advisor = imp.load_module('stack_advisor_impl', fp, path, ('.py', 'rb', imp.PY_SOURCE))
  File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.6/services/stack_advisor.py", line 69
    if streamline_env:
                     ^
IndentationError: unindent does not match any outer indentation level
21 Dec 2018 17:14:53,092  WARN [Server Action Executor Worker 3279] ServerActionExecutor:459 - Task #3279 failed to complete execution due to thrown exception: org.apache.ambari.server.AmbariException:Stack Advisor reported an error: IndentationError: unindent does not match any outer indentation level&lt;/P&gt;&lt;P&gt;Any help to resolve this issue is highly appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 14:00:21 GMT</pubDate>
    <dc:creator>rajeswaran_govi</dc:creator>
    <dc:date>2022-09-16T14:00:21Z</dc:date>
    <item>
      <title>Install and Test Kerberos client failed on Ambari due to indentation error at ../stacks/HDP/2.6/services/stack_advisor.py,  line 69</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240937#M85656</link>
      <description>&lt;P&gt;HDP 2.6.4.0 on RHEL 7&lt;/P&gt;&lt;P&gt;While enabling Kerberos the client install failed with the below error:&lt;/P&gt;&lt;P&gt;Error occured in stack advisor.
Error details: unindent does not match any outer indentation level (stack_advisor.py, line 69)
21 Dec 2018 17:14:53,092  INFO [Server Action Executor Worker 3279] StackAdvisorRunner:71 -     advisor script stderr: Traceback (most recent call last):
  File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 173, in &amp;lt;module&amp;gt;
    main(sys.argv)
  File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 103, in main
    stackAdvisor = instantiateStackAdvisor(stackName, stackVersion, parentVersions)
  File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 154, in instantiateStackAdvisor
    stack_advisor = imp.load_module('stack_advisor_impl', fp, path, ('.py', 'rb', imp.PY_SOURCE))
  File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.6/services/stack_advisor.py", line 69
    if streamline_env:
                     ^
IndentationError: unindent does not match any outer indentation level
21 Dec 2018 17:14:53,092  WARN [Server Action Executor Worker 3279] ServerActionExecutor:459 - Task #3279 failed to complete execution due to thrown exception: org.apache.ambari.server.AmbariException:Stack Advisor reported an error: IndentationError: unindent does not match any outer indentation level&lt;/P&gt;&lt;P&gt;Any help to resolve this issue is highly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:00:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240937#M85656</guid>
      <dc:creator>rajeswaran_govi</dc:creator>
      <dc:date>2022-09-16T14:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Install and Test Kerberos client failed on Ambari due to indentation error at ../stacks/HDP/2.6/services/stack_advisor.py,  line 69</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240938#M85657</link>
      <description>&lt;P&gt;Hi Rajeswaran,&lt;/P&gt;&lt;P&gt;I guess you are just using Ambari? Or have you implemented some own Python code anywhere? Can you perhaps post what some details on what action you are trying to execute?&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Harald&lt;/P&gt;</description>
      <pubDate>Sat, 22 Dec 2018 16:03:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240938#M85657</guid>
      <dc:creator>arald</dc:creator>
      <dc:date>2018-12-22T16:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Install and Test Kerberos client failed on Ambari due to indentation error at ../stacks/HDP/2.6/services/stack_advisor.py,  line 69</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240939#M85658</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/9594/rajeswarangovindan.html" nodeid="9594"&gt;@Rajeswaran Govindan&lt;/A&gt; ,&lt;/P&gt;&lt;PRE&gt;File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.6/services/stack_advisor.py", line 69 if streamline_env: ^ IndentationError: unindent does not match any outer indentation level&lt;/PRE&gt;&lt;P&gt;From the error it looks like someone has edited this python file and the python indentation was not kept correctly as it should be.&lt;/P&gt;&lt;P&gt;can you do a ls -lh on the folder /var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.6/services/ and see the timestamp difference.&lt;/P&gt;&lt;P&gt;If my assumption is correct you are using ambari-2.6.2 and below is the apache ambari code of stack_advisor.py for this version . please compare it with yours and correct the mistake.&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://github.com/apache/ambari/blob/release-2.6.2/ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py#L69" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.6.2/ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py#L69&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Please accept this answer if its helpful&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 14:26:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240939#M85658</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-12-24T14:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Install and Test Kerberos client failed on Ambari due to indentation error at ../stacks/HDP/2.6/services/stack_advisor.py,  line 69</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240940#M85659</link>
      <description>&lt;P&gt;Thank you Akil and Harald Berghoff,&lt;/P&gt;&lt;P&gt;I could resolve the indentation issues on stack_advisor.py and get past that error.  No I face a permission issue at the "kerberise cluster" stage in Ambari.  The error is:     &lt;/P&gt;&lt;P&gt;Task #4945 failed to complete execution due to thrown exception: org.apache.ambari.server.AmbariException:chown: changing ownership of ‘/etc/security/keytabs/spnego.service.keytab’: Operation not permitted&lt;/P&gt;&lt;P&gt;Ambar is running as a non-root user and the owner of spnego.service.keytab is a ambari user and not a root user.  Not sure o what user it is trying to change and what permission is required.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 09:47:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240940#M85659</guid>
      <dc:creator>rajeswaran_govi</dc:creator>
      <dc:date>2018-12-25T09:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Install and Test Kerberos client failed on Ambari due to indentation error at ../stacks/HDP/2.6/services/stack_advisor.py,  line 69</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240941#M85660</link>
      <description>&lt;P&gt;The keytab file,  /etc/security/keytabs/spnego.service.keytab is created and is owned by non-root user.  The .csv file shows it  has to be owned by root:hadoop and the non-root user is not able to do chown due to OS restrictions.  How to get around this limitation ?&lt;/P&gt;&lt;P&gt;Can the Ambari-server be changed to run as root user from non-root user at this point?  If so, what are the steps?  Any suggestion is welcome.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 22:24:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240941#M85660</guid>
      <dc:creator>rajeswaran_govi</dc:creator>
      <dc:date>2018-12-25T22:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Install and Test Kerberos client failed on Ambari due to indentation error at ../stacks/HDP/2.6/services/stack_advisor.py,  line 69</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240942#M85661</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/users/9594/rajeswarangovindan.html"&gt;@Rajeswaran Govindan&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Can you please login and accept the best answer to resolve this thread.&lt;/P&gt;&lt;P&gt;and Create a new thread for this new issue you are facing.&lt;/P&gt;&lt;P&gt;Accepting the best answer helps other community users to figure out the answer correctly.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 00:24:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-and-Test-Kerberos-client-failed-on-Ambari-due-to/m-p/240942#M85661</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-12-26T00:24:11Z</dc:date>
    </item>
  </channel>
</rss>

