hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hubertzh...@apache.org
Subject [2/4] incubator-hawq git commit: HAWQ-1002. Implement configuration GUC related to Ranger.
Date Mon, 12 Dec 2016 06:50:21 GMT
HAWQ-1002. Implement configuration GUC related to Ranger.


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

Branch: refs/heads/ran5
Commit: ca9f649338d0becbde15e24f43006aa8c5d20868
Parents: 0c5a840
Author: hzhang2 <zhanghuan929@163.com>
Authored: Mon Dec 12 14:36:58 2016 +0800
Committer: hzhang2 <zhanghuan929@163.com>
Committed: Mon Dec 12 14:36:58 2016 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbvars.c    |  2 ++
 src/backend/utils/misc/guc.c | 29 +++++++++++++++++++++++++++++
 src/include/cdb/cdbvars.h    |  2 ++
 src/include/utils/guc.h      |  1 +
 4 files changed, 34 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/ca9f6493/src/backend/cdb/cdbvars.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbvars.c b/src/backend/cdb/cdbvars.c
index c2fca21..d7a2e59 100644
--- a/src/backend/cdb/cdbvars.c
+++ b/src/backend/cdb/cdbvars.c
@@ -292,6 +292,8 @@ bool enable_prefer_list_to_rm;
  * reserved to facilitate showing settings in hawq-site.xml. */
 char  *master_addr_host;
 int    master_addr_port;
+char  *rps_addr_host;
+int    rps_addr_port;
 char  *standby_addr_host;
 int    seg_addr_port;
 char  *dfs_url;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/ca9f6493/src/backend/utils/misc/guc.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index e5f6548..f34a9b9 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -732,6 +732,7 @@ int hawq_rm_nvseg_for_analyze_nopart_perquery_perseg_limit;
 int hawq_rm_nvseg_for_analyze_part_perquery_perseg_limit;
 int hawq_rm_nvseg_for_analyze_nopart_perquery_limit;
 int hawq_rm_nvseg_for_analyze_part_perquery_limit;
+bool enable_ranger = false;
 double	  optimizer_cost_threshold;
 double  optimizer_nestloop_factor;
 double  locality_upper_bound;
@@ -4326,6 +4327,16 @@ static struct config_bool ConfigureNamesBool[] =
 	},
 
 	{
+    {"enable_ranger", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
+     gettext_noop("Enable Apache Ranger for HAWQ privilege management."),
+     NULL,
+     GUC_SUPERUSER_ONLY
+    },
+    &enable_ranger,
+    false, NULL, NULL
+  },
+
+	{
 		{"filesystem_support_truncate", PGC_USERSET, APPENDONLY_TABLES,
 		 gettext_noop("the file system support truncate feature."),
 		 NULL,
@@ -6250,6 +6261,15 @@ static struct config_int ConfigureNamesInt[] =
 	},
 
 	{
+    {"hawq_rps_address_port", PGC_POSTMASTER, PRESET_OPTIONS,
+      gettext_noop("rps server address port number"),
+      NULL
+    },
+    &rps_addr_port,
+    1, 1, 65535, NULL, NULL
+  },
+
+	{
 		{"hawq_segment_address_port", PGC_POSTMASTER, PRESET_OPTIONS,
 			gettext_noop("segment address port number"),
 			NULL
@@ -8154,6 +8174,15 @@ static struct config_string ConfigureNamesString[] =
 	},
 
 	{
+    {"hawq_rps_address_host", PGC_POSTMASTER, PRESET_OPTIONS,
+      gettext_noop("rps server address hostname"),
+      NULL
+    },
+    &rps_addr_host,
+    "localhost", NULL, NULL
+  },
+
+	{
 		{"standby_address_host", PGC_POSTMASTER, PRESET_OPTIONS,
 			gettext_noop("standby server address hostname"),
 			NULL

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/ca9f6493/src/include/cdb/cdbvars.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbvars.h b/src/include/cdb/cdbvars.h
index 9f6c3b1..56b208f 100644
--- a/src/include/cdb/cdbvars.h
+++ b/src/include/cdb/cdbvars.h
@@ -1143,6 +1143,8 @@ extern bool debug_datalocality_time;
 /* New HAWQ 2.0 basic GUCs */
 extern char   *master_addr_host;
 extern int     master_addr_port;
+extern char   *rps_addr_host;
+extern int     rps_addr_port;
 extern char   *standby_addr_host;
 extern int     seg_addr_port;
 extern char   *dfs_url;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/ca9f6493/src/include/utils/guc.h
----------------------------------------------------------------------
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h
index 8fdab3c..4041e41 100644
--- a/src/include/utils/guc.h
+++ b/src/include/utils/guc.h
@@ -275,6 +275,7 @@ extern bool gp_plpgsql_clear_cache_always;
 extern bool gp_disable_catalog_access_on_segment;
 
 extern bool gp_called_by_pgdump;
+extern bool enable_ranger;
 
 /* Debug DTM Action */
 typedef enum


Mime
View raw message