ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajit Kshirsagar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RANGER-463) Unable to apply patch:PatchPasswordEncryption_J10001.class.
Date Wed, 20 Jan 2016 12:53:39 GMT

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

Ajit Kshirsagar commented on RANGER-463:
----------------------------------------

I have also got the same issue. For me it was due to some wrong configurations in *install.properties*
where I was setting *db_host* other than *localhost*.

Mysql was installed on the same node.

After changing to the following configs it worked fine.
#db_root_user=root
#db_root_user=SYS
db_root_user=root
db_root_password=root
db_host=localhost

After changing the configurations drop the databases *ranger* and *rangerlogger* and then
run the ./setup.sh.


> 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)

Mime
View raw message