Repository: incubator-trafodion Updated Branches: refs/heads/master 2f53adfc8 -> 8c9faab90
[[ TRAFODION 1184 ]] Checking for Cloudera Role Groups Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/acad1512 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/acad1512 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/acad1512 Branch: refs/heads/master Commit: acad1512af1f8ea7cafb704038dda6efda71bcc8 Parents: ebe876d Author: Amanda Moran <[email protected]> Authored: Thu Dec 3 19:50:37 2015 +0000 Committer: Amanda Moran <[email protected]> Committed: Thu Dec 3 19:50:37 2015 +0000 ---------------------------------------------------------------------- install/installer/traf_config_check | 14 ++++++++++++++ 1 file changed, 14 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/acad1512/install/installer/traf_config_check ---------------------------------------------------------------------- diff --git a/install/installer/traf_config_check b/install/installer/traf_config_check index c267fb8..5b9eb49 100755 --- a/install/installer/traf_config_check +++ b/install/installer/traf_config_check @@ -462,12 +462,26 @@ do if [[ $HADOOP_TYPE == "cloudera" ]]; then checkClouderaVersion + checkRoleGroups fi break; fi done } +function checkRoleGroups { + + regionGroup1=$(curl -su $ADMIN:$PASSWORD http://$URL/api/v10/clusters/$CLUSTER_NAME/services/hbase/roleConfigGroups | grep displayName | grep "RegionServer Group 1" | wc -l) + + if [[ $regionGroup1 -ge "1" ]]; then + errorFound=1 + echo "Cloudera HBase Role Groups" >> $ERROR_LOG + echo "***ERROR: Cloudera has more than the default Region Group." >> $ERROR_LOG + echo "***ERROR: This must be fixed for install to continue" >> $ERROR_LOG + fi + +} + function checkClouderaVersion { if [[ $CDH_5_3_HDP_2_2_SUPPORT == "N" ]]; then
