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-251. Add gpfaultinjector back for hawq2.0 using.
Date Tue, 15 Dec 2015 02:21:04 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master cefe2fe46 -> 11bdfd460


HAWQ-251. Add gpfaultinjector back for hawq2.0 using.


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/11bdfd46
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/11bdfd46
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/11bdfd46

Branch: refs/heads/master
Commit: 11bdfd460a3431e81e2db9e89b47eceda38ea894
Parents: cefe2fe
Author: rlei <rlei@pivotal.io>
Authored: Mon Dec 14 15:31:56 2015 +0800
Committer: rlei <rlei@pivotal.io>
Committed: Tue Dec 15 10:20:23 2015 +0800

----------------------------------------------------------------------
 tools/bin/gpfaultinjector | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/11bdfd46/tools/bin/gpfaultinjector
----------------------------------------------------------------------
diff --git a/tools/bin/gpfaultinjector b/tools/bin/gpfaultinjector
new file mode 100755
index 0000000..afb7cda
--- /dev/null
+++ b/tools/bin/gpfaultinjector
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+#
+# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
+#
+#
+# THIS IMPORT MUST COME FIRST
+# import mainUtils FIRST to get python version check
+#
+from gppylib.mainUtils import *
+
+# now reset of imports
+from gppylib.programs.clsInjectFault import *
+
+#-------------------------------------------------------------------------
+if __name__ == '__main__':
+    simple_main( GpInjectFaultProgram.createParser, GpInjectFaultProgram.createProgram)
+


Mime
View raw message