-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57966/
-----------------------------------------------------------
Review request for Ambari, Attila Doroszlai, Robert Levas, Robert Nettleton,
and Sebastian Toader.
Bugs: AMBARI-20594
https://issues.apache.org/jira/browse/AMBARI-20594
Repository: ambari
Description
-------
Problem:
On blueprint deployments when the HIVE service is configured with default
values the cluster provisioning fails if the MYSQL_SERVER component is not
explicitly listed in the blueprint. The filure happens during the cluster
provisioning and the root cause is hard to be detected.
Solution:
When the cluster template is posted (so that all the configuration is together)
the cluster topology is validated:
* if hive service is required
* if the default hive database is to be used
* if the MYSQL_SERVER is not listed in the blueprint
then the cluster creation is interrupted and appropriate error is returned.
Diffs
-----
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ProvisionClusterRequest.java
a63013a
ambari-server/src/main/java/org/apache/ambari/server/topology/validators/HiveServiceValidator.java
PRE-CREATION
ambari-server/src/test/java/org/apache/ambari/server/topology/validators/HiveServiceValidatorTest.java
PRE-CREATION
Diff: https://reviews.apache.org/r/57966/diff/1/
Testing
-------
Added unit tests.
Related unit tests being fixed.
Manual testing in progress.
Thanks,
Laszlo Puskas