Re: HBase thrift C# impersonation

2016-10-06 Thread kumar r
Hi,

I have enabled doAs property as said in
http://hbase.apache.org/book.html#security.gateway.thrift.doas

  
hbase.thrift.kerberos.principal
principal
  
  
hbase.thrift.keytab.file
keytab
  
  
hbase.thrift.ssl.enabled
true
  
  
hbase.thrift.ssl.keystore.store
keystorelocation
  
  
hbase.thrift.ssl.keystore.password
keystorepassword
  
  
hbase.thrift.ssl.keystore.keypassword
keypasspassword
  
  
hbase.thrift.security.qop
auth-conf
  
  
hbase.regionserver.thrift.http
true
  
  
hbase.thrift.support.proxyuser
true
  

But when i run the DemoClient, facing errors

*hbase org.apache.hadoop.hbase.thrift.HttpDoAsClient machine1.example.com
 10003 Kumar true*

Error logs - http://pastebin.com/ULSBi3Ci

and getting below WARN messages in HBase thrift server logs

2016-10-06 11:33:39,540 WARN  [191407184@qtp-4591636-0] mortbay.log:
javax.net.s
sl.SSLException: Unrecognized SSL message, plaintext connection?
2016-10-06 11:33:50,791 WARN  [191407184@qtp-4591636-0] mortbay.log:
javax.net.s
sl.SSLException: Unrecognized SSL message, plaintext connection?
2016-10-06 11:34:04,266 WARN  [191407184@qtp-4591636-0] mortbay.log:
javax.net.s
sl.SSLException: Unrecognized SSL message, plaintext connection?
2016-10-06 11:34:04,272 WARN  [191407184@qtp-4591636-0] mortbay.log:
javax.net.s
sl.SSLException: Unrecognized SSL message, plaintext connection?

Did i missed anything?

Help me to resolve the errors.

Thanks.

On Wed, Oct 5, 2016 at 2:50 PM, kumar r  wrote:

> Hi Dima,
>
> Thanks for the update. Let me check further.
>
> On Wed, Oct 5, 2016 at 2:28 AM, Dima Spivak  wrote:
>
>> Hey Kumar,
>>
>> The ref guide section on enabling security for the Thrift gateway [1] is a
>> good place to start. Have you gone through that?
>>
>> 1. http://hbase.apache.org/book.html#security.gateway.thrift.doas
>>
>> -Dima
>>
>> On Tue, Oct 4, 2016 at 4:59 AM, kumar r  wrote:
>>
>> > Hi,
>> >
>> > I need example for C# HBase thrift with doAs header.
>> >
>> > First of all, setting the below property isn't enough to enable
>> > authentication/impersonation?
>> >
>> >   
>> > hbase.thrift.security.qop
>> > auth-conf
>> >   
>> >
>> > After setting this property, i cannot access HBase via C# thrift. I need
>> > example to access HBase with doAs via C# thrift client.
>> >
>> > Help me to get it work.
>> >
>> > Thanks in advance,
>> > Kumar
>> >
>>
>
>


Re: HBase thrift C# impersonation

2016-10-05 Thread kumar r
Hi Dima,

Thanks for the update. Let me check further.

On Wed, Oct 5, 2016 at 2:28 AM, Dima Spivak  wrote:

> Hey Kumar,
>
> The ref guide section on enabling security for the Thrift gateway [1] is a
> good place to start. Have you gone through that?
>
> 1. http://hbase.apache.org/book.html#security.gateway.thrift.doas
>
> -Dima
>
> On Tue, Oct 4, 2016 at 4:59 AM, kumar r  wrote:
>
> > Hi,
> >
> > I need example for C# HBase thrift with doAs header.
> >
> > First of all, setting the below property isn't enough to enable
> > authentication/impersonation?
> >
> >   
> > hbase.thrift.security.qop
> > auth-conf
> >   
> >
> > After setting this property, i cannot access HBase via C# thrift. I need
> > example to access HBase with doAs via C# thrift client.
> >
> > Help me to get it work.
> >
> > Thanks in advance,
> > Kumar
> >
>


Re: HBase thrift C# impersonation

2016-10-04 Thread Dima Spivak
Hey Kumar,

The ref guide section on enabling security for the Thrift gateway [1] is a
good place to start. Have you gone through that?

1. http://hbase.apache.org/book.html#security.gateway.thrift.doas

-Dima

On Tue, Oct 4, 2016 at 4:59 AM, kumar r  wrote:

> Hi,
>
> I need example for C# HBase thrift with doAs header.
>
> First of all, setting the below property isn't enough to enable
> authentication/impersonation?
>
>   
> hbase.thrift.security.qop
> auth-conf
>   
>
> After setting this property, i cannot access HBase via C# thrift. I need
> example to access HBase with doAs via C# thrift client.
>
> Help me to get it work.
>
> Thanks in advance,
> Kumar
>


HBase thrift C# impersonation

2016-10-04 Thread kumar r
Hi,

I need example for C# HBase thrift with doAs header.

First of all, setting the below property isn't enough to enable
authentication/impersonation?

  
hbase.thrift.security.qop
auth-conf
  

After setting this property, i cannot access HBase via C# thrift. I need
example to access HBase with doAs via C# thrift client.

Help me to get it work.

Thanks in advance,
Kumar