hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject incubator-hawq git commit: HAWQ-1156. Restricted HAWQ version to be 2.x in HAWQArray
Date Tue, 15 Nov 2016 02:55:39 GMT
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 <rlei@pivotal.io>
Authored: Tue Nov 15 10:49:57 2016 +0800
Committer: rlei <rlei@pivotal.io>
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')


Mime
View raw message