<?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 Re: Restarting Knox gateway during upgrade to HDP 2.6.1.0 fails in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restarting-Knox-gateway-during-upgrade-to-HDP-2-6-1-0-fails/m-p/214727#M63542</link>
    <description>&lt;P&gt;I'm not sure how an old version of knox.py would have gotten there. Anyway I reverted snapshots back to before I did the upgrade and everything worked fine now. Something must have just gotten really messed up.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2017 23:10:27 GMT</pubDate>
    <dc:creator>anorton</dc:creator>
    <dc:date>2017-06-23T23:10:27Z</dc:date>
    <item>
      <title>Restarting Knox gateway during upgrade to HDP 2.6.1.0 fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restarting-Knox-gateway-during-upgrade-to-HDP-2-6-1-0-fails/m-p/214725#M63540</link>
      <description>&lt;P&gt;I am attempting to Express Upgrade from HDP 2.6.0.3 to HDP 2.6.1.0 and it fails when it gets to the "Restarting Knox Gateway on ..." step. The message in stderr is this:&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/knox_gateway.py", line 217, in &amp;lt;module&amp;gt;
    KnoxGateway().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 329, in execute
    method(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 850, in restart
    self.start(env, upgrade_type=upgrade_type)
  File "/var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/knox_gateway.py", line 135, in start
    self.configure(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 119, in locking_configure
    original_configure(obj, *args, **kw)
  File "/var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/knox_gateway.py", line 67, in configure
    knox()
  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/KNOX/0.5.0.2.2/package/scripts/knox.py", line 100, in knox
    recursive_ownership = True,
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 114, in __new__
    cls(names_list.pop(0), env, provider, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 147, in __init__
    raise Fail("%s received unsupported argument %s" % (self, key))
resource_management.core.exceptions.Fail: Directory['/usr/hdp/current/knox-server/data/'] received unsupported argument recursive&lt;/PRE&gt;&lt;P&gt;stdout doesn't look like it contains anything useful.&lt;/P&gt;&lt;P&gt;gateway.log shows nothing because it isn't getting to the point where it tries to start it.&lt;/P&gt;&lt;P&gt;If I manually start knox it seems to start fine.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 04:49:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restarting-Knox-gateway-during-upgrade-to-HDP-2-6-1-0-fails/m-p/214725#M63540</guid>
      <dc:creator>anorton</dc:creator>
      <dc:date>2017-06-23T04:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Restarting Knox gateway during upgrade to HDP 2.6.1.0 fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restarting-Knox-gateway-during-upgrade-to-HDP-2-6-1-0-fails/m-p/214726#M63541</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20204/anorton.html" nodeid="20204"&gt;@Aaron Norton&lt;/A&gt; - Looks like the knox.py script on your cluster is still referring to an older parameter named 'recursive'&lt;/P&gt;&lt;P&gt;There was a fix done as part of &lt;A href="https://issues.apache.org/jira/browse/AMBARI-14396"&gt;AMBARI-14396&lt;/A&gt; where the parameter was modified from 'recursive' to 'create_parents'&lt;/P&gt;&lt;P&gt;Can you try the following?&lt;/P&gt;&lt;P&gt;On your knox gateway host open this file: /var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/knox.py&lt;/P&gt;&lt;P&gt;Change to the following under line having text: os.path.join(params.knox_conf_dir, "topologies")],&lt;/P&gt;&lt;PRE&gt;owner = params.knox_user,
group = params.knox_group,
create_parents = True,
cd_access = "a",
mode = 0755,
recursive_ownership = True,&lt;/PRE&gt;&lt;P&gt;Ensure that the indentation is retained&lt;/P&gt;&lt;P&gt;See sample entry &lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/knox.py#L96-L102"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks, Vivek&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:30:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restarting-Knox-gateway-during-upgrade-to-HDP-2-6-1-0-fails/m-p/214726#M63541</guid>
      <dc:creator>vsharma</dc:creator>
      <dc:date>2017-06-23T14:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Restarting Knox gateway during upgrade to HDP 2.6.1.0 fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restarting-Knox-gateway-during-upgrade-to-HDP-2-6-1-0-fails/m-p/214727#M63542</link>
      <description>&lt;P&gt;I'm not sure how an old version of knox.py would have gotten there. Anyway I reverted snapshots back to before I did the upgrade and everything worked fine now. Something must have just gotten really messed up.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 23:10:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restarting-Knox-gateway-during-upgrade-to-HDP-2-6-1-0-fails/m-p/214727#M63542</guid>
      <dc:creator>anorton</dc:creator>
      <dc:date>2017-06-23T23:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Restarting Knox gateway during upgrade to HDP 2.6.1.0 fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restarting-Knox-gateway-during-upgrade-to-HDP-2-6-1-0-fails/m-p/214728#M63543</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20204/anorton.html" nodeid="20204"&gt;@Aaron Norton&lt;/A&gt; - Please accept the answer if you think it was relevant to your question&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 01:32:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restarting-Knox-gateway-during-upgrade-to-HDP-2-6-1-0-fails/m-p/214728#M63543</guid>
      <dc:creator>vsharma</dc:creator>
      <dc:date>2017-06-27T01:32:18Z</dc:date>
    </item>
  </channel>
</rss>

