-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59693/
-----------------------------------------------------------
(Updated June 1, 2017, 9:04 a.m.)
Review request for Ambari, Dmytro Grinenko, Jonathan Hurley, and Nate Cole.
Changes
-------
Added a unit test.
Bugs: AMBARI-21160
https://issues.apache.org/jira/browse/AMBARI-21160
Repository: ambari
Description
-------
During an upgrade (any kind, but we'll use a standard EU here), the following
is seen during the Tez Tarball Verification step:
{code}
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/functions/conf_select.py",
line 450, in get_hadoop_conf_dir
raise Fail("Unable to get parameter 'version'")
resource_management.core.exceptions.Fail: Unable to get parameter 'version'
{code}
The cause of this is that the {{RepoVersionEntity}} can't be looked up since
there is no service or component on the command.
Diffs (updated)
-----
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java
345bf5f01d
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
c1128a5dbb
ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/params_linux.py
a12d388243
ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
ec19724cb5
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java
b2555cd8e3
ambari-server/src/test/resources/stacks/HDP/2.1.1/upgrades/upgrade_execute_task_test.xml
PRE-CREATION
Diff: https://reviews.apache.org/r/59693/diff/2/
Changes: https://reviews.apache.org/r/59693/diff/1-2/
Testing
-------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24:08 min
[INFO] Finished at: 2017-05-31T16:47:18-04:00
[INFO] Final Memory: 76M/789M
[INFO] ------------------------------------------------------------------------
Performed a full upgrade with ZK, HDFS, YARN, HIVE
Thanks,
Jonathan Hurley