<?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: Knox Gateway Start fail in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100573#M63590</link>
    <description>&lt;P&gt;Any chance you can capture/provide the gateway.log file content from the period of time during which this occurred?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2016 06:03:50 GMT</pubDate>
    <dc:creator>kevin_minder</dc:creator>
    <dc:date>2016-01-13T06:03:50Z</dc:date>
    <item>
      <title>Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100566#M63583</link>
      <description>&lt;P&gt;I re-start a one node cluster with Ambari. All service start sucessfully except Knox Gateway.&lt;/P&gt;&lt;P&gt;Oracle Linux 7&lt;/P&gt;&lt;P&gt;Apache Ambari
 Version  2.1.1       &lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;PRE&gt;stderr: 
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 267, in &amp;lt;module&amp;gt;
  KnoxGateway().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
  method(env)
  File "/var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/knox_gateway.py", line 146, in start
  self.configure(env)
  File "/var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/knox_gateway.py", line 63, 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 125, in knox
  not_if=master_secret_exist,
  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 152, in run
  self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
  provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 258, in action_run
  tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
  result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
  tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
  result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
  raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of '/usr/hdp/current/knox-server/bin/knoxcli.sh create-master --master [PROTECTED]' returned 1. Master secret is already present on disk. Please be aware that overwriting it will require updating other security artifacts.  Use --force to overwrite the existing master secret.
ERROR: Invalid Command
Unrecognized option:create-master
A fatal exception has occurred. Program will exit.
 stdout:
2015-12-22 18:46:33,793 - Directory['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts/'] {'recursive': True}
2015-12-22 18:46:33,800 - File['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts//jce_policy-8.zip'] {'content': DownloadSource('http://BODTEST02.bod.com.ve:8080/resources//jce_policy-8.zip')}
2015-12-22 18:46:33,801 - Not downloading the file from &amp;lt;a href="http://BODTEST02.bod.com.ve:8080/resources//jce_policy-8.zip"&amp;gt;http://BODTEST02.bod.com.ve:8080/resources//jce_policy-8.zip&amp;lt;/a&amp;gt;, because /var/lib/ambari-agent/data/tmp/jce_policy-8.zip already exists
2015-12-22 18:46:33,801 - Group['spark'] {'ignore_failures': False}
2015-12-22 18:46:33,801 - Group['hadoop'] {'ignore_failures': False}
2015-12-22 18:46:33,802 - Group['users'] {'ignore_failures': False}
2015-12-22 18:46:33,802 - Group['knox'] {'ignore_failures': False}
2015-12-22 18:46:33,802 - User['hive'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,803 - User['storm'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,803 - User['zookeeper'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,804 - User['oozie'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'users']}
2015-12-22 18:46:33,810 - User['atlas'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,810 - User['ams'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,811 - User['falcon'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'users']}
2015-12-22 18:46:33,811 - User['tez'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'users']}
2015-12-22 18:46:33,812 - User['accumulo'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,812 - User['mahout'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,813 - User['spark'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,813 - User['ambari-qa'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'users']}
2015-12-22 18:46:33,814 - User['flume'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,820 - User['kafka'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,821 - User['hdfs'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,821 - User['sqoop'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,822 - User['yarn'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,822 - User['mapred'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,823 - User['hbase'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,823 - User['knox'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,824 - User['hcat'] {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-12-22 18:46:33,830 - File['/var/lib/ambari-agent/data/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2015-12-22 18:46:33,831 - Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2015-12-22 18:46:33,901 - Skipping Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa'] due to not_if
2015-12-22 18:46:33,901 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'recursive': True, 'mode': 0775, 'cd_access': 'a'}
2015-12-22 18:46:33,902 - File['/var/lib/ambari-agent/data/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2015-12-22 18:46:33,903 - Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2015-12-22 18:46:33,913 - Skipping Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] due to not_if
2015-12-22 18:46:33,913 - Group['hdfs'] {'ignore_failures': False}
2015-12-22 18:46:33,913 - User['hdfs'] {'ignore_failures': False, 'groups': [u'hadoop', u'hdfs']}
2015-12-22 18:46:33,914 - Directory['/etc/hadoop'] {'mode': 0755}
2015-12-22 18:46:33,939 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2015-12-22 18:46:33,969 - Execute[('setenforce', '0')] {'not_if': '(! which getenforce ) || (which getenforce &amp;amp;&amp;amp; getenforce | grep -q Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'}
2015-12-22 18:46:34,011 - Skipping Execute[('setenforce', '0')] due to not_if
2015-12-22 18:46:34,011 - Directory['/var/log/hadoop'] {'owner': 'root', 'mode': 0775, 'group': 'hadoop', 'recursive': True, 'cd_access': 'a'}
2015-12-22 18:46:34,013 - Directory['/var/run/hadoop'] {'owner': 'root', 'group': 'root', 'recursive': True, 'cd_access': 'a'}
2015-12-22 18:46:34,013 - Directory['/tmp/hadoop-hdfs'] {'owner': 'hdfs', 'recursive': True, 'cd_access': 'a'}
2015-12-22 18:46:34,017 - File['/usr/hdp/current/hadoop-client/conf/commons-logging.properties'] {'content': Template('commons-logging.properties.j2'), 'owner': 'hdfs'}
2015-12-22 18:46:34,026 - File['/usr/hdp/current/hadoop-client/conf/health_check'] {'content': Template('health_check.j2'), 'owner': 'hdfs'}
2015-12-22 18:46:34,026 - File['/usr/hdp/current/hadoop-client/conf/log4j.properties'] {'content': ..., 'owner': 'hdfs', 'group': 'hadoop', 'mode': 0644}
2015-12-22 18:46:34,045 - File['/usr/hdp/current/hadoop-client/conf/hadoop-metrics2.properties'] {'content': Template('hadoop-metrics2.properties.j2'), 'owner': 'hdfs'}
2015-12-22 18:46:34,045 - File['/usr/hdp/current/hadoop-client/conf/task-log4j.properties'] {'content': StaticFile('task-log4j.properties'), 'mode': 0755}
2015-12-22 18:46:34,046 - File['/usr/hdp/current/hadoop-client/conf/configuration.xsl'] {'owner': 'hdfs', 'group': 'hadoop'}
2015-12-22 18:46:34,056 - File['/etc/hadoop/conf/topology_mappings.data'] {'owner': 'hdfs', 'content': Template('topology_mappings.data.j2'), 'only_if': 'test -d /etc/hadoop/conf', 'group': 'hadoop'}
2015-12-22 18:46:34,075 - File['/etc/hadoop/conf/topology_script.py'] {'content': StaticFile('topology_script.py'), 'only_if': 'test -d /etc/hadoop/conf', 'mode': 0755}
2015-12-22 18:46:34,459 - Directory['/var/lib/knox/data'] {'owner': 'knox', 'group': 'knox', 'recursive': True}
2015-12-22 18:46:34,470 - Directory['/var/log/knox'] {'owner': 'knox', 'group': 'knox', 'recursive': True}
2015-12-22 18:46:34,470 - Directory['/var/run/knox'] {'owner': 'knox', 'group': 'knox', 'recursive': True}
2015-12-22 18:46:34,480 - Directory['/usr/hdp/current/knox-server/conf'] {'owner': 'knox', 'group': 'knox', 'recursive': True}
2015-12-22 18:46:34,488 - Directory['/usr/hdp/current/knox-server/conf/topologies'] {'owner': 'knox', 'group': 'knox', 'recursive': True}
2015-12-22 18:46:34,488 - XmlConfig['gateway-site.xml'] {'owner': 'knox', 'group': 'knox', 'conf_dir': '/usr/hdp/current/knox-server/conf', 'configuration_attributes': {}, 'configurations': ...}
2015-12-22 18:46:34,538 - Generating config: /usr/hdp/current/knox-server/conf/gateway-site.xml
2015-12-22 18:46:34,538 - File['/usr/hdp/current/knox-server/conf/gateway-site.xml'] {'owner': 'knox', 'content': InlineTemplate(...), 'group': 'knox', 'mode': None, 'encoding': 'UTF-8'}
2015-12-22 18:46:34,556 - Writing File['/usr/hdp/current/knox-server/conf/gateway-site.xml'] because contents don't match
2015-12-22 18:46:34,557 - File['/usr/hdp/current/knox-server/conf/gateway-log4j.properties'] {'content': ..., 'owner': 'knox', 'group': 'knox', 'mode': 0644}
2015-12-22 18:46:34,568 - File['/usr/hdp/current/knox-server/conf/topologies/default.xml'] {'content': InlineTemplate(...), 'owner': 'knox', 'group': 'knox'}
2015-12-22 18:46:34,568 - Execute[('chown', '-R', u'knox:knox', '/var/lib/knox/data', '/var/log/knox', u'/var/run/knox', '/usr/hdp/current/knox-server/conf', '/usr/hdp/current/knox-server/conf/topologies')] {'sudo': True}
2015-12-22 18:46:34,582 - Execute['/usr/hdp/current/knox-server/bin/knoxcli.sh create-master --master [PROTECTED]'] {'environment': {'JAVA_HOME': u'/usr/jdk64/jdk1.8.0_40'}, 'not_if': "ambari-sudo.sh su knox -l -s /bin/bash -c 'test -f /var/lib/knox/data/security/master'", 'user': 'knox'}&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Dec 2015 08:23:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100566#M63583</guid>
      <dc:creator>jose_agc</dc:creator>
      <dc:date>2015-12-23T08:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100567#M63584</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1331/jose-agc.html" nodeid="1331"&gt;@JOSE GUILLEN&lt;/A&gt;&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/190/kevinminder.html" nodeid="190"&gt;@Kevin Minder&lt;/A&gt;&lt;/P&gt;create-master --master [PROTECTED]' returned 1.Master secret is already present on disk.Please be aware that overwriting it will require updating other security artifacts.Use--force to overwrite the existing master secret.&lt;P&gt;ERROR:InvalidCommand&lt;/P&gt;&lt;P&gt;Unrecognized option:create-master&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 10:00:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100567#M63584</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-23T10:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100568#M63585</link>
      <description>&lt;P&gt;Thanks
Neeraj Sabharwal, but I don´t understand what you proposed. When I
installed the cluster, everything was OK, including Knox. I stop all the
services through Ambari, I restarted the server node, and start up all
services, everything OK, except Knox.&lt;/P&gt;&lt;P&gt;@Kevin Minder&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 22:19:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100568#M63585</guid>
      <dc:creator>jose_agc</dc:creator>
      <dc:date>2015-12-23T22:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100569#M63586</link>
      <description>&lt;P&gt;Unfortunately HDP 2.2 was not certified with jdk1.8 and Knox 0.5.0.2.2 in particular has an issue with a keystore API change in jdk 1.8 that prevents it from starting.  The only solution is to either upgrade HDP or downgrade the jdk.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 22:59:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100569#M63586</guid>
      <dc:creator>kevin_minder</dc:creator>
      <dc:date>2015-12-23T22:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100570#M63587</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1331/jose-agc.html" nodeid="1331"&gt;@JOSE GUILLEN&lt;/A&gt; Java was upgraded? See Kevin's comment&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 23:05:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100570#M63587</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-23T23:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100571#M63588</link>
      <description>&lt;P&gt;Thanks @Kevin Minder, but I didn't install HDP 2.2, I have installed HDP-2.3.2.0-2950 the latest versión available as I know. So if the problema persist in this version (2.3), according to you the only solution is downgrade the JDK.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 04:05:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100571#M63588</guid>
      <dc:creator>jose_agc</dc:creator>
      <dc:date>2015-12-24T04:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100572#M63589</link>
      <description>&lt;P&gt;I have the same problem or it at least sounds the same.&lt;/P&gt;&lt;P&gt;Had a HDP 2.3 cluster up and running with everything working fine. Then installed Ranger and Ranger KMS (via Actions-&amp;gt;Add Service in Ambari 2.3 - so also standard Ranger and Ranger KMS version).

Since then Knox is not coming up again and throwing this error:&lt;/P&gt;&lt;P&gt;File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of '/usr/hdp/current/knox-server/bin/knoxcli.sh create-master --master [PROTECTED]' returned 1. Master secret is already present on disk. Please be aware that overwriting it will require updating other security artifacts.  Use --force to overwrite the existing master secret.
ERROR: Invalid Command
Unrecognized option:create-master
A fatal exception has occurred. Program will exit.&lt;/P&gt;&lt;P&gt;As per stack and versions info from Ambari Knox is at version 0.6.0.2.3.&lt;/P&gt;&lt;P&gt;For Ranger and Ranger KMS I also used the standard version. Ranger and Ranger KMS work fine...&lt;/P&gt;&lt;P&gt;Can anyone help ?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 21:55:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100572#M63589</guid>
      <dc:creator>gerald_both</dc:creator>
      <dc:date>2016-01-12T21:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100573#M63590</link>
      <description>&lt;P&gt;Any chance you can capture/provide the gateway.log file content from the period of time during which this occurred?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 06:03:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100573#M63590</guid>
      <dc:creator>kevin_minder</dc:creator>
      <dc:date>2016-01-13T06:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100574#M63591</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;I just tried to restart Knox but error still comes up. The gateway.log from /var/log/knox attached. the change date is 8th jan though so seems no updates.
2016-01-08 15:21:37,588 INFO  hadoop.gateway (GatewayConfigImpl.java:loadConfigResource(280)) - Loading configuration resource jar:file:/usr/hdp/2.3.4.0-3485/knox/bin/../lib/gateway-server-0.6.0.2.3.4.0-3485.jar!/conf/gateway-default.xml
2016-01-08 15:21:37,596 INFO  hadoop.gateway (GatewayConfigImpl.java:loadConfigFile(268)) - Loading configuration file /usr/hdp/2.3.4.0-3485/knox/bin/../conf/gateway-site.xml
2016-01-08 15:21:37,614 INFO  hadoop.gateway (GatewayConfigImpl.java:initGatewayHomeDir(212)) - Using /usr/hdp/2.3.4.0-3485/knox/bin/.. as GATEWAY_HOME via system property.
2016-01-08 15:21:38,104 INFO  hadoop.gateway (JettySSLService.java:init(89)) - Credential store for the gateway instance found - no need to create one.
2016-01-08 15:21:38,105 INFO  hadoop.gateway (JettySSLService.java:init(106)) - Keystore for the gateway instance found - no need to create one.
2016-01-08 15:21:38,107 INFO  hadoop.gateway (JettySSLService.java:logAndValidateCertificate(128)) - The Gateway SSL certificate is issued to hostname: hadoop0.local.
2016-01-08 15:21:38,108 INFO  hadoop.gateway (JettySSLService.java:logAndValidateCertificate(131)) - The Gateway SSL certificate is valid between: 1/8/16 3:21 PM and 1/7/17 3:21 PM.
2016-01-08 15:21:38,125 INFO  hadoop.gateway (GatewayServer.java:startGateway(219)) - Starting gateway...
2016-01-08 15:21:38,340 INFO  hadoop.gateway (GatewayServer.java:start(311)) - Loading topologies from directory: /usr/hdp/2.3.4.0-3485/knox/bin/../conf/topologies
2016-01-08 15:21:38,429 INFO  hadoop.gateway (GatewayServer.java:handleCreateDeployment(432)) - Deploying topology admin to /usr/hdp/2.3.4.0-3485/knox/bin/../data/deployments/admin.war.151a9b47638
2016-01-08 15:21:38,429 INFO  hadoop.gateway (DeploymentFactory.java:createDeployment(85)) - Configured services directory is /usr/hdp/2.3.4.0-3485/knox/bin/../data/services
2016-01-08 15:21:38,667 INFO  hadoop.gateway (DefaultGatewayServices.java:initializeContribution(176)) - Creating credential store for the cluster: admin
2016-01-08 15:21:40,209 INFO  hadoop.gateway (GatewayServer.java:handleCreateDeployment(432)) - Deploying topology default to /usr/hdp/2.3.4.0-3485/knox/bin/../data/deployments/default.war.152219d29b0
2016-01-08 15:21:40,209 INFO  hadoop.gateway (DeploymentFactory.java:createDeployment(85)) - Configured services directory is /usr/hdp/2.3.4.0-3485/knox/bin/../data/services
2016-01-08 15:21:40,253 INFO  hadoop.gateway (DefaultGatewayServices.java:initializeContribution(176)) - Creating credential store for the cluster: default
2016-01-08 15:21:41,199 INFO  hadoop.gateway (GatewayServer.java:start(315)) - Monitoring topologies in directory: /usr/hdp/2.3.4.0-3485/knox/bin/../conf/topologies
2016-01-08 15:21:41,200 INFO  hadoop.gateway (GatewayServer.java:startGateway(232)) - Started gateway on port 8,443.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 20:25:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100574#M63591</guid>
      <dc:creator>gerald_both</dc:creator>
      <dc:date>2016-01-13T20:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100575#M63592</link>
      <description>&lt;P&gt;the knoxcli.log has a date as per the event occured with content as follows:
2016-01-13 13:22:41,083 INFO  hadoop.gateway (GatewayConfigImpl.java:loadConfigResource(280)) - Loading configuration resource jar:file:/usr/hdp/2.3.4.0-3485/knox/bin/../lib/gateway-server-0.6.0.2.3.4.0-3485.jar!/conf/gateway-default.xml
2016-01-13 13:22:41,090 INFO  hadoop.gateway (GatewayConfigImpl.java:loadConfigFile(268)) - Loading configuration file /usr/hdp/2.3.4.0-3485/knox/bin/../conf/gateway-site.xml
2016-01-13 13:22:41,114 INFO  hadoop.gateway (GatewayConfigImpl.java:initGatewayHomeDir(212)) - Using /usr/hdp/2.3.4.0-3485/knox/bin/.. as GATEWAY_HOME via system property.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 20:30:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100575#M63592</guid>
      <dc:creator>gerald_both</dc:creator>
      <dc:date>2016-01-13T20:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100576#M63593</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm having the exact same issue when installing the latest version of HDP2.3 a couple of hours ago.&lt;/P&gt;&lt;P&gt;During the ambari-server setup installation process, I chose to install the Oracle JDK 1.8 (jdk1.8.0_40). &lt;/P&gt;&lt;P&gt;Will try the installation again tomorrow from scratch with Oracle JDK 1.7.&lt;/P&gt;&lt;P&gt;Cedric&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 05:42:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100576#M63593</guid>
      <dc:creator>Cedric1</dc:creator>
      <dc:date>2016-01-15T05:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100577#M63594</link>
      <description>&lt;P&gt;Installing with Oracle JDK 1.7 instead of JDK 1.8 did not make a difference.&lt;/P&gt;&lt;P&gt;Result of Knox gateway start:&lt;/P&gt;&lt;PRE&gt;2016-01-15 15:37:00,354 - Directory['/var/lib/knox/data'] {'owner': 'knox', 'group': 'knox', 'recursive': True}
2016-01-15 15:37:00,357 - Directory['/var/log/knox'] {'owner': 'knox', 'group': 'knox', 'recursive': True}
2016-01-15 15:37:00,357 - Directory['/var/run/knox'] {'owner': 'knox', 'group': 'knox', 'recursive': True}
2016-01-15 15:37:00,358 - Directory['/usr/hdp/current/knox-server/conf'] {'owner': 'knox', 'group': 'knox', 'recursive': True}
2016-01-15 15:37:00,359 - Directory['/usr/hdp/current/knox-server/conf/topologies'] {'owner': 'knox', 'group': 'knox', 'recursive': True}
2016-01-15 15:37:00,359 - XmlConfig['gateway-site.xml'] {'owner': 'knox', 'group': 'knox', 'conf_dir': '/usr/hdp/current/knox-server/conf', 'configuration_attributes': {}, 'configurations': ...}
2016-01-15 15:37:00,386 - Generating config: /usr/hdp/current/knox-server/conf/gateway-site.xml
2016-01-15 15:37:00,387 - File['/usr/hdp/current/knox-server/conf/gateway-site.xml'] {'owner': 'knox', 'content': InlineTemplate(...), 'group': 'knox', 'mode': None, 'encoding': 'UTF-8'}
2016-01-15 15:37:00,399 - Writing File['/usr/hdp/current/knox-server/conf/gateway-site.xml'] because contents don't match
2016-01-15 15:37:00,400 - File['/usr/hdp/current/knox-server/conf/gateway-log4j.properties'] {'content': '...', 'owner': 'knox', 'group': 'knox', 'mode': 0644}
2016-01-15 15:37:00,411 - File['/usr/hdp/current/knox-server/conf/topologies/default.xml'] {'content': InlineTemplate(...), 'owner': 'knox', 'group': 'knox'}
2016-01-15 15:37:00,412 - Execute['('chown', '-R', u'knox:knox', '/var/lib/knox/data', '/var/log/knox', u'/var/run/knox', '/usr/hdp/current/knox-server/conf', '/usr/hdp/current/knox-server/conf/topologies')'] {'sudo': True}
2016-01-15 15:37:00,440 - Execute['/usr/hdp/current/knox-server/bin/knoxcli.sh create-master --master [PROTECTED]'] {'environment': {'JAVA_HOME': u'/usr/jdk64/jdk1.7.0_67'}, 'not_if': "ambari-sudo.sh su knox -l -s /bin/bash -c 'test -f /var/lib/knox/data/security/master'", 'user': 'knox'}
&lt;/PRE&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 264, in &amp;lt;module&amp;gt;
    KnoxGateway().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/knox_gateway.py", line 146, in start
    self.configure(env)
  File "/var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/knox_gateway.py", line 63, 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 125, in knox
    not_if=master_secret_exist,
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 157, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 258, in action_run
    tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of '/usr/hdp/current/knox-server/bin/knoxcli.sh create-master --master [PROTECTED]' returned 1. Master secret is already present on disk. Please be aware that overwriting it will require updating other security artifacts.  Use --force to overwrite the existing master secret.
ERROR: Invalid Command
Unrecognized option:create-master
A fatal exception has occurred. Program will exit.&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jan 2016 22:49:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100577#M63594</guid>
      <dc:creator>Cedric1</dc:creator>
      <dc:date>2016-01-15T22:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100578#M63595</link>
      <description>&lt;P&gt;Looking at the command that causes the error:&lt;/P&gt;&lt;PRE&gt;2016-01-15 15:37:00,440 - Execute['/usr/hdp/current/knox-server/bin/knoxcli.sh create-master --master [PROTECTED]'] {'environment': {'JAVA_HOME': u'/usr/jdk64/jdk1.7.0_67'}, 'not_if': "ambari-sudo.sh su knox -l -s /bin/bash -c 'test -f /var/lib/knox/data/security/master'", 'user': 'knox'}&lt;/PRE&gt;&lt;P&gt;Originates to /var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/knox.py&lt;/P&gt;&lt;PRE&gt;cmd = format('{knox_client_bin} create-master --master {knox_master_secret!p}')
master_secret_exist = as_user(format('test -f {knox_master_secret_path}'), params.knox_user)
Execute(cmd,user=params.knox_user,environment={'JAVA_HOME': params.java_home},not_if=master_secret_exist,)&lt;/PRE&gt;&lt;P&gt;{knox_master_secret_path} resolves to /var/lib/knox/data/security/master (as defined in /var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py). The problem is that the Knox master file does not exist on this location. The directory /var/lib/knox/data does exist, but the content is empty. &lt;/P&gt;&lt;P&gt;Instead, the master key is located here: /usr/hdp/current/knox-server/data/security/master&lt;/P&gt;&lt;P&gt;In the file /var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/knox_gateway.py, I also see something with removing/setting symbolic links:&lt;/P&gt;&lt;PRE&gt;# Used to setup symlink, needed to update the knox managed symlink, in case of custom locations
if os.path.islink(params.knox_managed_pid_symlink) and os.path.realpath(params.knox_managed_pid_symlink) != params.knox_pid_dir:
os.unlink(params.knox_managed_pid_symlink)
os.symlink(params.knox_pid_dir, params.knox_managed_pid_symlink)&lt;/PRE&gt;&lt;P&gt;Perhaps something goes wrong with the symbolic links? (when you install HDP2.3 successfully, but try to restart all services immediately after the installation?)&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;In any case, the following modification resolved the issue for me.. I'm not sure if it covers everything (e.g. what will happen if you change the Knox master key via the Ambari web interface??), but I don't have any more time to be stuck on this issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Open /var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py&lt;/P&gt;&lt;P&gt;Change:&lt;/P&gt;&lt;PRE&gt;knox_master_secret_path = '/var/lib/knox/data/security/master' 
knox_cert_store_path = '/var/lib/knox/data/security/keystores/gateway.jks'&lt;/PRE&gt;&lt;P&gt;to:&lt;/P&gt;&lt;PRE&gt;knox_master_secret_path = '/usr/hdp/current/knox-server/data/security/master' 
knox_cert_store_path = '/usr/hdp/current/knox-server/data/security/keystores/gateway.jks'&lt;/PRE&gt;&lt;P&gt;Looking forward to a response from a Hortonworks employee..&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 23:48:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100578#M63595</guid>
      <dc:creator>Cedric1</dc:creator>
      <dc:date>2016-01-15T23:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100579#M63596</link>
      <description>&lt;P&gt;As of HDP 2.2.4, I believe that Knox changed its data folder to be a symlink to a versioned folder,
 so &lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/knox-server/data -&amp;gt; /var/lib/knox/data/${version} (or something like this)&lt;/PRE&gt;&lt;P&gt;This means that Knox in Ambari should always follow the symlink to get the right path instead of trying to access /var/lib/knox/data directly.&lt;/P&gt;&lt;P&gt;I opened &lt;A href="https://issues.apache.org/jira/browse/AMBARI-14726"&gt;AMBARI-14726&lt;/A&gt; to track a fix.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 02:39:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100579#M63596</guid>
      <dc:creator>afernandez</dc:creator>
      <dc:date>2016-01-20T02:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100580#M63597</link>
      <description>&lt;P&gt;Actually, that issue is fixed in Ambari 2.1.2 by &lt;A href="https://issues.apache.org/jira/browse/AMBARI-12979" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-12979&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 04:51:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100580#M63597</guid>
      <dc:creator>afernandez</dc:creator>
      <dc:date>2016-01-20T04:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100581#M63598</link>
      <description>&lt;P&gt;OK. I didn't realize that I didn't install the latest version.&lt;/P&gt;&lt;P&gt;Since my goal is to obtain the HDPCA certificate, I used the reference links from &lt;A href="http://hortonworks.com/training/class/hdp-certified-administrator-hdpca-exam/" target="_blank"&gt;http://hortonworks.com/training/class/hdp-certified-administrator-hdpca-exam/&lt;/A&gt;. Unfortunately they are not up to date.&lt;/P&gt;&lt;P&gt;I guess I will also be trying the upgrade process then.. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 22:02:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100581#M63598</guid>
      <dc:creator>Cedric1</dc:creator>
      <dc:date>2016-01-20T22:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100582#M63599</link>
      <description>&lt;P&gt;Thank you Cedric. The fix you provided also worked for me immediately.&lt;/P&gt;&lt;P&gt;Open /var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py
Change:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;knox_master_secret_path ='/var/lib/knox/data/security/master'&lt;/LI&gt;&lt;LI&gt;knox_cert_store_path ='/var/lib/knox/data/security/keystores/gateway.jks'&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;to:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;knox_master_secret_path ='/usr/hdp/current/knox-server/data/security/master'&lt;/LI&gt;&lt;LI&gt;knox_cert_store_path ='/usr/hdp/current/knox-server/data/security/keystores/gateway.jks'&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 20 Jan 2016 23:19:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100582#M63599</guid>
      <dc:creator>gerald_both</dc:creator>
      <dc:date>2016-01-20T23:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100583#M63600</link>
      <description>&lt;P&gt;As &lt;A href="https://community.hortonworks.com/users/2106/cedric.html"&gt;Cedric Colpaert&lt;/A&gt; points out in his answer, for me the best, you must change the params_linux.py file on both agent and server directories:&lt;/P&gt;&lt;P&gt;/var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts&lt;/P&gt;&lt;P&gt;/var/lib/ambari-server/resources/common-services/KNOX/0.5.0.2.2/package/scripts&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 00:10:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100583#M63600</guid>
      <dc:creator>jose_agc</dc:creator>
      <dc:date>2016-03-23T00:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100584#M63601</link>
      <description>&lt;P&gt;I just ran into the same issue, also with the latest version of Ambari &amp;amp; Knox, on CentOS 7 with Java 1.8.  FWIW, I found that if I rm /usr/hdp/current/knox-server/data/security/master, the service starts OK from within Ambari.   &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;
&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 13:53:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100584#M63601</guid>
      <dc:creator>prhodes1</dc:creator>
      <dc:date>2016-03-25T13:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Knox Gateway Start fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100585#M63602</link>
      <description>&lt;P&gt;If you see this error, make sure to upgrade Ambari to version 2.1.2 or higher,&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/release-2.1.2-rc3/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py#L83-L89" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.1.2-rc3/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py#L83-L89&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 01:53:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-Gateway-Start-fail/m-p/100585#M63602</guid>
      <dc:creator>afernandez</dc:creator>
      <dc:date>2016-03-29T01:53:28Z</dc:date>
    </item>
  </channel>
</rss>

