ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-17475) Ambari try to find old jdbc etc despite reset and resetuping with another DB
Date Wed, 29 Jun 2016 12:58:37 GMT

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

Andrew Onischuk commented on AMBARI-17475:
------------------------------------------

{noformat}
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project
ambari: Too many files with unapproved license: 6 See RAT report in: /home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/target/rat.txt
-> [Help 1]
{noformat}

Fails even without the patch on BAO. Tests are fine with the patch:

{noformat}
 [INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 approved: 149 licence.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Ambari Server ..................................... SUCCESS [1:27.953s]
[INFO] Ambari Agent ...................................... SUCCESS [23.589s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:52.490s
[INFO] Finished at: Wed Jun 29 15:50:10 EEST 2016
[INFO] Final Memory: 65M/960M
[INFO] ------------------------------------------------------------------------
{noformat}

> Ambari try to find old jdbc etc despite reset and resetuping with another DB
> ----------------------------------------------------------------------------
>
>                 Key: AMBARI-17475
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17475
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-17475.patch
>
>
> STR: **172.22.85.22**  
> 1) Try to run deploy cluster on sles12  
> 2) Install ambari-server  
> 3) Try to setup ambari-server with mysql  
> Do not have mysql db (server etc ), in this case ambari-server start is failed  
> 4) Try to start ambari-server . It is failed as mysql server and connector are
> absent.  
> 5) Make ambari server reset. Do not use DDL script as db was absent
>     
>     
>     
>     ambari-server reset -s
>     
> 6) Try to setup ambari-server with another db ( PostgreSQL (Embedded) as
> example) - passed successfully
>     
>     
>     
>     nat-os-s12-mysql-slava7-5:~ # ambari-server setup   
>     Using python  /usr/bin/python
>     Setup ambari-server
>     Checking SELinux...
>     WARNING: Could not run /usr/sbin/sestatus: OK
>     Customize user account for ambari-server daemon [y/n] (n)? 
>     Adjusting ambari-server permissions and ownership...
>     Checking firewall status...
>     Checking JDK...
>     Do you want to change Oracle JDK [y/n] (n)? 
>     Completing setup...
>     Configuring database...
>     Enter advanced database configuration [y/n] (n)? y
>     Configuring database...
>     ==============================================================================
>     Choose one of the following options:
>     [1] - PostgreSQL (Embedded)
>     [2] - Oracle
>     [3] - MySQL / MariaDB
>     [4] - PostgreSQL
>     [5] - Microsoft SQL Server (Tech Preview)
>     [6] - SQL Anywhere
>     ==============================================================================
>     Enter choice (3): 1
>     Database name (ambaricustom): 
>     Postgres schema (ambaricustom): 
>     Username (ambaricustomuser): 
>     Enter Database Password (bigdatacustom): 
>     Default properties detected. Using built-in database.
>     Configuring ambari database...
>     Checking PostgreSQL...
>     Running initdb: This may take up to a minute.
>     About to start PostgreSQL
>     Configuring local database...
>     Connecting to local database...done.
>     Configuring PostgreSQL...
>     Restarting PostgreSQL
>     Extracting system views...
>     ..........
>     Adjusting ambari-server permissions and ownership...
>     Ambari Server 'setup' completed successfully
>     
> 7) Try to start ambari-server
> **Actual result:**  
> Ambari try to find old DB conector etc despite reset and resetuping with
> another DB
>     
>     
>     
>     23 Jun 2016 14:09:36,426 ERROR [main] DBAccessorImpl:107 - Error while creating database
accessor 
>     java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
>     	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>     	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>     	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>     	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>     	at java.lang.Class.forName0(Native Method)
>     	at java.lang.Class.forName(Class.java:264)
>     	at org.apache.ambari.server.orm.DBAccessorImpl.<init>(DBAccessorImpl.java:85)
>     	at org.apache.ambari.server.orm.DBAccessorImpl$$FastClassByGuice$$86dbc63e.newInstance(<generated>)
>     	at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
>     	at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
>     	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
>     	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
>     	at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
>     	at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
>     	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
>     	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
>     	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
>     	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
>     	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
>     	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
>     	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
>     	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
>     	at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
>     	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
>     	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
>     	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
>     	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
>     	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
>     	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
>     	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
>     	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
>     	at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
>     	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
>     	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:75)
>     	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:73)
>     	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
>     	at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:73)
>     	at com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:147)
>     	at com.google.inject.internal.Initializer.injectAll(Initializer.java:92)
>     	at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:173)
>     	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
>     	at com.google.inject.Guice.createInjector(Guice.java:95)
>     	at com.google.inject.Guice.createInjector(Guice.java:72)
>     	at com.google.inject.Guice.createInjector(Guice.java:62)
>     	at org.apache.ambari.server.checks.DatabaseConsistencyChecker.main(DatabaseConsistencyChecker.java:102)
>     
>     



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

Mime
View raw message