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/85f57164 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/85f57164 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/85f57164 Branch: refs/heads/ranger Commit: 85f571641e14d15edd810a001182644a60cb85ba Parents: a1ab4ab Author: hzhang2 <[email protected]> Authored: Thu Aug 18 17:08:58 2016 +0800 Committer: hzhang2 <[email protected]> Committed: Mon Nov 7 16:35:28 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/85f57164/src/backend/utils/misc/guc.c ---------------------------------------------------------------------- diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 03b6d88..b44b482 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"; @@ -4326,6 +4327,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/85f57164/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
