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


Ship it!




Ship It!

- Alejandro Fernandez


On June 16, 2016, 9:02 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/48817/
> -----------------------------------------------------------
> 
> (Updated June 16, 2016, 9:02 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Nate Cole, and Vitalyi 
> Brodetskyi.
> 
> 
> Bugs: AMBARI-17284
>     https://issues.apache.org/jira/browse/AMBARI-17284
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> During an upgrade from HDP 2.3/2.4 to HDP 2.5, the following error is seen:
> 
> ```
> resource_management.core.exceptions.Fail: Execution of 'cp 
> --remove-destination /var/lib/ambari-agent/tmp/mysql-connector-java.jar 
> /usr/hdp/current/hive-server2-hive2/lib/mysql-connector-java.jar' returned 1. 
> cp: cannot create regular file 
> `/usr/hdp/current/hive-server2-hive2/lib/mysql-connector-java.jar': No such 
> file or directory
> ```
> 
> This is because with HDP 2.5, Hive introduced a new component called 
> `hive-server2-hive2`:
> 
> ```
> /usr/hdp/current/hive-metastore -> /usr/hdp/2.5.0.0-1234/hive
> /usr/hdp/current/hive-server2 -> /usr/hdp/2.5.0.0-1234/hive
> /usr/hdp/current/hive-server2-hive2 -> /usr/hdp/2.5.0.0-1234/hive2
> ```
> 
> Normally, this would be fine. However, we must use the `schematool` from 
> `hive2` and not {{hive}}:
> 
> ```
> /usr/hdp/2.5.0.0-1234/hive2/bin/schematool
> ```
> 
> Since Metastore is uggraded first, it's trying to write the custom JDBC 
> connector to 
> `/usr/hdp/current/hive-server2-hive2/lib`
> 
> But since this component doesn't exist or hasn't been `hdp-select`'d yet, it 
> fails.
> 
> 
> Diffs
> -----
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py
>  ef0fd6b 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py
>  55cddd6 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py
>  0a3d921 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  81207d6 
> 
> Diff: https://reviews.apache.org/r/48817/diff/
> 
> 
> Testing
> -------
> 
> PENDING
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>

Reply via email to