<?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: HDF NiFi wont' start in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127915#M55673</link>
    <description>&lt;P&gt;Looks like a permissions issue with the encrypt-config tool.  I'm guessing that you are running the script as a user who doesn't have the appropriate permissions to write/modify the /usr/hdf/current/nifi/conf directory (see &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF2/HDF-2.1.1/bk_dataflow-administration/content/encrypt-config_tool.html"&gt;here&lt;/A&gt; for an overview of the encrypt-config tool).&lt;/P&gt;&lt;P&gt;A few things to try:&lt;/P&gt;&lt;P&gt;1) Take a look at the /usr/hdf/current/nifi/conf directory, and make sure this directory can be written to by the user you're running the tool as (ambari? make sure that user is in the appropriate group to read/write this directory).&lt;/P&gt;&lt;P&gt;2) Try running the encrypt-config.sh tool on its own (see the link above; do this on its own and not thru ambari) and see if you run into the same issue, and see if this gets you further in diagnosing the issue.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2017 01:19:02 GMT</pubDate>
    <dc:creator>mkoehr</dc:creator>
    <dc:date>2017-02-28T01:19:02Z</dc:date>
    <item>
      <title>HDF NiFi wont' start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127913#M55671</link>
      <description>&lt;P&gt;
	NEW ERROR:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Turns out the /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/ permissions were 400&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now my error is: resource_management.core.exceptions.ExecutionFailed: Execution of 'JAVA_HOME=/usr/jdk64/jdk1.8.0_77 /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.1.0.2.1.1.0-2/bin/encrypt-config.sh -v -b /usr/hdf/current/nifi/conf/bootstrap.conf -n /usr/hdf/current/nifi/conf/nifi.properties -f /var/lib/nifi/conf/flow.xml.gz -s '[PROTECTED]' -p '[PROTECTED]''&lt;STRONG&gt; returned 1. Error: Could not find or load main class org.apache.nifi.properties.ConfigEncryptionTool&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-------------------------OLD ERROR------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
	stderr:  /var/lib/ambari-agent/data/errors-242.txt&lt;/P&gt;
&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 360, in &amp;lt;module&amp;gt;
    Master().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 720, in restart
    self.start(env, upgrade_type=upgrade_type)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 164, in start
    self.configure(env, is_starting = True)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 145, in configure
    params.nifi_flow_config_dir, params.nifi_sensitive_props_key, is_starting)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 298, in encrypt_sensitive_properties
    Execute(encrypt_config_script_prefix, user=nifi_user,logoutput=False)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, 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/core/providers/system.py", line 273, 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 293, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'JAVA_HOME=/usr/jdk64/jdk1.8.0_77 /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.1.0.2.1.1.0-2/bin/encrypt-config.sh -v -b /usr/hdf/current/nifi/conf/bootstrap.conf -n /usr/hdf/current/nifi/conf/nifi.properties -f /var/lib/nifi/conf/flow.xml.gz -s '[PROTECTED]' -p '[PROTECTED]'' returned 126. -bash: /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.1.0.2.1.1.0-2/bin/encrypt-config.sh: Permission denied
&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Apr 2026 12:24:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127913#M55671</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2026-04-21T12:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: HDF NiFi wont' start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127914#M55672</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/13322/jpetro416.html" nodeid="13322"&gt;@Joe Petro&lt;/A&gt;&lt;P&gt;What's the username for the user starting Nifi? What are the permissions for /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.1.0.2.1.1.0-2/bin/encrypt-config.sh &lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 01:07:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127914#M55672</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2017-02-28T01:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: HDF NiFi wont' start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127915#M55673</link>
      <description>&lt;P&gt;Looks like a permissions issue with the encrypt-config tool.  I'm guessing that you are running the script as a user who doesn't have the appropriate permissions to write/modify the /usr/hdf/current/nifi/conf directory (see &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF2/HDF-2.1.1/bk_dataflow-administration/content/encrypt-config_tool.html"&gt;here&lt;/A&gt; for an overview of the encrypt-config tool).&lt;/P&gt;&lt;P&gt;A few things to try:&lt;/P&gt;&lt;P&gt;1) Take a look at the /usr/hdf/current/nifi/conf directory, and make sure this directory can be written to by the user you're running the tool as (ambari? make sure that user is in the appropriate group to read/write this directory).&lt;/P&gt;&lt;P&gt;2) Try running the encrypt-config.sh tool on its own (see the link above; do this on its own and not thru ambari) and see if you run into the same issue, and see if this gets you further in diagnosing the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 01:19:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127915#M55673</guid>
      <dc:creator>mkoehr</dc:creator>
      <dc:date>2017-02-28T01:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: HDF NiFi wont' start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127916#M55674</link>
      <description>&lt;P&gt;It should be noted that I can manually start Nifi by running "nifi.sh start" &lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 00:09:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127916#M55674</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2017-03-01T00:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: HDF NiFi wont' start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127917#M55675</link>
      <description>&lt;P&gt;Turns out the /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/ permissions were 400, now my issue is: resource_management.core.exceptions.ExecutionFailed: Execution of 'JAVA_HOME=/usr/jdk64/jdk1.8.0_77 /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.1.0.2.1.1.0-2/bin/encrypt-config.sh -v -b /usr/hdf/current/nifi/conf/bootstrap.conf -n /usr/hdf/current/nifi/conf/nifi.properties -f /var/lib/nifi/conf/flow.xml.gz -s '[PROTECTED]' -p '[PROTECTED]'' returned 1. Error: Could not find or load main class org.apache.nifi.properties.ConfigEncryptionTool&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 23:06:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127917#M55675</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2017-03-01T23:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: HDF NiFi wont' start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127918#M55676</link>
      <description>&lt;P&gt;Turns out the /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/  permissions were 400, now my issue is: resource_management.core.exceptions.ExecutionFailed: Execution of 'JAVA_HOME=/usr/jdk64/jdk1.8.0_77 /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.1.0.2.1.1.0-2/bin/encrypt-config.sh -v -b /usr/hdf/current/nifi/conf/bootstrap.conf -n /usr/hdf/current/nifi/conf/nifi.properties -f /var/lib/nifi/conf/flow.xml.gz -s '[PROTECTED]' -p '[PROTECTED]'' returned 1. Error: Could not find or load main class org.apache.nifi.properties.ConfigEncryptionTool&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 23:13:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127918#M55676</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2017-03-01T23:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: HDF NiFi wont' start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127919#M55677</link>
      <description>&lt;P&gt;Ok here is the solution:&lt;/P&gt;&lt;P&gt;I modified the /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.1.0.2.1.1.0-2/bin/&lt;STRONG&gt;encrypt-config.sh&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Added the line:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;echo "The place it is looking is: ${CLASSPATH}"&lt;/PRE&gt;
&lt;PRE&gt;The place it is looking is: /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.1.0.2.1.1.0-2/lib/*

Now I updated the permissions on the lib folder and contents, everything works now!&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Mar 2017 22:37:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDF-NiFi-wont-start/m-p/127919#M55677</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2017-03-20T22:37:52Z</dc:date>
    </item>
  </channel>
</rss>

