You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Austin Nobis (Code Review)" <ge...@cloudera.org> on 2019/03/28 18:15:24 UTC
[Impala-ASF-CR] IMPALA-8368: Fix exception thrown by create database with Ranger enabled
Austin Nobis has uploaded this change for review. ( http://gerrit.cloudera.org:8080/12878
Change subject: IMPALA-8368: Fix exception thrown by create database with Ranger enabled
......................................................................
IMPALA-8368: Fix exception thrown by create database with Ranger enabled
Previously, an exception would be thrown when a create database or
create table command was run and Ranger was enabled. This patch removes
the code that would throw the invalid exception from
RangerCatalogdAuthorizationManager.
Testing:
- The python E2E test was updated to create and drop a database to cover
the missing test case.
- All E2E tests were run
- All FE tests were run
Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
---
M fe/src/main/java/org/apache/impala/authorization/ranger/RangerCatalogdAuthorizationManager.java
M tests/authorization/test_ranger.py
2 files changed, 23 insertions(+), 16 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/78/12878/1
--
To view, visit http://gerrit.cloudera.org:8080/12878
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Gerrit-Change-Number: 12878
Gerrit-PatchSet: 1
Gerrit-Owner: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
[Impala-ASF-CR] IMPALA-8368: Fix exception thrown by create database with Ranger enabled
Posted by "Fredy Wijaya (Code Review)" <ge...@cloudera.org>.
Fredy Wijaya has posted comments on this change. ( http://gerrit.cloudera.org:8080/12878 )
Change subject: IMPALA-8368: Fix exception thrown by create database with Ranger enabled
......................................................................
Patch Set 1:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/12878/1//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/12878/1//COMMIT_MSG@7
PS1, Line 7: Fix exception thrown by create database with Ranger enabled
I believe this is also an issue with create table. Can you update the message correctly?
http://gerrit.cloudera.org:8080/#/c/12878/1/tests/authorization/test_ranger.py
File tests/authorization/test_ranger.py:
http://gerrit.cloudera.org:8080/#/c/12878/1/tests/authorization/test_ranger.py@51
PS1, Line 51: create database
test with create table as well.
--
To view, visit http://gerrit.cloudera.org:8080/12878
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Gerrit-Change-Number: 12878
Gerrit-PatchSet: 1
Gerrit-Owner: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Thu, 28 Mar 2019 18:18:43 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-8368: Fix exception thrown by create database or create table with Ranger enabled
Posted by "Fredy Wijaya (Code Review)" <ge...@cloudera.org>.
Fredy Wijaya has posted comments on this change. ( http://gerrit.cloudera.org:8080/12878 )
Change subject: IMPALA-8368: Fix exception thrown by create database or create table with Ranger enabled
......................................................................
Patch Set 2:
(4 comments)
http://gerrit.cloudera.org:8080/#/c/12878/2//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/12878/2//COMMIT_MSG@7
PS2, Line 7: create database or create table
nit: can be shorten to create database/table
http://gerrit.cloudera.org:8080/#/c/12878/2/tests/authorization/test_ranger.py
File tests/authorization/test_ranger.py:
http://gerrit.cloudera.org:8080/#/c/12878/2/tests/authorization/test_ranger.py@52
PS2, Line 52: "admin"
can we make this a variable similar to L42?
http://gerrit.cloudera.org:8080/#/c/12878/2/tests/authorization/test_ranger.py@65
PS2, Line 65: getuser()
we can use user variable declared in 42 instead.
http://gerrit.cloudera.org:8080/#/c/12878/2/tests/authorization/test_ranger.py@73
PS2, Line 73: getuser()
same as above
--
To view, visit http://gerrit.cloudera.org:8080/12878
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Gerrit-Change-Number: 12878
Gerrit-PatchSet: 2
Gerrit-Owner: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Thu, 28 Mar 2019 18:30:17 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
Posted by "Austin Nobis (Code Review)" <ge...@cloudera.org>.
Austin Nobis has uploaded a new patch set (#3). ( http://gerrit.cloudera.org:8080/12878 )
Change subject: IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
......................................................................
IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
Previously, an exception would be thrown when a create database or
create table command was run and Ranger was enabled. This patch removes
the code that would throw the invalid exception from
RangerCatalogdAuthorizationManager.
Testing:
- The python E2E test was updated to create and drop a database to cover
the missing test case.
- All E2E tests were run
- All FE tests were run
Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
---
M fe/src/main/java/org/apache/impala/authorization/ranger/RangerCatalogdAuthorizationManager.java
M tests/authorization/test_ranger.py
2 files changed, 23 insertions(+), 14 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/78/12878/3
--
To view, visit http://gerrit.cloudera.org:8080/12878
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Gerrit-Change-Number: 12878
Gerrit-PatchSet: 3
Gerrit-Owner: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
[Impala-ASF-CR] IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
Posted by "Fredy Wijaya (Code Review)" <ge...@cloudera.org>.
Fredy Wijaya has posted comments on this change. ( http://gerrit.cloudera.org:8080/12878 )
Change subject: IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
......................................................................
Patch Set 3: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/12878
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Gerrit-Change-Number: 12878
Gerrit-PatchSet: 3
Gerrit-Owner: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Thu, 28 Mar 2019 20:30:22 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/12878 )
Change subject: IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
......................................................................
Patch Set 3:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/2580/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/12878
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Gerrit-Change-Number: 12878
Gerrit-PatchSet: 3
Gerrit-Owner: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Thu, 28 Mar 2019 20:52:12 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/12878 )
Change subject: IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
......................................................................
Patch Set 3:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/3964/ DRY_RUN=false
--
To view, visit http://gerrit.cloudera.org:8080/12878
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Gerrit-Change-Number: 12878
Gerrit-PatchSet: 3
Gerrit-Owner: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Thu, 28 Mar 2019 20:32:04 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/12878 )
Change subject: IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
......................................................................
Patch Set 3: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/12878
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Gerrit-Change-Number: 12878
Gerrit-PatchSet: 3
Gerrit-Owner: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Fri, 29 Mar 2019 01:24:08 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/12878 )
Change subject: IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
......................................................................
IMPALA-8368: Fix exception thrown by create database/table with Ranger enabled
Previously, an exception would be thrown when a create database or
create table command was run and Ranger was enabled. This patch removes
the code that would throw the invalid exception from
RangerCatalogdAuthorizationManager.
Testing:
- The python E2E test was updated to create and drop a database to cover
the missing test case.
- All E2E tests were run
- All FE tests were run
Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Reviewed-on: http://gerrit.cloudera.org:8080/12878
Reviewed-by: Fredy Wijaya <fw...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
M fe/src/main/java/org/apache/impala/authorization/ranger/RangerCatalogdAuthorizationManager.java
M tests/authorization/test_ranger.py
2 files changed, 23 insertions(+), 14 deletions(-)
Approvals:
Fredy Wijaya: Looks good to me, approved
Impala Public Jenkins: Verified
--
To view, visit http://gerrit.cloudera.org:8080/12878
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Gerrit-Change-Number: 12878
Gerrit-PatchSet: 4
Gerrit-Owner: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
[Impala-ASF-CR] IMPALA-8368: Fix exception thrown by create database or create table with Ranger enabled
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/12878 )
Change subject: IMPALA-8368: Fix exception thrown by create database or create table with Ranger enabled
......................................................................
Patch Set 1:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/2575/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/12878
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Gerrit-Change-Number: 12878
Gerrit-PatchSet: 1
Gerrit-Owner: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Thu, 28 Mar 2019 18:56:26 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-8368: Fix exception thrown by create database or create table with Ranger enabled
Posted by "Austin Nobis (Code Review)" <ge...@cloudera.org>.
Austin Nobis has uploaded a new patch set (#2). ( http://gerrit.cloudera.org:8080/12878 )
Change subject: IMPALA-8368: Fix exception thrown by create database or create table with Ranger enabled
......................................................................
IMPALA-8368: Fix exception thrown by create database or create table with Ranger enabled
Previously, an exception would be thrown when a create database or
create table command was run and Ranger was enabled. This patch removes
the code that would throw the invalid exception from
RangerCatalogdAuthorizationManager.
Testing:
- The python E2E test was updated to create and drop a database to cover
the missing test case.
- All E2E tests were run
- All FE tests were run
Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
---
M fe/src/main/java/org/apache/impala/authorization/ranger/RangerCatalogdAuthorizationManager.java
M tests/authorization/test_ranger.py
2 files changed, 23 insertions(+), 14 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/78/12878/2
--
To view, visit http://gerrit.cloudera.org:8080/12878
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Gerrit-Change-Number: 12878
Gerrit-PatchSet: 2
Gerrit-Owner: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
[Impala-ASF-CR] IMPALA-8368: Fix exception thrown by create database or create table with Ranger enabled
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/12878 )
Change subject: IMPALA-8368: Fix exception thrown by create database or create table with Ranger enabled
......................................................................
Patch Set 2:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/2577/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/12878
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I430b2e67cccce97dc0fc99f655fcfd7db2072b13
Gerrit-Change-Number: 12878
Gerrit-PatchSet: 2
Gerrit-Owner: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Austin Nobis <an...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Thu, 28 Mar 2019 19:01:22 +0000
Gerrit-HasComments: No