Created 02-01-2018 03:15 AM
Nifi Certificate Authority failed to start via ambari with this error displayed :
Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi_ca.py", line 114, in <module> CertificateAuthority().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute method(env) File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi_ca.py", line 92, in start Execute((run_ca_script, params.jdk64_home, ca_server_script, params.nifi_config_dir + '/nifi-certificate-authority.json', params.nifi_ca_log_file_stdout, params.nifi_ca_log_file_stderr, status_params.nifi_ca_pid_file), user=params.nifi_user) File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, 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 262, 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 72, in inner result = function(command, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper result = _call(command, **kwargs_copy) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call raise ExecutionFailed(err_msg, code, out, err) resource_management.core.exceptions.ExecutionFailed: Execution of '/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/run_ca.sh /lib/jvm/jre-openjdk/ /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.2.0.3.0.3.0-6/bin/tls-toolkit.sh /usr/hdf/current/nifi/conf/nifi-certificate-authority.json /var/log/nifi/nifi-ca.stdout /var/log/nifi/nifi-ca.stderr /var/run/nifi/nifi-ca.pid' returned 1. Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Waiting for child java process to exist Timed out while waiting for child java process to exist
Created 02-02-2018 07:17 AM
Can you please check the following directory and the JARs present inside this directory to see if it has proper read permission for other users?
# ls -ld /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.2.0.3.0.1.1-5/lib/
.
Please specially check the following JAR file if it exist and has read permission to other users or not?
# ls -lart /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.2.0.3.0.1.1-5/lib/nifi-toolkit-tls-1.2.0.3.0.1.1-5.jar -rw-r--r--. 1 root root 97156 Oct 23 07:42 /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.2.0.3.0.1.1-5/lib/nifi-toolkit-tls-1.2.0.3.0.1.1-5.jar
.
Created 02-01-2018 02:13 PM
Can you see what is in /var/log/nifi/nifi-ca.stderr ?
Created 02-02-2018 07:09 AM
@Bryan Bende below are written on nifi-ca.stderr :
Error: Could not find or load main class org.apache.nifi.toolkit.tls.TlsToolkitMain
Created 02-02-2018 07:17 AM
Can you please check the following directory and the JARs present inside this directory to see if it has proper read permission for other users?
# ls -ld /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.2.0.3.0.1.1-5/lib/
.
Please specially check the following JAR file if it exist and has read permission to other users or not?
# ls -lart /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.2.0.3.0.1.1-5/lib/nifi-toolkit-tls-1.2.0.3.0.1.1-5.jar -rw-r--r--. 1 root root 97156 Oct 23 07:42 /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.2.0.3.0.1.1-5/lib/nifi-toolkit-tls-1.2.0.3.0.1.1-5.jar
.
Created 02-02-2018 09:18 AM
i change the permission of .jar file on /var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/files/nifi-toolkit-1.2.0.3.0.1.1-5/lib/ and it works now.
Thanks.