ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitro Lisnichenko" <dlysniche...@hortonworks.com>
Subject Re: Review Request 31949: Wrong mysql-connector jar is not replaced during ambari-server setup
Date Wed, 11 Mar 2015 18:32:50 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31949/#review76100
-----------------------------------------------------------

Ship it!


Ship It!

- Dmitro Lisnichenko


On March 11, 2015, 6:29 p.m., Dmytro Sen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/31949/
> -----------------------------------------------------------
> 
> (Updated March 11, 2015, 6:29 p.m.)
> 
> 
> Review request for Ambari, Dmitro Lisnichenko and Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-10034
>     https://issues.apache.org/jira/browse/AMBARI-10034
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> STR: 
> Set up invalid mysql-connector jar file using command
> ambari-server setup --jdbc-db=mysql --jdbc-driver=/tmp/mysql-connector-java-5.1.33.jar
> In my case, it was zero-length.
> 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
> Now try to set up a correct jar file using the same command:
> 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
> 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.
> The issue is that existing zero-length mysql-connector-java-5.1.33.jar file is not replaced.
> 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
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/python/ambari_server/serverSetup.py 1c6dbbc 
> 
> Diff: https://reviews.apache.org/r/31949/diff/
> 
> 
> Testing
> -------
> 
> ----------------------------------------------------------------------
> Ran 234 tests in 10.541s
> 
> OK
> ----------------------------------------------------------------------
> Total run:612
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Dmytro Sen
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message