Hello,

Recently, our team use docker to setup ambari, when i restart docker and get 
into ambari web ui, most operation can’t be done and http response status is 
500.
The log shows that the database insert operation crushed, here is the log:

12 Sep 2017 16:16:25,172  INFO  AbstractResourceProvider:884 - Received a 
updateHostComponent request, clusterName=BlinkCluster, serviceName=HDFS, 
componentName=DATANODE, hostname=a27b08114.cloud.b09.ew9, request={ 
clusterName=Cluster, serviceName=HDFS, componentName=DATANODE, 
hostname=a27b08114, desiredState=INSTALLED, state=null, desiredStackId=null, 
staleConfig=null, adminState=null}

12 Sep 2017 16:16:25,177  INFO  AquilaManagementControllerImpl:2061 - 
AquilaManagementControllerImpl.createHostAction: created ExecutionCommand for 
host a27b08114 role DATANODE, roleCommand STOP, and command ID 216--1, with 
cluster-env tags version1

12 Sep 2017 16:16:25,184  WARN  ChangefreeOrder:174 - Failed to get employee i
     d, so use the default user id

12 Sep 2017 16:16:25,185 ERROR  Opsfeed:112 - Fatal errors occurs while create 
changefree-order

12 Sep 2017 16:16:25,190 ERROR  AquilaJpaLocalTxnInterceptor:114 - [DETAILED 
ERROR] Rollback reason:
Local Exception Stack:
Exception [EclipseLink-4002] (Eclipse Persistence Services - 
2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: 
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Dupl
     icate entry '115' for key 'PRIMARY'
Error Code: 1062
Call: INSERT INTO host_role_command (task_id, attempt_count, 
auto_skip_on_failure, command_detail, c
     ustom_command_name, end_time, error_log, event, exitcode, 
last_attempt_time, output_log, retry_allow
     ed, role, role_command, start_time, status, std_error, std_out, 
structured_out, host_id, request_id,
      stage_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 
?, ?, ?, ?)
bind => [22 parameters bound]

Query: 
InsertObjectQuery(org.apache.aquila.server.orm.entities.ExecutionCommandEntity@29985538)
at 
org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:331)
at 
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:900)

we install cluster via invoking ambari api, not web UI

Reply via email to