Support Questions
Find answers, ask questions, and share your expertise

Unable to use Ambari to start Nifi

Unable to use Ambari to start Nifi

Expert Contributor
NiFi will still start via command line:

cd /usr/hdf/current/nifi/bin/

./nifi.sh start

stderr: /var/lib/ambari-agent/data/errors-589.txt

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 360, in <module>
    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 102, in configure
    params.nifi_properties = self.setup_keystore_truststore(is_starting, params, config_version_file)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 229, in setup_keystore_truststore
    updated_properties = self.run_toolkit_client(ca_client_dict,params.nifi_config_dir, params.jdk64_home, params.nifi_user,params.nifi_group, params.stack_support_toolkit_update)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 248, in run_toolkit_client
    json_out = out[out.index('{'):len(out)]
ValueError: substring not found
4 REPLIES 4

Re: Unable to use Ambari to start Nifi

@rm -rf /*

Was Ambari ever able to start NiFi, or did it always fail?

Re: Unable to use Ambari to start Nifi

Expert Contributor

It was always able to start NiFi, no changes were made to the server since then.

Re: Unable to use Ambari to start Nifi

@rm -rf /*

So, if it was always able to start NiFi. When did it stop working and why did you need to restart NiFi?

Re: Unable to use Ambari to start Nifi

Expert Contributor

I needed to restart the service in order to fix a connection issue with hiveserver2 being restarted (lost socket connection). That problem was fixed via restart