You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Chris Buccella (JIRA)" <ji...@apache.org> on 2015/09/16 20:04:46 UTC
[jira] [Resolved] (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:all-tabpanel ]
Chris Buccella resolved RANGER-651.
-----------------------------------
Resolution: Not A Problem
> 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)