Activity log for bug #1496527

Date Who What changed Old value New value Message
2015-09-16 18:36:27 Chris Buccella bug added bug
2015-09-16 18:37:05 Chris Buccella description I'm using the ambari plugin code from git. When creating a cluster with Ranger enabled, installation of Ranger fails. $ more ranger_db_patch.log 2015-09-16 00:42:33,538 [main] INFO org.apache.ranger.patch.PatchPasswordEncryption_J10001 (PatchPasswordEncryption_J10001.java:83) - main() 2015-09-16 00:42:35,976 [main] INFO org.springframework.core.io.support.PropertiesLoaderSupport (PropertiesLoaderSupport.java:177) - Loading properties file from class path resource [ranger-admin-default-site.xml] 2015-09-16 00:42:35,990 [main] INFO org.springframework.core.io.support.PropertiesLoaderSupport (PropertiesLoaderSupport.java:177) - Loading properties file from class path resource [ranger-admin-site.xml] 2015-09-16 00:42:36,394 [main] WARN org.apache.hadoop.util.NativeCodeLoader (NativeCodeLoader.java:62) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 2015-09-16 00:42:36,639 [main] INFO org.springframework.core.io.support.PropertiesLoaderSupport (PropertiesLoaderSupport.java:177) - Loading properties file from class path resource [db_message_bundle.properties] 2015-09-16 00:42:38,981 [main] ERROR org.apache.ranger.common.RangerConfigUtil (RangerConfigUtil.java:44) - webapp URL is not set. Please ranger.externalurl property 2015-09-16 00:42:39,014 [main] INFO org.apache.ranger.biz.RangerBizUtil (RangerBizUtil.java:127) - Audit datasource is db 2015-09-16 00:42:40,949 [main] INFO org.apache.ranger.plugin.store.EmbeddedServiceDefsUtil (EmbeddedServiceDefsUtil.java:92) - ==> EmbeddedServiceDefsUtil.init() 2015-09-16 00:42:41,059 [main] FATAL org.apache.ranger.plugin.store.EmbeddedServiceDefsUtil (EmbeddedServiceDefsUtil.java:181) - EmbeddedServiceDefsUtil.getOrCreateServiceDef(): failed to load/create serviceType hdfs javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20131113-a7346c6): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: No database selected Error Code: 1046 ranger-admin-site.xml has bad/missing values for: - ranger.externalurl - ranger.jpa.audit.jdbc.url - ranger.jpa.jdbc.url After setting these, I was able to successfully run the failed portion of the install: python /usr/hdp/current/ranger-admin/db_setup.py -javapatch I'm using the ambari plugin code from git. The image is based on Centos 6.7 When creating a cluster with Ranger enabled, installation of Ranger fails. $ more ranger_db_patch.log 2015-09-16 00:42:33,538 [main] INFO org.apache.ranger.patch.PatchPasswordEncryption_J10001 (PatchPasswordEncryption_J10001.java:83) - main() 2015-09-16 00:42:35,976 [main] INFO org.springframework.core.io.support.PropertiesLoaderSupport (PropertiesLoaderSupport.java:177) - Loading properties file from class path resource [ranger-admin-default-site.xml] 2015-09-16 00:42:35,990 [main] INFO org.springframework.core.io.support.PropertiesLoaderSupport (PropertiesLoaderSupport.java:177) - Loading properties file from class path resource [ranger-admin-site.xml] 2015-09-16 00:42:36,394 [main] WARN org.apache.hadoop.util.NativeCodeLoader (NativeCodeLoader.java:62) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 2015-09-16 00:42:36,639 [main] INFO org.springframework.core.io.support.PropertiesLoaderSupport (PropertiesLoaderSupport.java:177) - Loading properties file from class path resource [db_message_bundle.properties] 2015-09-16 00:42:38,981 [main] ERROR org.apache.ranger.common.RangerConfigUtil (RangerConfigUtil.java:44) - webapp URL is not set. Please ranger.externalurl property 2015-09-16 00:42:39,014 [main] INFO org.apache.ranger.biz.RangerBizUtil (RangerBizUtil.java:127) - Audit datasource is db 2015-09-16 00:42:40,949 [main] INFO org.apache.ranger.plugin.store.EmbeddedServiceDefsUtil (EmbeddedServiceDefsUtil.java:92) - ==> EmbeddedServiceDefsUtil.init() 2015-09-16 00:42:41,059 [main] FATAL org.apache.ranger.plugin.store.EmbeddedServiceDefsUtil (EmbeddedServiceDefsUtil.java:181) - EmbeddedServiceDefsUtil.getOrCreateServiceDef(): failed to load/create serviceType hdfs javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20131113-a7346c6): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: No database selected Error Code: 1046 ranger-admin-site.xml has bad/missing values for: - ranger.externalurl - ranger.jpa.audit.jdbc.url - ranger.jpa.jdbc.url After setting these, I was able to successfully run the failed portion of the install: python /usr/hdp/current/ranger-admin/db_setup.py -javapatch
2015-11-18 20:47:30 Vitalii Gridnev sahara: status New Triaged
2015-11-18 20:47:34 Vitalii Gridnev sahara: importance Undecided High
2015-11-18 20:59:37 Vitalii Gridnev sahara: milestone mitaka-1
2015-11-18 21:07:58 Vitalii Gridnev tags plugin.ambari
2015-12-04 09:36:10 Vitalii Gridnev sahara: milestone mitaka-1 mitaka-2
2016-02-25 12:41:27 Vitalii Gridnev sahara: milestone mitaka-2 mitaka-3
2016-03-05 10:36:05 Vitalii Gridnev sahara: milestone mitaka-3 mitaka-rc1
2016-03-18 21:55:48 Vitalii Gridnev sahara: milestone mitaka-rc1 newton-1
2016-06-03 10:57:20 Vitalii Gridnev sahara: milestone newton-1
2016-06-10 11:54:11 Vitalii Gridnev sahara: importance High Medium