You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Nikki Bailey (JIRA)" <ji...@apache.org> on 2015/07/10 14:10:06 UTC

[jira] [Commented] (RANGER-463) Unable to apply patch:PatchPasswordEncryption_J10001.class.

    [ https://issues.apache.org/jira/browse/RANGER-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14622213#comment-14622213 ] 

Nikki Bailey commented on RANGER-463:
-------------------------------------

I'm having the same issue on an Ambari-managed CentOS install. Multiple other patches are applied successfully, but this one fails. I've checked that I can log in as root and as the rangeradmin user, and as far as I can tell JDBC connections are working happily. 

Have tried running through the steps manually and through Ambari console, but as far as I can tell all is well on my end and it's an issue with the patch itself. Anyone got any more info?

[2015/07/10 12:01:35]:  [I] Starting setup based on user authentication method=NONE
/usr/hdp/current/ranger-admin/ews/webapp
[2015/07/10 12:01:36]:  [I] Finished setup based on user authentication method=NONE
[2015/07/10 12:01:36]:  [I] patch PatchPasswordEncryption_J10001.class is being applied..
[2015/07/10 12:02:14]:  [E] Unable to apply patch:PatchPasswordEncryption_J10001.class. [EL Severe]: 2015-07-10 12:02:14.662--ServerSession(2024111714)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20131113-a7346c6): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Connections could not be acquired from the underlying database!
Error Code: 0
[EL Severe]: ejb: 2015-07-10 12:02:14.671--ServerSession(2024111714)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20131113-a7346c6): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Connections could not be acquired from the underlying database!
Error Code: 0
2015-07-10 12:02:14,965 - Command: /usr/bin/hdp-select status ranger-admin > /tmp/tmpYvuRmF
Output: ranger-admin - 2.2.6.0-2800

> Unable to apply patch:PatchPasswordEncryption_J10001.class. 
> ------------------------------------------------------------
>
>                 Key: RANGER-463
>                 URL: https://issues.apache.org/jira/browse/RANGER-463
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin
>    Affects Versions: 0.4.1
>            Reporter: tangshangwen
>
> Hi
> I installed Ranger by following steps in 
> https://cwiki.apache.org/confluence/display/RANGER/Ranger+Installation+Guide
> but there is a exception when I run setup.sh
> [2015/05/08 15:17:48]:   --------- Running XASecure PolicyManager Web Application Install Script --------- 
> [2015/05/08 15:17:48]:  [I] uname=Linux
> [2015/05/08 15:17:48]:  [I] hostname=XXXXX
> [2015/05/08 15:17:48]:  [I] DB_FLAVOR=MYSQL
> [2015/05/08 15:17:48]:  [I] Checking distribution name..
> [2015/05/08 15:17:48]:  [I] Found distribution : CentOS
> [2015/05/08 15:17:48]:  [I] check if command /home/kevin/jdk1.7.0_55/bin/java exists
> [2015/05/08 15:17:48]:  [I] '/home/kevin/jdk1.7.0_55/bin/java' command found
> [2015/05/08 15:17:48]:  [I] check if command mysql exists
> [2015/05/08 15:17:48]:  [I] 'mysql' command found
> [2015/05/08 15:17:48]:  [I] Checking MYSQL CONNECTOR FILE : /usr/share/java/mysql-connector-java-5.1.6-bin.jar
> [2015/05/08 15:17:48]:  [I] MYSQL CONNECTOR FILE : /usr/share/java/mysql-connector-java-5.1.6-bin.jar file found
> [2015/05/08 15:17:48]:  [I] Setting up UNIX user : ranger and group: ranger
> groupadd: group 'ranger' already exists
> [2015/05/08 15:17:48]:  [I] User already exists, adding it to group
> usermod: no changes
> [2015/05/08 15:17:48]:  [I] Setting up UNIX user : ranger and group: ranger DONE
> [2015/05/08 15:17:48]:  [I] Setting up installation files and directory
> [2015/05/08 15:17:48]:  [I] Setting up installation files and directory DONE
> [2015/05/08 15:17:48]:  [I] /usr/local/ranger-0.4.1-admin/ews/webapp folder found
> [2015/05/08 15:17:48]:  [I] /usr/local/ranger-0.4.1-admin/db/xa_core_db.sql file found
> [2015/05/08 15:17:48]:  [I] Checking MYSQL root password
> [2015/05/08 15:17:48]:  [I] Checking DB password DONE
> [2015/05/08 15:17:48]:  [I] Creating MYSQL user 'rangeradmin'
> [2015/05/08 15:17:48]:  [I] Creating MYSQL user 'rangeradmin' DONE
> [2015/05/08 15:17:48]:  [I] Copying MYSQL Connector to /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/lib 
> [2015/05/08 15:17:48]:  [I] Copying MYSQL Connector to /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/lib DONE
> [2015/05/08 15:17:48]:  [I] Verifying Database: ranger
> [2015/05/08 15:17:48]:  [I] - database ranger already exists. Ignoring import_db ...
> [2015/05/08 15:17:48]:  [I] Granting MYSQL user 'rangeradmin' for host % DONE
> [2015/05/08 15:17:48]:  [I] Granting MYSQL user 'rangeradmin' for host localhost DONE
> [2015/05/08 15:17:48]:  [I] - starting upgradedb ... 
> [2015/05/08 15:17:48]:  [I] Verifying database version catalog table .... 
> [2015/05/08 15:17:48]:  [I] - patch [001] is already applied. Skipping ...
> [2015/05/08 15:17:48]:  [I] - patch [002] is already applied. Skipping ...
> [2015/05/08 15:17:48]:  [I] - patch [003] is already applied. Skipping ...
> [2015/05/08 15:17:48]:  [I] - patch [004] is already applied. Skipping ...
> [2015/05/08 15:17:48]:  [I] - patch [005] is already applied. Skipping ...
> [2015/05/08 15:17:48]:  [I] - patch [006] is already applied. Skipping ...
> [2015/05/08 15:17:48]:  [I] - patch [007] is already applied. Skipping ...
> [2015/05/08 15:17:48]:  [I] - patch [008] is already applied. Skipping ...
> [2015/05/08 15:17:48]:  [I] - upgradedb completed.
> [2015/05/08 15:17:48]:  [I] Verifying Database: ranger
> [2015/05/08 15:17:48]:  [I] Database ranger already exists.
> [2015/05/08 15:17:48]:  [I] Verifying Audit User: rangerlogger
> [2015/05/08 15:17:48]:  [I] 'MYSQL' revoke all privileges from user 'rangerlogger'@'%' DONE
> [2015/05/08 15:17:48]:  [I] 'MYSQL' revoke all privileges from user 'rangerlogger'@'localhost' DONE
> [2015/05/08 15:17:48]:  [I] Verifying table xa_access_audit in audit database ranger
> [2015/05/08 15:17:48]:  [I] Table xa_access_audit already exists in audit database ranger
> [2015/05/08 15:17:48]:  [I] Granting Privileges to User: rangerlogger
> [2015/05/08 15:17:48]:  [I] Creating MYSQL user 'rangerlogger' for host % DONE
> [2015/05/08 15:17:48]:  [I] 'MYSQL' grant INSERT privileges to user 'rangerlogger'@'%' on xa_access_audit DONE
> [2015/05/08 15:17:48]:  [I] Creating MYSQL user 'rangerlogger' for host localhost DONE
> [2015/05/08 15:17:48]:  [I] 'MYSQL' grant INSERT privileges to user 'rangerlogger'@'localhost' on xa_access_audit DONE
> [2015/05/08 15:17:48]:  [I] /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties file found
> [2015/05/08 15:17:48]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'jdbc.url'}
> [2015/05/08 15:17:48]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'auditDB.jdbc.url'}
> [2015/05/08 15:17:48]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'jdbc.dialect'}
> [2015/05/08 15:17:48]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'auditDB.jdbc.dialect'}
> [2015/05/08 15:17:48]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'jdbc.driver'}
> [2015/05/08 15:17:48]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'auditDB.jdbc.driver'}
> [2015/05/08 15:17:48]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'xa.webapp.url.root'}
> [2015/05/08 15:17:48]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'http.enabled'}
> [2015/05/08 15:17:48]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'jdbc.user'}
> [2015/05/08 15:17:48]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'auditDB.jdbc.user'}
> Starting configuration for XA DB credentials:
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
> May 08, 2015 3:17:49 PM org.apache.hadoop.util.NativeCodeLoader <clinit>
> WARNING: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
> Alias already exist!! will try to delete first.
> Deleting credential: policyDB.jdbc.password from CredentialProvider: jceks://file/usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/.jceks/rangeradmin.jceks
> policyDB.jdbc.password has been successfully deleted.
> org.apache.hadoop.security.alias.JavaKeyStoreProvider has been updated.
> policyDB.jdbc.password has been successfully created.
> org.apache.hadoop.security.alias.JavaKeyStoreProvider has been updated.
> [2015/05/08 15:17:50]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'xaDB.jdbc.credential.alias'}
> [2015/05/08 15:17:50]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'xaDB.jdbc.credential.provider.path'}
> [2015/05/08 15:17:50]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'jdbc.password'}
> Starting configuration for Audit DB credentials:
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
> May 08, 2015 3:17:50 PM org.apache.hadoop.util.NativeCodeLoader <clinit>
> WARNING: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
> Alias already exist!! will try to delete first.
> Deleting credential: auditDB.jdbc.password from CredentialProvider: jceks://file/usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/.jceks/rangeradmin.jceks
> auditDB.jdbc.password has been successfully deleted.
> org.apache.hadoop.security.alias.JavaKeyStoreProvider has been updated.
> auditDB.jdbc.password has been successfully created.
> org.apache.hadoop.security.alias.JavaKeyStoreProvider has been updated.
> [2015/05/08 15:17:51]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'auditDB.jdbc.credential.alias'}
> [2015/05/08 15:17:51]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'auditDB.jdbc.credential.provider.path'}
> [2015/05/08 15:17:51]:  [I] File /usr/local/ranger-0.4.1-admin/ews/webapp/WEB-INF/classes/conf/xa_system.properties Updated successfully : {'auditDB.jdbc.password'}
> [2015/05/08 15:17:51]:  [I] Starting setup based on user authentication method=NONE
> /usr/local/ranger-0.4.1-admin/ews/webapp
> [2015/05/08 15:17:51]:  [I] Finished setup based on user authentication method=NONE
> [2015/05/08 15:17:51]:  [I] patch PatchPasswordEncryption_J10001.class is being applied..
> [2015/05/08 15:17:58]:  [E] Unable to apply patch:PatchPasswordEncryption_J10001.class. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)