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

Nifi does not work. Even if started will stop automatically.

stderr: /var/lib/ambari-agent/data/errors-82.txt
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/service_check.py", line 75, in <module>
    NifiServiceCheck().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/service_check.py", line 45, in service_check
    NifiServiceCheck.check_nifi_portal(url)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/decorator.py", line 55, in wrapper
    return function(*args, **kwargs)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/service_check.py", line 68, in check_nifi_portal
    raise Fail("Error connecting to {0}. Reason - {1}.".format(url, e.reason))
resource_management.core.exceptions.Fail: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.
stdout: /var/lib/ambari-agent/data/output-82.txt
2017-07-11 21:11:08,487 - Stack Feature Version Info: stack_version=2.1, version=None, current_cluster_version=2.1.4.0-5 -> 2.1
2017-07-11 21:11:08,496 - Running Nifi service check
2017-07-11 21:11:08,496 - Checking Nifi portal https://ip-10-0-1-156.ec2.internal:9091/nifi status
2017-07-11 21:11:08,498 - Will retry 14 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 5 sec(s)
2017-07-11 21:11:13,505 - Will retry 13 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 10 sec(s)
2017-07-11 21:11:23,515 - Will retry 12 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 20 sec(s)
2017-07-11 21:11:43,536 - Will retry 11 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 20 sec(s)
2017-07-11 21:12:03,554 - Will retry 10 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 20 sec(s)
2017-07-11 21:12:23,571 - Will retry 9 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 20 sec(s)
2017-07-11 21:12:43,594 - Will retry 8 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 20 sec(s)
2017-07-11 21:13:03,615 - Will retry 7 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 20 sec(s)
2017-07-11 21:13:23,634 - Will retry 6 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 20 sec(s)
2017-07-11 21:13:43,654 - Will retry 5 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 20 sec(s)
2017-07-11 21:14:03,668 - Will retry 4 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 20 sec(s)
2017-07-11 21:14:23,683 - Will retry 3 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 20 sec(s)
2017-07-11 21:14:43,705 - Will retry 2 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 20 sec(s)
2017-07-11 21:15:03,722 - Will retry 1 time(s), caught exception: Error connecting to https://ip-10-0-1-156.ec2.internal:9091/nifi. Reason - [Errno 111] Connection refused.. Sleeping for 20 sec(s)
 

Command failed after 1 tries

1 REPLY 1

@Rahul P

Have you tried to start NiFi manually? What else is installed on the node besides NiFi?