ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaly Brodetskyi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-20608) ambari setup incorrect link on mysql jdbc connector
Date Tue, 28 Mar 2017 15:27:41 GMT
Vitaly Brodetskyi created AMBARI-20608:
------------------------------------------

             Summary: 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


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

artifacts: http://qelog.hortonworks.com/log/setup-hw-qe-13176-repro-2-re--akhalymon/test-logs/ambari-setup-hw/artifacts/screenshots/com.hw.ambari.ui.tests.monitoring.admin_page.TestKerberosRetainingKDCAdminCredentials/testA_KerberosRetainKDCAdminCredentials/_22_22_22_6_Exception_was_thrown_while_installing_cluster__/
cluster: 172.27.17.129 - 42



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

Mime
View raw message