----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/46449/ -----------------------------------------------------------
Review request for Ambari, Jonathan Hurley and Vitalyi Brodetskyi. Bugs: AMBARI-15995 https://issues.apache.org/jira/browse/AMBARI-15995 Repository: ambari Description ------- Ambari packages upgrade to 2.4.0.0.160. It fails at stage of upgrading ambari database. Step of failure ambari-server upgrade. 1. It complains about following [root@host]# ambari-server upgrade Using python /usr/bin/python Upgrading ambari-server Updating properties in ambari.properties ... WARNING: Can not find ambari.properties.rpmsave file from previous version, skipping import of settings WARNING: Can not find ambari-env.sh.rpmsave file from previous version, skipping restore of environment settings Fixing database objects owner Ambari Server configured for Embedded Postgres. Confirm you have made a backup of the Ambari Server database [y/n] (y)? y Upgrading database schema WARNING: Multiple versions of javax.servlet.jsp.jstl.jar found in java class path (/usr/lib/ambari-server/javax.servlet.jsp.jstl-1.2.2.jar and /usr/lib/ambari-server/javax.servlet.jsp.jstl-1.2.0.v201105211821.jar). Make sure that you include only one javax.servlet.jsp.jstl.jar in the java class path '/etc/ambari-server/conf:/usr/lib/ambari-server/*:/usr/share/java/postgresql-jdbc.jar'. So I rename /usr/lib/ambari-server/javax.servlet.jsp.jstl-1.2.0.v201105211821.jar to something else and kept only /usr/lib/ambari-server/javax.servlet.jsp.jstl-1.2.2.jar 2. After above changes ambari-server upgrade does finishes but throws following error when trying to start ambari-server. 06 Apr 2016 15:29:17,518 ERROR [main] AmbariServer:930 - Failed to run the Ambari Server javax.persistence.PersistenceException: Exception [EclipseLink-116] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.DescriptorException Exception Description: No conversion value provided for the value [UPGRADED] in field [host_version.state]. Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[state-->host_version.state] Descriptor: RelationalDescriptor(org.apache.ambari.server.orm.entities.HostVersionEntity --> [DatabaseTable(host_version)]) at org.eclipse.persistence.internal.jpa.QueryImpl.getResultList(QueryImpl.java:484) at org.apache.ambari.server.orm.dao.DaoUtils.selectList(DaoUtils.java:62) at org.apache.ambari.server.orm.dao.CrudDAO.findAll(CrudDAO.java:72) at org.apache.ambari.server.orm.AmbariLocalSessionInterceptor.invoke(AmbariLocalSessionInterceptor.java:43) at org.apache.ambari.server.StateRecoveryManager.checkHostAndClusterVersions(StateRecoveryManager.java:53) at org.apache.ambari.server.StateRecoveryManager.doWork(StateRecoveryManager.java:48) at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:595) at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:928) Caused by: Exception [EclipseLink-116] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.DescriptorException Exception Description: No conversion value provided for the value [UPGRADED] in field [host_version.state]. Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[state-->host_version.state] Descriptor: RelationalDescriptor(org.apache.ambari.server.orm.entities.HostVersionEntity --> [DatabaseTable(host_version)]) at org.eclipse.persistence.exceptions.DescriptorException.noFieldValueConversionToAttributeValueProvided(DescriptorException.java:1066) at org.eclipse.persistence.mappings.converters.ObjectTypeConverter.convertDataValueToObjectValue(ObjectTypeConverter.java:226) at org.eclipse.persistence.mappings.converters.EnumTypeConverter.convertDataValueToObjectValue(EnumTypeConverter.java:141) at org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.getObjectValue(AbstractDirectMapping.java:616) at org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.valueFromRow(AbstractDirectMapping.java:1220) at org.eclipse.persistence.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1539) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:462) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:1005) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildWorkingCopyCloneNormally(ObjectBuilder.java:899) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObjectInUnitOfWork(ObjectBuilder.java:852) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:735) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:689) at org.eclipse.persistence.queries.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:805) at org.eclipse.persistence.queries.ReadAllQuery.registerResultInUnitOfWork(ReadAllQuery.java:962) at org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:573) at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1175) at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:904) at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1134) at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:460) at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1222) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2896) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1857) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1839) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1804) at org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:258) at org.eclipse.persistence.internal.jpa.QueryImpl.getResultList(QueryImpl.java:473) Please find ambari-server.log attached with this JIRA. Let me know and I have the env available to reproduce bug. I am right now in a limbo to upgrade my cluster to 1. Upgrade to Ambari 2.4.0.0-169 2. Later upgrade to hdp2.5.* Diffs ----- ambari-admin/pom.xml e057178 ambari-agent/pom.xml a8ed7f1 ambari-client/groovy-client/pom.xml fa89a73 ambari-client/pom.xml 3c6fd99 ambari-client/python-client/pom.xml b8cfb94 ambari-funtest/pom.xml 28225c2 ambari-logsearch/ambari-logsearch-appender/pom.xml 39f250a ambari-logsearch/ambari-logsearch-assembly/pom.xml 2db0608 ambari-logsearch/ambari-logsearch-logfeeder/pom.xml 0888010 ambari-logsearch/ambari-logsearch-portal/pom.xml 9c5ba72 ambari-logsearch/pom.xml 475de9f ambari-metrics/ambari-metrics-assembly/pom.xml 941c3aa ambari-metrics/ambari-metrics-common/pom.xml 5a388dd ambari-metrics/ambari-metrics-flume-sink/pom.xml 124a2f0 ambari-metrics/ambari-metrics-grafana/pom.xml c737b2b ambari-metrics/ambari-metrics-hadoop-sink/pom.xml 23f9ba9 ambari-metrics/ambari-metrics-host-monitoring/pom.xml d6c1fab ambari-metrics/ambari-metrics-kafka-sink/pom.xml 89700cc ambari-metrics/ambari-metrics-storm-sink/pom.xml ee4d2c3 ambari-metrics/ambari-metrics-timelineservice/pom.xml 29f7812 ambari-metrics/pom.xml 1f87683 ambari-project/pom.xml 2fbb1e1 ambari-server/pom.xml 0240733 ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java b66ad66 ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog240Test.java cfb57ab ambari-shell/ambari-groovy-shell/pom.xml 2853cd7 ambari-shell/ambari-python-shell/pom.xml 7b48454 ambari-shell/pom.xml 9e1a100 ambari-views/pom.xml 4121fb5 ambari-web/pom.xml d8dea17 contrib/views/capacity-scheduler/pom.xml cd97dcf contrib/views/commons/pom.xml 5018d46 contrib/views/files/pom.xml 383d90d contrib/views/hive/pom.xml 1c92f74 contrib/views/jobs/pom.xml bd01753 contrib/views/pig/pom.xml 36fb59e contrib/views/pom.xml 02bbd01 contrib/views/slider/pom.xml c603a8b contrib/views/storm/pom.xml 38ec8ba contrib/views/tez/pom.xml 9e626b8 contrib/views/utils/pom.xml 32f38dd contrib/views/zeppelin/pom.xml 3d0161c pom.xml f540099 Diff: https://reviews.apache.org/r/46449/diff/ Testing ------- mvn clean test Thanks, Dmitro Lisnichenko