ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-20608) ambari setup incorrect link on mysql jdbc connector
Date Thu, 30 Mar 2017 20:36:41 GMT

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

Hudson commented on AMBARI-20608:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-branch-2.5 #1325 (See [https://builds.apache.org/job/Ambari-branch-2.5/1325/])
AMBARI-20608. ambari setup incorrect link on mysql jdbc (vbrodetskyi: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=61f667b1f81c6f04f91ebb2c5b8f4cc73be50b8c])
* (edit) ambari-server/src/test/python/TestAmbariServer.py
* (edit) ambari-server/src/main/python/ambari_server/dbConfiguration.py


> ambari setup incorrect link on mysql jdbc connector
> ---------------------------------------------------
>
>                 Key: AMBARI-20608
>                 URL: https://issues.apache.org/jira/browse/AMBARI-20608
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.5.0
>            Reporter: Vitaly Brodetskyi
>            Assignee: Vitaly Brodetskyi
>            Priority: Blocker
>             Fix For: 2.5.1
>
>         Attachments: AMBARI-20608.patch
>
>
> Found this error during to ambari-server setup.
> {noformat}[root@ctr-e129-1487033772569-54256-01-000002 ~]# ambari-server setup
> Using python  /usr/bin/python
> Setup ambari-server
> Checking SELinux...
> SELinux status is 'disabled'
> 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)? 
> Configuring database...
> Configuring ambari database...
> Copying JDBC drivers to server resources...
> ERROR: Unexpected IOError: [Errno 2] No such file or directory: '/usr/share/java/jdbc-mysql.jar'
> For more info run ambari-server with -v or --verbose option
> {noformat}
> Its looks like incorrect link on mysql jdbc connector. In our code provide these options
> {noformat}2017-03-22 23:20:44,319 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence():
Sending command [yum -y install wget]
> 2017-03-22 23:20:44,319 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence():
Sending command [yum -y install mysql-connector-java]
> 2017-03-22 23:20:44,319 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence():
Sending command [rm -rf /usr/share/java/mysql-connector-java*.jar]
> 2017-03-22 23:20:44,319 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence():
Sending command [mkdir -p /tmp/mysql-connector-java]
> 2017-03-22 23:20:44,319 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence():
Sending command [wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.37.tar.gz
-O /tmp/mysql-connector-java.tar.gz >/dev/null 2>&1]
> 2017-03-22 23:20:44,319 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence():
Sending command [tar -zxvf /tmp/mysql-connector-java.tar.gz -C /tmp/mysql-connector-java >/dev/null]
> 2017-03-22 23:20:44,320 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence():
Sending command [mkdir -p /usr/share/java]
> 2017-03-22 23:20:44,320 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence():
Sending command [cp /tmp/mysql-connector-java/mysql-connector-java-*/mysql-connector-java-*-bin.jar
/usr/share/java/mysql-jdbc-qe.jar]
> 2017-03-22 23:20:44,320 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence():
Sending command [chmod -R 777 /usr/share/java]
> 2017-03-22 23:20:44,320 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence():
Sending command [unlink /usr/share/java/mysql-connector-java.jar]
> 2017-03-22 23:20:44,320 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence():
Sending command [rm -f /usr/share/java/mysql-connector-java.jar]
> 2017-03-22 23:20:44,320 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence():
Sending command [ln -s /usr/share/java/mysql-jdbc-qe.jar /usr/share/java/mysql-connector-java.jar]{noformat}
> And according to expected behavior, ambari should be used mysql-jdbc-qe.jar



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message