[
https://issues.apache.org/jira/browse/HBASE-20590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16499814#comment-16499814
]
Ashish Singhi commented on HBASE-20590:
---------------------------------------
Tested the patch manually by running,
./hbase org.apache.hadoop.hbase.rest.RESTDemoClient <hostname> 9090 true
Without the patch, below error is logged,
{noformat}
2018-06-04 11:01:47,281 WARN [main] httpclient.HttpMethodDirector: Unable to
respond to any of these challenges: {negotiate=Negotiate}
Exception in thread "main" java.security.PrivilegedActionException:
java.io.IOException: put request failed with 401
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at
org.apache.hadoop.hbase.rest.RESTDemoClient.main(RESTDemoClient.java:70)
Caused by: java.io.IOException: put request failed with 401
at
org.apache.hadoop.hbase.rest.client.RemoteHTable.put(RemoteHTable.java:426)
at
org.apache.hadoop.hbase.rest.RESTDemoClient.run(RESTDemoClient.java:88)
at
org.apache.hadoop.hbase.rest.RESTDemoClient$1.run(RESTDemoClient.java:73)
at
org.apache.hadoop.hbase.rest.RESTDemoClient$1.run(RESTDemoClient.java:70)
... 3 more
{noformat}
I will commit the patch shortly, if no objections.
> REST Java client is not able to negotiate with the server in the secure mode
> ----------------------------------------------------------------------------
>
> Key: HBASE-20590
> URL: https://issues.apache.org/jira/browse/HBASE-20590
> Project: HBase
> Issue Type: Bug
> Components: REST, security
> Affects Versions: 1.3.1
> Reporter: Ashish Singhi
> Assignee: Ashish Singhi
> Priority: Critical
> Attachments: HBASE-20590.branch-1.patch, HBASE-20590.patch,
> HBASE-20590.v1.patch, HBASE-20590.v2.patch
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)