[jira] [Commented] (HIVE-18777) Add Authorization interface to support information_schema integration with external authorization

2018-02-28 Thread Hive QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-18777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16381339#comment-16381339
 ] 

Hive QA commented on HIVE-18777:




Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12912476/HIVE-18777.3.patch

{color:red}ERROR:{color} -1 due to no test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 23 failed/errored test(s), 13050 tests 
executed
*Failed tests:*
{noformat}
TestNegativeCliDriver - did not produce a TEST-*.xml file (likely timed out) 
(batchId=93)


[jira] [Commented] (HIVE-18777) Add Authorization interface to support information_schema integration with external authorization

2018-02-28 Thread Hive QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-18777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16381255#comment-16381255
 ] 

Hive QA commented on HIVE-18777:


| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
|| || || || {color:brown} Prechecks {color} ||
| {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue}  0m  
0s{color} | {color:blue} Findbugs executables are not available. {color} |
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  6m 
48s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  0m 
55s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} checkstyle {color} | {color:green}  0m 
35s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  0m 
51s{color} | {color:green} master passed {color} |
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  1m 
14s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  0m 
56s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javac {color} | {color:green}  0m 
56s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} checkstyle {color} | {color:green}  0m 
36s{color} | {color:green} ql: The patch generated 0 new + 19 unchanged - 2 
fixed = 19 total (was 21) {color} |
| {color:red}-1{color} | {color:red} whitespace {color} | {color:red}  0m  
0s{color} | {color:red} The patch has 1 line(s) that end in whitespace. Use git 
apply --whitespace=fix <>. Refer https://git-scm.com/docs/git-apply 
{color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  0m 
54s{color} | {color:green} the patch passed {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:red}-1{color} | {color:red} asflicense {color} | {color:red}  0m 
13s{color} | {color:red} The patch generated 49 ASF License warnings. {color} |
| {color:black}{color} | {color:black} {color} | {color:black} 13m 18s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Optional Tests |  asflicense  javac  javadoc  findbugs  checkstyle  compile  |
| uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 
3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux |
| Build tool | maven |
| Personality | 
/data/hiveptest/working/yetus_PreCommit-HIVE-Build-9411/dev-support/hive-personality.sh
 |
| git revision | master / f99c893 |
| Default Java | 1.8.0_111 |
| whitespace | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-9411/yetus/whitespace-eol.txt 
|
| asflicense | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-9411/yetus/patch-asflicense-problems.txt
 |
| modules | C: ql U: ql |
| Console output | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-9411/yetus.txt |
| Powered by | Apache Yetushttp://yetus.apache.org |


This message was automatically generated.



> Add Authorization interface to support information_schema integration with 
> external authorization
> -
>
> Key: HIVE-18777
> URL: https://issues.apache.org/jira/browse/HIVE-18777
> Project: Hive
>  Issue Type: Bug
>Reporter: Thejas M Nair
>Assignee: Thejas M Nair
>Priority: Major
>  Labels: pull-request-available
> Attachments: HIVE-18777.1.patch, HIVE-18777.2.patch, 
> HIVE-18777.3.patch
>
>
> HIVE-1010 added support for information_schema. However, the authorization 
> information is not integrated when another project such as Ranger is used to 
> do the authorization.
> We need to add API which Ranger/Sentry can implement, so that it is possible 
> to retrieve authorization policy information from them.
> The existing API only supports checking if user has a permission on an object 
> and can't be used to retrieve policy details.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-18777) Add Authorization interface to support information_schema integration with external authorization

2018-02-28 Thread Thejas M Nair (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-18777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16380951#comment-16380951
 ] 

Thejas M Nair commented on HIVE-18777:
--

Fixing checkstyle warnings

> Add Authorization interface to support information_schema integration with 
> external authorization
> -
>
> Key: HIVE-18777
> URL: https://issues.apache.org/jira/browse/HIVE-18777
> Project: Hive
>  Issue Type: Bug
>Reporter: Thejas M Nair
>Assignee: Thejas M Nair
>Priority: Major
>  Labels: pull-request-available
> Attachments: HIVE-18777.1.patch, HIVE-18777.2.patch, 
> HIVE-18777.3.patch
>
>
> HIVE-1010 added support for information_schema. However, the authorization 
> information is not integrated when another project such as Ranger is used to 
> do the authorization.
> We need to add API which Ranger/Sentry can implement, so that it is possible 
> to retrieve authorization policy information from them.
> The existing API only supports checking if user has a permission on an object 
> and can't be used to retrieve policy details.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-18777) Add Authorization interface to support information_schema integration with external authorization

2018-02-28 Thread Hive QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-18777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16380647#comment-16380647
 ] 

Hive QA commented on HIVE-18777:




Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12912383/HIVE-18777.2.patch

{color:red}ERROR:{color} -1 due to no test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 108 failed/errored test(s), 13414 tests 
executed
*Failed tests:*
{noformat}
TestNegativeCliDriver - did not produce a TEST-*.xml file (likely timed out) 
(batchId=93)


[jira] [Commented] (HIVE-18777) Add Authorization interface to support information_schema integration with external authorization

2018-02-28 Thread Hive QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-18777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16380495#comment-16380495
 ] 

Hive QA commented on HIVE-18777:


| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
|| || || || {color:brown} Prechecks {color} ||
| {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue}  0m  
0s{color} | {color:blue} Findbugs executables are not available. {color} |
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  7m 
10s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  1m  
2s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} checkstyle {color} | {color:green}  0m 
38s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  0m 
55s{color} | {color:green} master passed {color} |
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  1m 
16s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  1m  
3s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javac {color} | {color:green}  1m  
3s{color} | {color:green} the patch passed {color} |
| {color:red}-1{color} | {color:red} checkstyle {color} | {color:red}  0m 
36s{color} | {color:red} ql: The patch generated 10 new + 21 unchanged - 0 
fixed = 31 total (was 21) {color} |
| {color:red}-1{color} | {color:red} whitespace {color} | {color:red}  0m  
0s{color} | {color:red} The patch has 1 line(s) that end in whitespace. Use git 
apply --whitespace=fix <>. Refer https://git-scm.com/docs/git-apply 
{color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  0m 
52s{color} | {color:green} the patch passed {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:red}-1{color} | {color:red} asflicense {color} | {color:red}  0m 
14s{color} | {color:red} The patch generated 49 ASF License warnings. {color} |
| {color:black}{color} | {color:black} {color} | {color:black} 14m  2s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Optional Tests |  asflicense  javac  javadoc  findbugs  checkstyle  compile  |
| uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 
3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux |
| Build tool | maven |
| Personality | 
/data/hiveptest/working/yetus_PreCommit-HIVE-Build-9405/dev-support/hive-personality.sh
 |
| git revision | master / a0b2628 |
| Default Java | 1.8.0_111 |
| checkstyle | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-9405/yetus/diff-checkstyle-ql.txt
 |
| whitespace | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-9405/yetus/whitespace-eol.txt 
|
| asflicense | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-9405/yetus/patch-asflicense-problems.txt
 |
| modules | C: ql U: ql |
| Console output | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-9405/yetus.txt |
| Powered by | Apache Yetushttp://yetus.apache.org |


This message was automatically generated.



> Add Authorization interface to support information_schema integration with 
> external authorization
> -
>
> Key: HIVE-18777
> URL: https://issues.apache.org/jira/browse/HIVE-18777
> Project: Hive
>  Issue Type: Bug
>Reporter: Thejas M Nair
>Assignee: Thejas M Nair
>Priority: Major
>  Labels: pull-request-available
> Attachments: HIVE-18777.1.patch, HIVE-18777.2.patch
>
>
> HIVE-1010 added support for information_schema. However, the authorization 
> information is not integrated when another project such as Ranger is used to 
> do the authorization.
> We need to add API which Ranger/Sentry can implement, so that it is possible 
> to retrieve authorization policy information from them.
> The existing API only supports checking if user has a permission on an object 
> and can't be used to retrieve policy details.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-18777) Add Authorization interface to support information_schema integration with external authorization

2018-02-27 Thread Daniel Dai (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-18777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16379854#comment-16379854
 ] 

Daniel Dai commented on HIVE-18777:
---

+1

> Add Authorization interface to support information_schema integration with 
> external authorization
> -
>
> Key: HIVE-18777
> URL: https://issues.apache.org/jira/browse/HIVE-18777
> Project: Hive
>  Issue Type: Bug
>Reporter: Thejas M Nair
>Assignee: Thejas M Nair
>Priority: Major
>  Labels: pull-request-available
> Attachments: HIVE-18777.1.patch, HIVE-18777.2.patch
>
>
> HIVE-1010 added support for information_schema. However, the authorization 
> information is not integrated when another project such as Ranger is used to 
> do the authorization.
> We need to add API which Ranger/Sentry can implement, so that it is possible 
> to retrieve authorization policy information from them.
> The existing API only supports checking if user has a permission on an object 
> and can't be used to retrieve policy details.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-18777) Add Authorization interface to support information_schema integration with external authorization

2018-02-27 Thread Thejas M Nair (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-18777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16379834#comment-16379834
 ] 

Thejas M Nair commented on HIVE-18777:
--

[~daijy] Thanks. fixed comment in 2.patch


> Add Authorization interface to support information_schema integration with 
> external authorization
> -
>
> Key: HIVE-18777
> URL: https://issues.apache.org/jira/browse/HIVE-18777
> Project: Hive
>  Issue Type: Bug
>Reporter: Thejas M Nair
>Assignee: Thejas M Nair
>Priority: Major
>  Labels: pull-request-available
> Attachments: HIVE-18777.1.patch, HIVE-18777.2.patch
>
>
> HIVE-1010 added support for information_schema. However, the authorization 
> information is not integrated when another project such as Ranger is used to 
> do the authorization.
> We need to add API which Ranger/Sentry can implement, so that it is possible 
> to retrieve authorization policy information from them.
> The existing API only supports checking if user has a permission on an object 
> and can't be used to retrieve policy details.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-18777) Add Authorization interface to support information_schema integration with external authorization

2018-02-26 Thread Daniel Dai (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-18777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16377766#comment-16377766
 ] 

Daniel Dai commented on HIVE-18777:
---

The comment of AbstractHiveAuthorizer.getHivePolicyProvider should refer to 
HiveAuthorizer.getHivePolicyProvider not 
HiveAuthorizer.createHivePolicyProvider, right?

> Add Authorization interface to support information_schema integration with 
> external authorization
> -
>
> Key: HIVE-18777
> URL: https://issues.apache.org/jira/browse/HIVE-18777
> Project: Hive
>  Issue Type: Bug
>Reporter: Thejas M Nair
>Assignee: Thejas M Nair
>Priority: Major
>  Labels: pull-request-available
> Attachments: HIVE-18777.1.patch
>
>
> HIVE-1010 added support for information_schema. However, the authorization 
> information is not integrated when another project such as Ranger is used to 
> do the authorization.
> We need to add API which Ranger/Sentry can implement, so that it is possible 
> to retrieve authorization policy information from them.
> The existing API only supports checking if user has a permission on an object 
> and can't be used to retrieve policy details.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-18777) Add Authorization interface to support information_schema integration with external authorization

2018-02-24 Thread Hive QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-18777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16375426#comment-16375426
 ] 

Hive QA commented on HIVE-18777:




Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12911813/HIVE-18777.1.patch

{color:red}ERROR:{color} -1 due to no test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 36 failed/errored test(s), 13005 tests 
executed
*Failed tests:*
{noformat}
TestNegativeCliDriver - did not produce a TEST-*.xml file (likely timed out) 
(batchId=93)


[jira] [Commented] (HIVE-18777) Add Authorization interface to support information_schema integration with external authorization

2018-02-24 Thread Hive QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-18777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16375390#comment-16375390
 ] 

Hive QA commented on HIVE-18777:


| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
|| || || || {color:brown} Prechecks {color} ||
| {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue}  0m  
0s{color} | {color:blue} Findbugs executables are not available. {color} |
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  6m 
31s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  0m 
55s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} checkstyle {color} | {color:green}  0m 
34s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  0m 
48s{color} | {color:green} master passed {color} |
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  1m 
12s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  0m 
53s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javac {color} | {color:green}  0m 
53s{color} | {color:green} the patch passed {color} |
| {color:red}-1{color} | {color:red} checkstyle {color} | {color:red}  0m 
33s{color} | {color:red} ql: The patch generated 10 new + 21 unchanged - 0 
fixed = 31 total (was 21) {color} |
| {color:green}+1{color} | {color:green} whitespace {color} | {color:green}  0m 
 0s{color} | {color:green} The patch has no whitespace issues. {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  0m 
48s{color} | {color:green} the patch passed {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:red}-1{color} | {color:red} asflicense {color} | {color:red}  0m 
11s{color} | {color:red} The patch generated 49 ASF License warnings. {color} |
| {color:black}{color} | {color:black} {color} | {color:black} 12m 42s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Optional Tests |  asflicense  javac  javadoc  findbugs  checkstyle  compile  |
| uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 
3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux |
| Build tool | maven |
| Personality | 
/data/hiveptest/working/yetus_PreCommit-HIVE-Build-9346/dev-support/hive-personality.sh
 |
| git revision | master / 53a590b |
| Default Java | 1.8.0_111 |
| checkstyle | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-9346/yetus/diff-checkstyle-ql.txt
 |
| asflicense | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-9346/yetus/patch-asflicense-problems.txt
 |
| modules | C: ql U: ql |
| Console output | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-9346/yetus.txt |
| Powered by | Apache Yetushttp://yetus.apache.org |


This message was automatically generated.



> Add Authorization interface to support information_schema integration with 
> external authorization
> -
>
> Key: HIVE-18777
> URL: https://issues.apache.org/jira/browse/HIVE-18777
> Project: Hive
>  Issue Type: Bug
>Reporter: Thejas M Nair
>Assignee: Thejas M Nair
>Priority: Major
>  Labels: pull-request-available
> Attachments: HIVE-18777.1.patch
>
>
> HIVE-1010 added support for information_schema. However, the authorization 
> information is not integrated when another project such as Ranger is used to 
> do the authorization.
> We need to add API which Ranger/Sentry can implement, so that it is possible 
> to retrieve authorization policy information from them.
> The existing API only supports checking if user has a permission on an object 
> and can't be used to retrieve policy details.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-18777) Add Authorization interface to support information_schema integration with external authorization

2018-02-23 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-18777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16375037#comment-16375037
 ] 

ASF GitHub Bot commented on HIVE-18777:
---

GitHub user thejasmn opened a pull request:

https://github.com/apache/hive/pull/312

HIVE-18777



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/thejasmn/hive HIVE-18777-authprovider

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/hive/pull/312.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #312


commit e4627ce304ea44ddeffa6f822247fc5e105d9aba
Author: Thejas M Nair 
Date:   2018-02-23T22:08:08Z

add policy provider interfaces

commit 4e0157d3aecf3f1d94eb790cb1a0f91dfeb3e25a
Author: Thejas M Nair 
Date:   2018-02-23T22:23:51Z

Add ASL header




> Add Authorization interface to support information_schema integration with 
> external authorization
> -
>
> Key: HIVE-18777
> URL: https://issues.apache.org/jira/browse/HIVE-18777
> Project: Hive
>  Issue Type: Bug
>Reporter: Thejas M Nair
>Assignee: Thejas M Nair
>Priority: Major
>  Labels: pull-request-available
> Attachments: HIVE-18777.1.patch
>
>
> HIVE-1010 added support for information_schema. However, the authorization 
> information is not integrated when another project such as Ranger is used to 
> do the authorization.
> We need to add API which Ranger/Sentry can implement, so that it is possible 
> to retrieve authorization policy information from them.
> The existing API only supports checking if user has a permission on an object 
> and can't be used to retrieve policy details.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)