Member since
07-31-2019
7
Posts
0
Kudos Received
0
Solutions
08-09-2019
04:57 AM
I'm getting similar errors for other packages (here: accumulo-client) to be installed and the deletion or renaming of the relevant directory does NOT help: stderr: /var/lib/ambari-agent/data/errors-1026.txt Traceback (most recent call last): File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 37, in <module> AfterInstallHook().execute() File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 375, in execute method(env) File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 31, in hook setup_stack_symlinks(self.stroutfile) File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 62, in setup_stack_symlinks stack_select.select(package, json_version) File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/stack_select.py", line 313, in select Execute(command, sudo=True) File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__ self.env.run() File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run self.run_action(resource, action) File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action provider_action() File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 262, in action_run tries=self.resource.tries, try_sleep=self.resource.try_sleep) File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner result = function(command, **kwargs) File "/usr/lib/ambari-agent/lib/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/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper result = _call(command, **kwargs_copy) File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 303, in _call raise ExecutionFailed(err_msg, code, out, err) resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-python-wrap /usr/bin/hdp-select set accumulo-client 2.5.3.0-37' returned 1. symlink target /usr/hdp/current/accumulo-client for accumulo already exists and it is not a symlink. stdout: /var/lib/ambari-agent/data/output-1026.txt 2019-08-08 19:21:06,858 - Changing group for /usr/hdp/current/accumulo-client/conf/masters from 0 to hadoop 2019-08-08 19:21:06,858 - TemplateConfig['/usr/hdp/current/accumulo-client/conf/hadoop-metrics2-accumulo.properties'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'} 2019-08-08 19:21:06,861 - File['/usr/hdp/current/accumulo-client/conf/hadoop-metrics2-accumulo.properties'] {'content': Template('hadoop-metrics2-accumulo.properties.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None} 2019-08-08 19:21:06,862 - Writing File['/usr/hdp/current/accumulo-client/conf/hadoop-metrics2-accumulo.properties'] because it doesn't exist 2019-08-08 19:21:06,862 - Changing owner for /usr/hdp/current/accumulo-client/conf/hadoop-metrics2-accumulo.properties from 0 to accumulo 2019-08-08 19:21:06,862 - Changing group for /usr/hdp/current/accumulo-client/conf/hadoop-metrics2-accumulo.properties from 0 to hadoop 2019-08-08 19:21:06,864 - The repository with version 2.5.3.0-37 for this command has been marked as resolved. It will be used to report the version of the component which was installed 2019-08-08 19:21:07,057 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2019-08-08 19:21:07,081 - Execute[('ambari-python-wrap', u'/usr/bin/hdp-select', 'set', u'accumulo-client', u'2.5.3.0-37')] {'sudo': True} 2019-08-08 19:21:07,102 - The repository with version 2.5.3.0-37 for this command has been marked as resolved. It will be used to report the version of the component which was installed
... View more
08-08-2019
03:28 PM
Used tool versions: Latest Metron-0.7.1 supported tools: HDP-2.5, ambari-2.6.2.2, HDP-2.5.3.0, HDP-UTILS-1.1.0.21 and metron-0.7.1.0/HCP 1.9.1.0-6 Error Messages/Callstack:
stderr: /var/lib/ambari-agent/data/errors-2339.txt
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 37, in <module>
AfterInstallHook().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 375, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 31, in hook
setup_stack_symlinks(self.stroutfile)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 62, in setup_stack_symlinks
stack_select.select(package, json_version)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/stack_select.py", line 313, in select
Execute(command, sudo=True)
File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
self.env.run()
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 262, in action_run
tries=self.resource.tries, try_sleep=self.resource.try_sleep)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
result = function(command, **kwargs)
File "/usr/lib/ambari-agent/lib/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/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 303, in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-python-wrap /usr/bin/hdp-select set oozie-client 2.5.3.0-37' returned 1. symlink target /usr/hdp/current/oozie-client for oozie already exists and it is not a symlink.
stdout: /var/lib/ambari-agent/data/output-2339.txt
2019-08-08 13:46:45,292 - Using hadoop conf dir: /usr/hdp/2.5.3.0-37/hadoop/conf
2019-08-08 13:46:45,318 - Execute[('ambari-python-wrap', u'/usr/bin/hdp-select', 'set', u'oozie-client', u'2.5.3.0-37')] {'sudo': True}
2019-08-08 13:46:45,341 - The repository with version 2.5.3.0-37 for this command has been marked as resolved. It will be used to report the version of the component which was installed Any hints how to avoid/fix this problem?
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Oozie
08-07-2019
08:31 AM
@Geoffrey Shelton Okot Thanks, but I had registered the driver as described in the documentation: ambari-server setup --jdbc-db=mysql --jdbc-driver=/root/dev/mysql-connector-java.jar Furthermore, it was all part of the installation process where I chose the option "Create new MySQL DB", so that should have been done by Ambari. Unfortunately, I started another try on monday morning so that I can't follow these steps. However, I then hit this error for which none of the proposed solutions helps in my case: https://community.hortonworks.com/questions/118453/ambari-not-using-available-repos.html
... View more
07-31-2019
07:22 PM
I get the following error condition:
2019-07-31 15:40:46,158 - Stack Feature Version Info: Cluster Stack=3.1, Command Stack=None, Command Version=None -> 3.1 Using openjdk version "1.8.0_212", Hortonworks 3.1 I have checked all solution aspects in com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure and https://community.hortonworks.com/content/supportkb/196253/commysqljdbcexceptionsjdbc4communicationsexception.html . They all don't help with my problem. Command aborted. Reason: 'Server considered task failed and automatically aborted it'
2019-07-31 17:00:22,742 - Stack Feature Version Info: Cluster Stack=3.1, Command Stack=None, Command Version=None -> 3.1
2019-07-31 17:00:22,746 - Using hadoop conf dir: /usr/hdp/3.1.0.0-78/hadoop/conf
2019-07-31 17:00:23,140 - Setting up Ranger KMS DB and DB User
2019-07-31 17:00:23,141 - Execute['ambari-python-wrap /usr/hdp/current/ranger-kms/dba_script.py -q'] {'logoutput': True, 'environment': {'RANGER_KMS_HOME': u'/usr/hdp/current/ranger-kms', 'JAVA_HOME': u'/usr/lib/jvm/java-8-openjdk-amd64/'}, 'tries': 5, 'user': 'kms', 'try_sleep': 10}
2019-07-31 17:00:23,173 [I] Running DBA setup script. QuiteMode:True
2019-07-31 17:00:23,173 [I] Using Java:/usr/lib/jvm/java-8-openjdk-amd64/bin/java
2019-07-31 17:00:23,173 [I] DB FLAVOR:MYSQL
2019-07-31 17:00:23,173 [I] DB Host:<FQDN_of_servername>
2019-07-31 17:00:23,173 [I] ---------- Verifing DB root password ----------
2019-07-31 17:00:23,174 [I] DBA root user password validated
2019-07-31 17:00:23,174 [I] ---------- Verifing Ranger KMS db user password ----------
2019-07-31 17:00:23,174 [I] KMS user password validated
2019-07-31 17:00:23,174 [I] ---------- Creating Ranger KMS db user ----------
2019-07-31 17:00:23,174 [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java -cp /usr/hdp/current/ranger-kms/ews/webapp/lib/mysql-connector-java.jar:/usr/hdp/current/ranger-kms/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://<FQDN_of_servername>/mysql -u root -p '********' -noheader -trim -c \; -query "SELECT version();"
SQLException : SQL state: 08S01 com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. ErrorCode: 0
2019-07-31 17:00:23,402 [E] Can't establish db connection.. Exiting..
2019-07-31 17:00:23,407 - Retrying after 10 seconds. Reason: Execution of 'ambari-python-wrap /usr/hdp/current/ranger-kms/dba_script.py -q' returned 1. 2019-07-31 17:00:23,173 [I] Running DBA setup script. QuiteMode:True
2019-07-31 17:00:23,173 [I] Using Java:/usr/lib/jvm/java-8-openjdk-amd64/bin/java
2019-07-31 17:00:23,173 [I] DB FLAVOR:MYSQL
2019-07-31 17:00:23,173 [I] DB Host:<FQDN_of_servername>
2019-07-31 17:00:23,173 [I] ---------- Verifing DB root password ----------
2019-07-31 17:00:23,174 [I] DBA root user password validated
2019-07-31 17:00:23,174 [I] ---------- Verifing Ranger KMS db user password ----------
2019-07-31 17:00:23,174 [I] KMS user password validated
2019-07-31 17:00:23,174 [I] ---------- Creating Ranger KMS db user ----------
2019-07-31 17:00:23,174 [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java -cp /usr/hdp/current/ranger-kms/ews/webapp/lib/mysql-connector-java.jar:/usr/hdp/current/ranger-kms/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://<FQDN_of_servername>/mysql -u root -p '********' -noheader -trim -c \; -query "SELECT version();"
SQLException : SQL state: 08S01 com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. ErrorCode: 0
2019-07-31 17:00:23,402 [E] Can't establish db connection.. Exiting..
Later in Ambari: Error: 500 status code received on DELETE method for API: /api/v1/clusters/myclustername
Error message: org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Could not delete cluster, clusterName=myclustername
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Ranger