Repository: incubator-hawq Updated Branches: refs/heads/master 12b2c188e -> fc8f34b2f
HAWQ-1156. Restricted HAWQ version to be 2.x in HAWQArray Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/fc8f34b2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/fc8f34b2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/fc8f34b2 Branch: refs/heads/master Commit: fc8f34b2f5b0d82823516b84b2cd41006dcb6d35 Parents: 12b2c18 Author: rlei <[email protected]> Authored: Tue Nov 15 10:49:57 2016 +0800 Committer: rlei <[email protected]> Committed: Tue Nov 15 10:49:57 2016 +0800 ---------------------------------------------------------------------- tools/bin/hawqpylib/hawqarray.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/fc8f34b2/tools/bin/hawqpylib/hawqarray.py ---------------------------------------------------------------------- diff --git a/tools/bin/hawqpylib/hawqarray.py b/tools/bin/hawqpylib/hawqarray.py index 7b5abc5..9941249 100755 --- a/tools/bin/hawqpylib/hawqarray.py +++ b/tools/bin/hawqpylib/hawqarray.py @@ -497,8 +497,9 @@ class HAWQArray: version_str = row[0] version = GpVersion(version_str) - # Only for HAWQ 2.0 - if version.getVersionRelease() in ("2.0"): + # Now only support HAWQ 2.x + hawq_major_version = version.getVersionRelease().split('.')[0] + if hawq_major_version == '2': hawq_site = HawqXMLParser(GPHOME) master_data_directory = hawq_site.get_value_from_name('hawq_master_directory')
