[
https://issues.apache.org/jira/browse/AMBARI-10034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14357584#comment-14357584
]
Hudson commented on AMBARI-10034:
---------------------------------
ABORTED: Integrated in Ambari-branch-2.0.0 #54 (See
[https://builds.apache.org/job/Ambari-branch-2.0.0/54/])
AMBARI-10034 Wrong mysql-connector jar is not replaced during ambari-server
setup (dsen) (dsen:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=15120403f23813f88e37f6e28cd3e9b73d3307c3)
* ambari-server/src/main/python/ambari_server/serverSetup.py
> Wrong mysql-connector jar is not replaced during ambari-server setup
> --------------------------------------------------------------------
>
> Key: AMBARI-10034
> URL: https://issues.apache.org/jira/browse/AMBARI-10034
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.0.0
> Reporter: Dmytro Sen
> Assignee: Dmytro Sen
> Priority: Critical
> Fix For: 2.0.0
>
> Attachments: AMBARI-10034.patch
>
>
> STR:
> Set up invalid mysql-connector jar file using command
> {code}
> ambari-server setup --jdbc-db=mysql
> --jdbc-driver=/tmp/mysql-connector-java-5.1.33.jar
> {code}
> In my case, it was zero-length.
> {code}
> ambari-dmitriusan-sles3-ru2-1:~ # ll /var/lib/ambari-server/resources/
> total 139512
> -rw-r--r-- 1 root root 42852 Mar 11 15:36 Ambari-DDL-MySQL-CREATE.sql
> -rw-r--r-- 1 root root 1192 Mar 11 15:36 Ambari-DDL-MySQL-DROP.sql
> -rw-r--r-- 1 root root 45391 Mar 11 15:36 Ambari-DDL-Oracle-CREATE.sql
> -rw-r--r-- 1 root root 2160 Mar 11 15:36 Ambari-DDL-Oracle-DROP.sql
> -rw-r--r-- 1 root root 41246 Mar 11 15:36 Ambari-DDL-Postgres-CREATE.sql
> -rw-r--r-- 1 root root 1337 Mar 11 15:36 Ambari-DDL-Postgres-DROP.sql
> -rw-r--r-- 1 root root 49660 Mar 11 15:36
> Ambari-DDL-Postgres-EMBEDDED-CREATE.sql
> -rw-r--r-- 1 root root 853 Mar 11 15:36
> Ambari-DDL-Postgres-EMBEDDED-DROP.sql
> -rw-r--r-- 1 root root 4188 Mar 11 15:36
> Ambari-DDL-SQLServer-CREATELOCAL.sql
> -rw-r--r-- 1 root root 43878 Mar 11 15:36 Ambari-DDL-SQLServer-CREATE.sql
> -rw-r--r-- 1 root root 8175 Mar 11 15:36 Ambari-DDL-SQLServer-DROP.sql
> drwxr-xr-x 2 root root 4096 Mar 11 15:52 apps
> drwxr-xr-x 22 root root 4096 Mar 11 15:52 common-services
> drwxr-xr-x 2 root root 4096 Mar 11 15:52 custom_action_definitions
> drwxr-xr-x 4 root root 4096 Mar 11 15:54 custom_actions
> -rw-r--r-- 1 root root 1931 Mar 11 15:36 DBConnectionVerification.jar
> drwxr-xr-x 2 root root 4096 Mar 11 15:54 host_scripts
> -rw-r--r-- 1 root root 142376665 Mar 11 15:53 jdk-7u67-linux-x64.tar.gz
> -rw-r--r-- 1 root root 0 Mar 11 16:02 mysql-connector-java-5.1.33.jar
> lrwxrwxrwx 1 root root 64 Mar 11 16:18 mysql-jdbc-driver.jar ->
> /var/lib/ambari-server/resources/mysql-connector-java-5.1.33.jar
> -rw-r--r-- 1 root root 5206 Mar 11 15:36 role_command_order.json
> drwxr-xr-x 2 root root 4096 Mar 11 15:52 scripts
> drwxr-xr-x 3 root root 4096 Mar 11 16:03 stacks
> -rw-r--r-- 1 root root 7426 Mar 11 15:53 UnlimitedJCEPolicyJDK7.zip
> drwxr-xr-x 5 root root 4096 Mar 11 15:52 upgrade
> -rw-r--r-- 1 root root 6 Mar 11 15:36 version
> drwxr-xr-x 3 root root 4096 Mar 11 15:54 views
> {code}
> Now try to set up a correct jar file using the same command:
> {code}
> ambari-dmitriusan-sles3-ru2-1:~ # ll /tmp/mysql-connector-java-5.1.33.jar
> -rw-r--r-- 1 root root 959984 Mar 11 16:15
> /tmp/mysql-connector-java-5.1.33.jar
> {code}
> {code}
> ambari-dmitriusan-sles3-ru2-1:~ # ambari-server setup --jdbc-db=mysql
> --jdbc-driver=/tmp/mysql-connector-java-5.1.33.jar
> Using python /usr/bin/python2.6
> Setup ambari-server
> JDBC driver was successfully initialized.
> Ambari Server 'setup' completed successfully.
> {code}
> The issue is that existing zero-length mysql-connector-java-5.1.33.jar file
> is not replaced.
> {code}
> ambari-dmitriusan-sles3-ru2-1:~ # ll /var/lib/ambari-server/resources/
> total 139512
> -rw-r--r-- 1 root root 42852 Mar 11 15:36 Ambari-DDL-MySQL-CREATE.sql
> -rw-r--r-- 1 root root 1192 Mar 11 15:36 Ambari-DDL-MySQL-DROP.sql
> -rw-r--r-- 1 root root 45391 Mar 11 15:36 Ambari-DDL-Oracle-CREATE.sql
> -rw-r--r-- 1 root root 2160 Mar 11 15:36 Ambari-DDL-Oracle-DROP.sql
> -rw-r--r-- 1 root root 41246 Mar 11 15:36 Ambari-DDL-Postgres-CREATE.sql
> -rw-r--r-- 1 root root 1337 Mar 11 15:36 Ambari-DDL-Postgres-DROP.sql
> -rw-r--r-- 1 root root 49660 Mar 11 15:36
> Ambari-DDL-Postgres-EMBEDDED-CREATE.sql
> -rw-r--r-- 1 root root 853 Mar 11 15:36
> Ambari-DDL-Postgres-EMBEDDED-DROP.sql
> -rw-r--r-- 1 root root 4188 Mar 11 15:36
> Ambari-DDL-SQLServer-CREATELOCAL.sql
> -rw-r--r-- 1 root root 43878 Mar 11 15:36 Ambari-DDL-SQLServer-CREATE.sql
> -rw-r--r-- 1 root root 8175 Mar 11 15:36 Ambari-DDL-SQLServer-DROP.sql
> drwxr-xr-x 2 root root 4096 Mar 11 15:52 apps
> drwxr-xr-x 22 root root 4096 Mar 11 15:52 common-services
> drwxr-xr-x 2 root root 4096 Mar 11 15:52 custom_action_definitions
> drwxr-xr-x 4 root root 4096 Mar 11 15:54 custom_actions
> -rw-r--r-- 1 root root 1931 Mar 11 15:36 DBConnectionVerification.jar
> drwxr-xr-x 2 root root 4096 Mar 11 15:54 host_scripts
> -rw-r--r-- 1 root root 142376665 Mar 11 15:53 jdk-7u67-linux-x64.tar.gz
> -rw-r--r-- 1 root root 0 Mar 11 16:02 mysql-connector-java-5.1.33.jar
> lrwxrwxrwx 1 root root 64 Mar 11 16:18 mysql-jdbc-driver.jar ->
> /var/lib/ambari-server/resources/mysql-connector-java-5.1.33.jar
> -rw-r--r-- 1 root root 5206 Mar 11 15:36 role_command_order.json
> drwxr-xr-x 2 root root 4096 Mar 11 15:52 scripts
> drwxr-xr-x 3 root root 4096 Mar 11 16:03 stacks
> -rw-r--r-- 1 root root 7426 Mar 11 15:53 UnlimitedJCEPolicyJDK7.zip
> drwxr-xr-x 5 root root 4096 Mar 11 15:52 upgrade
> -rw-r--r-- 1 root root 6 Mar 11 15:36 version
> drwxr-xr-x 3 root root 4096 Mar 11 15:54 views
> {code}
> *This feature used to work some time ago.*
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)