You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Gautam Borad (JIRA)" <ji...@apache.org> on 2015/09/16 06:27:45 UTC

[jira] [Commented] (RANGER-651) install: java patch PatchPasswordEncryption_J10001 failed: No database selected

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

Gautam Borad commented on RANGER-651:
-------------------------------------

HDP 2.3 bundles Ranger 0.5.0 and that has the functionality of logging output of Java patches. Can you attach the error log from this file {{$RANGER_DIR/ews/logs/ranger_migration.log}}? 
That would help debug the problem. Thanks.

Note: Typically the RANGER_DIR would be {{/usr/hdp/current/ranger-admin}}

> install: java patch PatchPasswordEncryption_J10001 failed: No database selected
> -------------------------------------------------------------------------------
>
>                 Key: RANGER-651
>                 URL: https://issues.apache.org/jira/browse/RANGER-651
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin
>    Affects Versions: 0.4.0
>         Environment: Centos 6.7
>            Reporter: Chris Buccella
>
> I'm trying to install Ranger via Ambari (HDP 2.3), but it's failing during install:
> {noformat}
> python /usr/hdp/current/ranger-admin/db_setup.py -javapatch
> 2015-09-15 19:43:22,200  [I] DB FLAVOR :MYSQL
> 2015-09-15 19:43:22,200  [I] --------- Verifying Ranger DB connection ---------
> 2015-09-15 19:43:22,200  [I] Checking connection..
> 2015-09-15 19:43:22,604  [I] Checking connection passed.
> 2015-09-15 19:43:23,001  [I] java patch PatchPasswordEncryption_J10001 is being applied..
> [EL Warning]: 2015-09-15 19:43:30.69--UnitOfWork(723057411)--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
> Call: SELECT id, ADDED_BY_ID, CREATE_TIME, description, guid, impl_class_name, is_enabled, label, name, rb_key_description, rb_key_label, UPDATE_TIME, UPD_BY_ID, version FROM x_service_def WHERE (name = ?)
> 	bind => [1 parameter bound]
> Query: ReadAllQuery(name="XXServiceDef.findByName" referenceClass=XXServiceDef sql="SELECT id, ADDED_BY_ID, CREATE_TIME, description, guid, impl_class_name, is_enabled, label, name, rb_key_description, rb_key_label, UPDATE_TIME, UPD_BY_ID, version FROM x_service_def WHERE (name = ?)")
> [EL Warning]: 2015-09-15 19:43:30.704--UnitOfWork(723057411)--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
> Call: SELECT id, ADDED_BY_ID, CREATE_TIME, description, guid, impl_class_name, is_enabled, label, name, rb_key_description, rb_key_label, UPDATE_TIME, UPD_BY_ID, version FROM x_service_def WHERE (name = ?)
> {noformat}
> This might be a user error, but I'm unsure where I missed specifying the database name. I have {{db_name}} set in {{install.properties}}



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