Hello Tidy Bot, Kudu Jenkins,

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/15385

to look at the new patch set (#3).

Change subject: [wip] ranger: set up MiniRanger
......................................................................

[wip] ranger: set up MiniRanger

I'm opting to not use the setup.sh script [1] included with Ranger since
it touches various system-wide files in /etc. Instead, I'm drawing
inspiration from Impala's Ranger setup [2].

The actual starting of the Ranger admin service is inspired by the
script included with Ranger [3], which I opted to not use mostly for
aesthetic reasons.

Got to a point where I successfully create the Ranger database in
Postgres, but haven't tried making any calls in Ranger yet.

Also configs will likely need to be adjusted for some reason or other --
they're pretty minimal at the moment.

Also haven't found a good way to initialize things without having to
'sudo -u postgres' which doesn't feel great.

After running StartStopRanger, I can run the following locally:

[awong@va1022 debug]$ sudo -u postgres ./bin/postgres/psql -p <port>
ranger=# \c ranger
psql (12.2)
Type "help" for help.

ranger=# \c ranger
You are now connected to database "ranger" as user "postgres".
ranger=# \d
                        List of relations
 Schema |              Name              |   Type   |    Owner
--------+--------------------------------+----------+-------------
 public | vx_trx_log                     | view     | rangeradmin
 public | x_access_type_def              | table    | rangeradmin
 public | x_access_type_def_grants       | table    | rangeradmin
 public | x_access_type_def_grants_seq   | sequence | rangeradmin
 public | x_access_type_def_seq          | sequence | rangeradmin
 public | x_asset                        | table    | rangeradmin
 public | x_asset_seq                    | sequence | rangeradmin
 public | x_audit_map                    | table    | rangeradmin
 public | x_audit_map_seq                | sequence | rangeradmin
 public | x_auth_sess                    | table    | rangeradmin
 public | x_auth_sess_seq                | sequence | rangeradmin
 public | x_context_enricher_def         | table    | rangeradmin
 public | x_context_enricher_def_seq     | sequence | rangeradmin
 public | x_cred_store                   | table    | rangeradmin
 public | x_cred_store_seq               | sequence | rangeradmin
 public | x_data_hist                    | table    | rangeradmin
 public | x_data_hist_seq                | sequence | rangeradmin
 public | x_datamask_type_def            | table    | rangeradmin
 public | x_datamask_type_def_seq        | sequence | rangeradmin

[1] https://github.com/apache/ranger/blob/master/security-admin/scripts/setup.sh
[2] 
https://github.com/apache/impala/commit/0cb7187841780cabe368607ff559e493be59db22
[3] 
https://github.com/apache/ranger/blob/master/embeddedwebserver/scripts/ranger-admin-services.sh

Change-Id: I95574b2a8359be3437c0993dd5ce63479fd71548
---
M src/kudu/ranger/CMakeLists.txt
A src/kudu/ranger/mini_postgres.cc
A src/kudu/ranger/mini_postgres.h
M src/kudu/ranger/mini_ranger-test.cc
M src/kudu/ranger/mini_ranger.cc
M src/kudu/ranger/mini_ranger.h
M src/kudu/util/subprocess.cc
M thirdparty/build-thirdparty.sh
8 files changed, 384 insertions(+), 128 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/85/15385/3
--
To view, visit http://gerrit.cloudera.org:8080/15385
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I95574b2a8359be3437c0993dd5ce63479fd71548
Gerrit-Change-Number: 15385
Gerrit-PatchSet: 3
Gerrit-Owner: Andrew Wong <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)

Reply via email to