<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Hbase rest proxying in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-rest-proxying/m-p/150397#M40577</link>
    <description>&lt;P&gt;This issue was resolved by updating the zookeeper jaas config to use a keytab rather than a ticket cache.&lt;/P&gt;&lt;P&gt;The cache was expiring and the auth failing. I thing that I've learned is that the updated configs can take a while to propagate through the cluster. I had tried this config before but likely didn't wait long enough before discounting it as the solution. &lt;/P&gt;&lt;P&gt;Client { &lt;/P&gt;&lt;P&gt;        com.sun.security.auth.module.Krb5LoginModule required&lt;/P&gt;&lt;P&gt;useKeyTab=true
        useTicketCache=false&lt;/P&gt;&lt;P&gt;keyTab="/etc/security/keytabs/hbase.service.keytab"&lt;/P&gt;&lt;P&gt;principal="hbase/&amp;lt;your_host&amp;gt;@&amp;lt;your_realm&amp;gt;";
};&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2016 08:28:36 GMT</pubDate>
    <dc:creator>andrew_ryan1</dc:creator>
    <dc:date>2016-09-29T08:28:36Z</dc:date>
    <item>
      <title>Hbase rest proxying</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-rest-proxying/m-p/150395#M40575</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to configure HBase rest to allow proxying of users. I have the Ranger HBase plugin enabled to provide the HBase ACLs. &lt;/P&gt;&lt;P&gt;I am able to retrieve resources successfully from the repository using curl commands however the "doAs" proxying doesn't appear to be working.&lt;/P&gt;&lt;P&gt;The Ranger audit logs show all operations being performed by the proxy user HTTP rather than the impersonated user.&lt;/P&gt;&lt;P&gt;I have configured the hbase-site.xml file with the following additional settings to support impersonation.&lt;/P&gt;&lt;P&gt;hadoop.proxyuser.HTTP.groups: hadoop&lt;/P&gt;&lt;P&gt;hadoop.proxyuser.HTTP.hosts: *&lt;/P&gt;&lt;P&gt;hadoop.security.authorization: true&lt;/P&gt;&lt;P&gt;hbase.rest.authentication.kerberos.keytab: /etc/security/keytabs/hbase.service.keytab&lt;/P&gt;&lt;P&gt;hbase.rest.authentication.kerberos.principal: HTTP/_HOST@&amp;lt;REALM&amp;gt;&lt;/P&gt;&lt;P&gt;hbase.rest.authentication.type: kerberos&lt;/P&gt;&lt;P&gt;hbase.rest.kerberos.principal: hbase/_HOST@&amp;lt;REALM&amp;gt;&lt;/P&gt;&lt;P&gt;hbase.rest.keytab.file: /etc/security/keytabs/hbase.service.keytab&lt;/P&gt;&lt;P&gt;hbase.rest.support.proxyuser: true&lt;/P&gt;&lt;P&gt;I have added an HTTP user to ranger and the user to an HBase policy giving 'RWCA' access and have added the same priveleges to HTTP on HBase: grant 'HTTP' 'RWCA'.&lt;/P&gt;&lt;P&gt;I am using the following curl command to query HBase.&lt;/P&gt;&lt;P&gt;curl -ivk --negotiate -u : -H "Content-Type: application/octet-stream" -X GET "http://&amp;lt;namenode&amp;gt;:60080/&amp;lt;resource&amp;gt;/234998/d:p?doAs=hadoopuser1" -o test4.jpg&lt;/P&gt;&lt;P&gt;I was expecting that ranger would apply the ACLs of the user being impersonated by the proxy user to limit access and provide audit logging in the same way as the webhdfs plugin. Is this possible? &lt;/P&gt;&lt;P&gt;If so am I missing something in my configuration?&lt;/P&gt;&lt;P&gt;Any advice appreciated.&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 09:11:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-rest-proxying/m-p/150395#M40575</guid>
      <dc:creator>andrew_ryan1</dc:creator>
      <dc:date>2016-09-14T09:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase rest proxying</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-rest-proxying/m-p/150396#M40576</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/7908-zookeeperlog-startup.txt"&gt;zookeeperlog-startup.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;The above configuration now functions after a few service restarts.&lt;/P&gt;&lt;P&gt;However I am now experiencing another issue. &lt;/P&gt;&lt;P&gt;Requests to HBase rest now timeout after the specified number of client retries with a HTTP error of service unavailable.&lt;/P&gt;&lt;P&gt;The Zookeeper logs indicate the failure to establish a quorum. I have attached a log excerpt of the log file. I have three nodes. Zookeeper is running on both other nodes according to Ambari. Has anyone come across this problem before?&lt;/P&gt;&lt;P&gt;I have read some info that it may be related to DNS set up but have so far had no success.&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;2016-09-23 08:29:51,812 - DEBUG [QuorumPeer[myid=2]/0:0:0:0:0:0:0:0:2181:FastLeaderElection@609] - id: 3, proposed id: 3, zxid: 0x73000079ea, proposed zxid: 0x73000079ea&lt;/PRE&gt;&lt;PRE&gt;2016-09-23 08:29:51,814 - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not running&lt;/PRE&gt;&lt;PRE&gt;2016-09-23 08:29:51,814 - DEBUG [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@366] - IOException stack trace&lt;/PRE&gt;&lt;PRE&gt;java.io.IOException: ZooKeeperServer not running&lt;/PRE&gt;&lt;PRE&gt;	at org.apache.zookeeper.server.NIOServerCnxn.readLength(NIOServerCnxn.java:931)&lt;/PRE&gt;&lt;PRE&gt;	at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:237)&lt;/PRE&gt;&lt;PRE&gt;	at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)&lt;/PRE&gt;&lt;PRE&gt;	at java.lang.Thread.run(Thread.java:745)&lt;/PRE&gt;&lt;PRE&gt;2016-09-23 08:29:51,816 - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1007] - Closed socket connection for client /34.45.6.3:34139 (no session established for client)&lt;/PRE&gt;&lt;PRE&gt;2016-09-23 08:29:51,816 - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not running&lt;/PRE&gt;&lt;PRE&gt;2016-09-23 08:29:51,816 - DEBUG [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@366] - IOException stack trace&lt;/PRE&gt;&lt;PRE&gt;java.io.IOException: ZooKeeperServer not running&lt;/PRE&gt;&lt;PRE&gt;	at org.apache.zookeeper.server.NIOServerCnxn.readLength(NIOServerCnxn.java:931)&lt;/PRE&gt;&lt;PRE&gt;	at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:237)&lt;/PRE&gt;&lt;PRE&gt;	at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)&lt;/PRE&gt;&lt;PRE&gt;	at java.lang.Thread.run(Thread.java:745)&lt;/PRE&gt;&lt;PRE&gt;2016-09-23 08:29:51,816 - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1007] - Closed socket connection for client /34.45.6.2:60031 (no session established for client)&lt;/PRE&gt;&lt;PRE&gt;2016-09-23 08:29:51,817 - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection from /34.45.6.2:60032&lt;/PRE&gt;&lt;PRE&gt;2016-09-23 08:29:51,817 - DEBUG [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperSaslServer@78] - serviceHostname is 'namenode_1'&lt;/PRE&gt;&lt;PRE&gt;2016-09-23 08:29:51,817 - DEBUG [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperSaslServer@79] - servicePrincipalName is 'zookeeper'&lt;/PRE&gt;&lt;PRE&gt;2016-09-23 08:29:51,817 - DEBUG [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperSaslServer@80] - SASL mechanism(mech) is 'GSSAPI'&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Sep 2016 08:00:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-rest-proxying/m-p/150396#M40576</guid>
      <dc:creator>andrew_ryan1</dc:creator>
      <dc:date>2016-09-23T08:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase rest proxying</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-rest-proxying/m-p/150397#M40577</link>
      <description>&lt;P&gt;This issue was resolved by updating the zookeeper jaas config to use a keytab rather than a ticket cache.&lt;/P&gt;&lt;P&gt;The cache was expiring and the auth failing. I thing that I've learned is that the updated configs can take a while to propagate through the cluster. I had tried this config before but likely didn't wait long enough before discounting it as the solution. &lt;/P&gt;&lt;P&gt;Client { &lt;/P&gt;&lt;P&gt;        com.sun.security.auth.module.Krb5LoginModule required&lt;/P&gt;&lt;P&gt;useKeyTab=true
        useTicketCache=false&lt;/P&gt;&lt;P&gt;keyTab="/etc/security/keytabs/hbase.service.keytab"&lt;/P&gt;&lt;P&gt;principal="hbase/&amp;lt;your_host&amp;gt;@&amp;lt;your_realm&amp;gt;";
};&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 08:28:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hbase-rest-proxying/m-p/150397#M40577</guid>
      <dc:creator>andrew_ryan1</dc:creator>
      <dc:date>2016-09-29T08:28:36Z</dc:date>
    </item>
  </channel>
</rss>

