hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hubertzh...@apache.org
Subject [1/3] incubator-hawq git commit: HAWQ-1002. Implement a switch in hawq-site.xml to configure whether use Ranger or not for ACL.
Date Wed, 07 Sep 2016 01:09:47 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/rangeracl 8712bde26 -> 65620be22


HAWQ-1002. Implement a switch in hawq-site.xml to configure whether use Ranger or not for
ACL.


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

Branch: refs/heads/rangeracl
Commit: 6e1f7f8b2a93e38e206ddfca4bec30820097a3f3
Parents: 8712bde
Author: hzhang2 <zhanghuan929@163.com>
Authored: Thu Aug 18 17:08:58 2016 +0800
Committer: hzhang2 <zhanghuan929@163.com>
Committed: Thu Aug 18 17:08:58 2016 +0800

----------------------------------------------------------------------
 src/backend/utils/misc/guc.c | 11 +++++++++++
 src/include/utils/guc.h      |  1 +
 2 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/6e1f7f8b/src/backend/utils/misc/guc.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 2cdcb62..6d831ae 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -349,6 +349,7 @@ bool		Debug_datumstream_write_use_small_initial_buffers = false;
 bool		gp_temporary_files_filespace_repair = false;
 bool		filesystem_support_truncate = true;
 bool		gp_allow_non_uniform_partitioning_ddl = true;
+bool  enable_ranger = false;
 
 int			explain_memory_verbosity = 0;
 char* 		memory_profiler_run_id = "none";
@@ -4323,6 +4324,16 @@ static struct config_bool ConfigureNamesBool[] =
 	},
 
 	{
+    {"enable_ranger", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
+     gettext_noop("support to using ranger to manage hawq privilege."),
+     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,

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/6e1f7f8b/src/include/utils/guc.h
----------------------------------------------------------------------
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h
index 41f7056..7cd7432 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