<?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: HDFS Encryption Zone - HBase shutting down in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145504#M52459</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Did you try clearing up your zookeeper directory? Your zookeeper directory is hbase.zookeeper.property.datadir (in your hbase-site.xml). Login to zookeeper cli and run rmr /path. Make sure both hbase and zookeeper are shutdown.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 10:39:35 GMT</pubDate>
    <dc:creator>mqureshi</dc:creator>
    <dc:date>2017-01-25T10:39:35Z</dc:date>
    <item>
      <title>HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145502#M52457</link>
      <description>&lt;P&gt;Hi - i'm trying to  evaluate &amp;amp; implement Data at Rest encryption for HBase.&lt;/P&gt;&lt;P&gt;here is what is done -&amp;gt;&lt;/P&gt;&lt;P&gt;- created folder /encrypt_hbase1/hbase&lt;/P&gt;&lt;P&gt;- created Encryption zone using key - testkeyfromcli, path - /encrypt_hbase1&lt;/P&gt;&lt;P&gt;- added folders /encrypt_hbase1/hbase/staging, /encrypt_hbase1/hbase/data&lt;/P&gt;&lt;P&gt;- made the following changes to properties in hbase-site,xml, to point Hbase to encrypted locations.&lt;/P&gt;&lt;P&gt;hbase.rootdir  =&amp;gt;  hdfs://sandbox.hortonworks.com:8020/encrypt_hbase1/hbase/data&lt;/P&gt;&lt;P&gt;hbase.bulkload.staging.dir =&amp;gt;  /encrypt_hbase1/hbase/staging&lt;/P&gt;&lt;P&gt;- added hbase to have access to locations under /encrypt_hbase1 (recursive)- using Ranger&lt;/P&gt;&lt;P&gt;- Added hbase access to key -  testkeyfromcli using Ranger&lt;/P&gt;&lt;P&gt;I restarted Hbase using Ranger, and it starts up.&lt;/P&gt;&lt;P&gt;However, when i try to access the tables (using command - list), the region server is shutting down, and it errors out.&lt;/P&gt;&lt;P&gt;Any ideas on what needs to be done ?&lt;/P&gt;&lt;P&gt;attached screen-shots of Ranger policies for HDFS location &amp;amp; key&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11689-screen-shot-2017-01-24-at-62538-pm.png"&gt;screen-shot-2017-01-24-at-62538-pm.png&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11690-screen-shot-2017-01-24-at-62459-pm.png"&gt;
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11690-screen-shot-2017-01-24-at-62459-pm.png"&gt;screen-shot-2017-01-24-at-62459-pm.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------&lt;/P&gt;&lt;P&gt;hbase(main):003:0&amp;gt; list
TABLE   

ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
   at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2314)
   at org.apache.hadoop.hbase.master.MasterRpcServices.getTableDescriptors(MasterRpcServices.java:853)
   at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:53136)
   at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2114)
   at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:101)
   at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
   at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
   at java.lang.Thread.run(Thread.java:745)

Here is some help for this command:
List all tables in hbase. Optional regular expression parameter could
be used to filter the output. Examples:

  hbase&amp;gt; list
  hbase&amp;gt; list 'abc.*'
  hbase&amp;gt; list 'ns:abc.*'
  hbase&amp;gt; list 'ns:.*'&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:27:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145502#M52457</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-25T10:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145503#M52458</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/12975/mpillai.html"&gt;@Mahesh M. Pillai&lt;/A&gt;, &lt;A href="https://community.hortonworks.com/users/10649/svenkat.html"&gt;@svenkat&lt;/A&gt; - any ideas on this ?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:28:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145503#M52458</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-25T10:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145504#M52459</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Did you try clearing up your zookeeper directory? Your zookeeper directory is hbase.zookeeper.property.datadir (in your hbase-site.xml). Login to zookeeper cli and run rmr /path. Make sure both hbase and zookeeper are shutdown.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:39:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145504#M52459</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2017-01-25T10:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145505#M52460</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; - somehow i don't see the property - hbase.zookeeper.property.datadir in file hbase-site.xml&lt;/P&gt;&lt;P&gt;attaching the file - hbase-site.xml (location - /etc/hbase/conf/hbase-site.xml)&lt;/P&gt;&lt;P&gt;any ideas ? i'm on the HDP 2.4 sandbox.&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11721-hbase-site.xml"&gt;hbase-site.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:36:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145505#M52460</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-25T14:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145506#M52461</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt;&lt;P&gt;Here is what I would suggest. run zookeeper cli by running zkcli.sh (probably at following location). Then do "ls /" to find znodes. I think you should see a path for hbase which should be /hbase. If not then probably similar. Then just run rmr &amp;lt;path&amp;gt; for example rmr /hbase.&lt;/P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;/usr/hdp/current/zookeeper-client/bin/zkCli.sh -server localhost:2181 -&amp;gt;assuming zookeeper is local&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 25 Jan 2017 15:15:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145506#M52461</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2017-01-25T15:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145507#M52462</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; - &lt;/P&gt;&lt;P&gt;thanks, the znode corresponding to HBase is /hbase-unsecure, and i logged on &amp;amp; cleared  zookeeper /hbase-unsecure.&lt;/P&gt;&lt;P&gt;Then, restarted HBase, however the Region Server is shutting down .. attaching the log file &amp;amp; hbase-site.xml.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11763-hbase-regionserver-logs.txt"&gt;hbase-regionserver-logs.txt
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11763-hbase-regionserver-logs.txt"&gt;&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11764-hbase-sitexml.txt"&gt;hbase-sitexml.txt&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Error snippet shown below, any ideas on this ?&lt;/P&gt;&lt;P&gt;------------------------------&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11763-hbase-regionserver-logs.txt"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2017-01-25 21:22:57,337 INFO  [RpcServer.responder] ipc.RpcServer: RpcServer.responder: stopping
2017-01-25 21:22:57,417 WARN  [RS_OPEN_META-sandbox:16020-0] ipc.Client: interrupted waiting to send rpc request to server
java.lang.InterruptedException
   at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:400)
   at java.util.concurrent.FutureTask.get(FutureTask.java:187)
   at org.apache.hadoop.ipc.Client$Connection.sendRpcRequest(Client.java:1057)
   at org.apache.hadoop.ipc.Client.call(Client.java:1400)
   at org.apache.hadoop.ipc.Client.call(Client.java:1358)
   at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
   at com.sun.proxy.$Proxy15.getFileInfo(Unknown Source)
   at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:771)
   at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:252)
   at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:104)
   at com.sun.proxy.$Proxy16.getFileInfo(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.apache.hadoop.hbase.fs.HFileSystem$1.invoke(HFileSystem.java:279)
   at com.sun.proxy.$Proxy17.getFileInfo(Unknown Source)
   at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:2116)
   at org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1315)
   at org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1311)
   at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
   at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1311)
   at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:421)
   at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1424)
   at org.apache.hadoop.fs.FileSystem.createNewFile(FileSystem.java:1149)
   at org.apache.hadoop.hbase.wal.WALSplitter.writeRegionSequenceIdFile(WALSplitter.java:716)
   at org.apache.hadoop.hbase.regionserver.HRegion.initializeRegionInternals(HRegion.java:860)
   at org.apache.hadoop.hbase.regionserver.HRegion.initialize(HRegion.java:794)
   at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6328)
   at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6289)
   at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6260)
   at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6216)
   at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6167)
   at org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.openRegion(OpenRegionHandler.java:362)
   at org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.process(OpenRegionHandler.java:129)
   at org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:128)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)
2017-01-25 21:22:57,418 ERROR [RS_OPEN_META-sandbox:16020-0] handler.OpenRegionHandler: Failed open of region=hbase:meta,,1.1588230740, starting to roll back the global memstore size.
java.io.IOException: java.lang.InterruptedException
   at org.apache.hadoop.ipc.Client.call(Client.java:1406)
   at org.apache.hadoop.ipc.Client.call(Client.java:1358)
   at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufR&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11763-hbase-regionserver-logs.txt"&gt;
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11763-hbase-regionserver-logs.txt"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 05:48:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145507#M52462</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-26T05:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145508#M52463</link>
      <description>&lt;P&gt;can you please share the hbase-master server logs? first start the master and then start region servers. When you run the same zkcli ls / command, do you see /hbase-unsecure back? You should because master should recreate this znode and everything under. It might take a while so start master, give it some time. check /hbase-unsecure exists and also check the subfolders. see following link. does the structure in your /hbase-unsecure matches what's explained in the link below?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/73627/hbase-zookeeper-znodes-explained.html" target="_blank"&gt;https://community.hortonworks.com/articles/73627/hbase-zookeeper-znodes-explained.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 11:01:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145508#M52463</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2017-01-26T11:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145509#M52464</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11779-hbase-masterlog.txt"&gt;hbase-masterlog.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; - seems the Hbase master is not starting now, attached is the log file. &lt;/P&gt;&lt;P&gt;Any ideas ? &lt;/P&gt;&lt;P&gt;Pls note - This cluster is not kerberized.&lt;/P&gt;&lt;P&gt;----------------------------------------&lt;/P&gt;&lt;P&gt;2017-01-26 07:06:47,104 INFO  [master/sandbox.hortonworks.com/10.0.2.15:16000] client.ZooKeeperRegistry: ClusterId read in ZooKeeper is null
2017-01-26 07:06:47,455 FATAL [sandbox:16000.activeMasterManager] master.HMaster: Failed to become active master
java.net.ConnectException: Connection refused
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
   at java.net.Socket.connect(Socket.java:579)
   at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
   at sun.net.www.http.HttpClient.&amp;lt;init&amp;gt;(HttpClient.java:211)
   at sun.net.www.http.HttpClient.New(HttpClient.java:308)
   at sun.net.www.http.HttpClient.New(HttpClient.java:326)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:998)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:934)
   at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:852)
   at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:190)
   at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.authenticate(DelegationTokenAuthenticator.java:128)
   at org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:215)
   at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.openConnection(DelegationTokenAuthenticatedURL.java:322)
   at org.apache.hadoop.crypto.key.kms.KMSClientProvider$1.run(KMSClientProvider.java:483)
   at org.apache.hadoop.crypto.key.kms.KMSClientProvider$1.run(KMSClientProvider.java:478)
   at java.security.AccessController.doPrivileged(Native Method)
   at javax.security.auth.Subject.doAs(Subject.java:415)
   at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
   at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createConnection(KMSClientProvider.java:478)
   at org.apache.hadoop.crypto.key.kms.KMSClientProvider.decryptEncryptedKey(KMSClientProvider.java:776)
   at org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.decryptEncryptedKey(KeyProviderCryptoExtension.java:388)
   at org.apache.hadoop.hdfs.DFSClient.decryptEncryptedDataEncryptionKey(DFSClient.java:1395)
   at org.apache.hadoop.hdfs.DFSClient.createWrappedInputStream(DFSClient.java:1465)
   at org.apache.hadoop.hdfs.DistributedFileSystem$3.doCall(DistributedFileSystem.java:305)
   at org.apache.hadoop.hdfs.DistributedFileSystem$3.doCall(DistributedFileSystem.java:299)
   at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
   at org.apache.hadoop.hdfs.DistributedFileSystem.open(DistributedFileSystem.java:299)
   at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:767)
   at org.apache.hadoop.hbase.util.FSUtils.getVersion(FSUtils.java:571)
   at org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:656)
   at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:455)
   at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:146)
   at org.apache.hadoop.hbase.master.MasterFileSystem.&amp;lt;init&amp;gt;(MasterFileSystem.java:126)
   at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:667)
   at org.apache.hadoop.hbase.master.HMaster.access$500(HMaster.java:191)
   at org.apache.hadoop.hbase.master.HMaster$1.run(HMaster.java:1783)
   at java.lang.Thread.run(Thread.java:745)
2017-01-26 07:06:47,467 FATAL [sandbox:16000.activeMasterManager] master.HMaster: Unhandled exception. Starting shutdown.
java.net.ConnectException: Connection refused
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
   at java.net.Socket.connect(Socket.java:579)
   at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
   at sun.net.www.http.HttpClient.&amp;lt;init&amp;gt;(HttpClient.java:211)
   at sun.net.www.http.HttpClient.New(HttpClient.java:308)
   at sun.net.www.http.HttpClient.New(HttpClient.java:326)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:998)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:934)
   at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:852)
   at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:190)
   at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.authenticate(DelegationTokenAuthenticator.java:128)
   at org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:215)
   at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.openConnection(DelegationTokenAuthenticatedURL.java:322)
   at org.apache.hadoop.crypto.key.kms.KMSClientProvider$1.run(KMSClientProvider.java:483)
   at org.apache.hadoop.crypto.key.kms.KMSClientProvider$1.run(KMSClientProvider.java:478)
   at java.security.AccessController.doPrivileged(Native Method)
   at javax.security.auth.Subject.doAs(Subject.java:415)
   at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
   at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createConnection(KMSClientProvider.java:478)
   at org.apache.hadoop.crypto.key.kms.KMSClientProvider.decryptEncryptedKey(KMSClientProvider.java:776)
   at org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.decryptEncryptedKey(KeyProviderCryptoExtension.java:388)
   at org.apache.hadoop.hdfs.DFSClient.decryptEncryptedDataEncryptionKey(DFSClient.java:1395&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 15:13:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145509#M52464</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-26T15:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145510#M52465</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I am assuming you stopped when you cleaned up zookeeper and restarted after it. For now, shut down your HBase. We need to look into zookeeper. Can you please share zookeeper logs (/var/log/zookeeper/)?&lt;/P&gt;&lt;P&gt;Since, this is sandbox, do you have any data there?&lt;/P&gt;&lt;P&gt;Can you try running "zookeeper-client" and share what your output is?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 02:24:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145510#M52465</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2017-01-27T02:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145511#M52466</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt;&lt;/P&gt;&lt;P&gt; - attaching the zookeeper log, &amp;amp; the hbase master log...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11807-zookeeper-zookeeper-server-sandboxhortonworkscomou.txt"&gt;zookeeper-zookeeper-server-sandboxhortonworkscomou.txt
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11807-zookeeper-zookeeper-server-sandboxhortonworkscomou.txt"&gt;&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11808-hbase-masterlog.txt"&gt;hbase-masterlog.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;also, no data as yet in the sandbox (in the new encrypted location), also, cleaned up and restarted zookeeper multiple times.&lt;/P&gt;&lt;P&gt;Pls note - If i revert back to the original unencrpted location &amp;amp; restart Hbase, it starts working fine. &lt;/P&gt;&lt;P&gt;This is what i see on running zookeeper-client -&amp;gt;&lt;/P&gt;&lt;P&gt;Command -&amp;gt; &lt;/P&gt;&lt;P&gt;/usr/hdp/current/zookeeper-client/bin/zkCli.sh -server sandbox.hortonworks.com:2181&lt;/P&gt;&lt;P&gt;[zk: sandbox.hortonworks.com:2181(CONNECTED) 4] ls / &lt;/P&gt;&lt;P&gt;[clusterstate.json, consumers, hiveserver2, storm, rmstore, controller_epoch, configs, isr_change_notification, admin, zookeeper, aliases.json, config, hbase-unsecure, registry, templeton-hadoop, live_nodes, overseer, overseer_elect, collections, brokers]&lt;/P&gt;&lt;P&gt;[zk: 127.0.0.1:2181(CONNECTED) 16] ls /hbase-unsecure &lt;/P&gt;&lt;P&gt;[recovering-regions, splitWAL, rs, backup-masters, region-in-transition, draining, table, table-lock]&lt;/P&gt;&lt;P&gt;...  so On starting hbase master, seems some of the znodes under /hbase-unsecure are not getting created, including /hbase-unsecure/master&lt;/P&gt;&lt;P&gt;what needs to be done for this ?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 05:24:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145511#M52466</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-27T05:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145512#M52467</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/79620/hdfs-encryption-zone-hbase-shutting-down.html#"&gt;@Karan Alang&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Something is missing. Your HMaster log is pointing to following location but &lt;/P&gt;&lt;PRE&gt;hbase.rootdir=hdfs://sandbox.hortonworks.com:8020/encrypt_hbase2/hbase/data&lt;/PRE&gt;&lt;P&gt;your hbase-site.xml points to following&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;hbase.rootdir&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;hdfs://sandbox.hortonworks.com:8020/encrypt_hbase1/hbase/data&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
    &lt;/PRE&gt;&lt;P&gt;Let's try this. shut down everything.&lt;/P&gt;&lt;PRE&gt;hadoop fs -rm -r /encrypt_hbase1/hbase/data/* //should have no affect as this should be empty
echo "rmr /hbase-unsecure" | zookeeper-client // this should cleanup everything in zookeeper.&lt;/PRE&gt;&lt;P&gt;Then only start zookeeper. Make sure it's green in Ambari. Then start only HMaster and no need to restart region servers until HMaster is successfully started.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 06:22:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145512#M52467</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2017-01-27T06:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145513#M52468</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; - i created new encryption zone, /encrypt_hbase2/hbase to re-test it.&lt;/P&gt;&lt;P&gt;The current hbase-site.xml also points to new encryption zone -&amp;gt; /encrypt_hbase2/hbase&lt;/P&gt;&lt;P&gt;sorry, forgot to mention that earlier.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 06:25:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145513#M52468</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-27T06:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145514#M52469</link>
      <description>&lt;P&gt;but after you did this, did you refresh the zookeeper?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 06:34:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145514#M52469</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2017-01-27T06:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145515#M52470</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; - yes, i did ..&lt;/P&gt;&lt;P&gt;Infact, just did a redo .. 1) rmr /hbase-unsecure 2) restarted zookeeper 3) restarted hbase master&lt;/P&gt;&lt;P&gt;if you see the highlighted portion in hbase master log - seems it is trying to look for &lt;EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;/hbase-unsecure/rs/sandbox.hortonworks.com,16000,1485470635621 already deleted, retry=false&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;which seems to be not getting created ?&lt;/P&gt;&lt;P&gt;Zookeeper client -&amp;gt;&lt;/P&gt;&lt;P&gt;[zk: sandbox.hortonworks.com:2181(CONNECTED) 3] ls /hbase-unsecure 
[recovering-regions, splitWAL, rs, backup-masters, region-in-transition, draining, table, table-lock]
[zk: sandbox.hortonworks.com:2181(CONNECTED) 4] ls /hbase-unsecure/rs
[]&lt;/P&gt;&lt;P&gt;HBase Master  logs -&amp;gt; &lt;/P&gt;&lt;P&gt;-----------------------------------------------&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# tail -f /var/log/hbase/hbase-hbase-master-sandbox.hortonworks.com.log
2017-01-26 22:44:01,359 INFO  [master/sandbox.hortonworks.com/10.0.2.15:16000-EventThread] zookeeper.ClientCnxn: EventThread shut down
2017-01-26 22:44:01,359 INFO  [master/sandbox.hortonworks.com/10.0.2.15:16000] zookeeper.ZooKeeper: Session: 0x159dcf27e800001 closed
2017-01-26 22:44:01,370 INFO  [master/sandbox.hortonworks.com/10.0.2.15:16000] regionserver.HRegionServer: stopping server sandbox.hortonworks.com,16000,1485470635621; all regions closed.
2017-01-26 22:44:01,371 INFO  [master/sandbox.hortonworks.com/10.0.2.15:16000] hbase.ChoreService: Chore service for: sandbox.hortonworks.com,16000,1485470635621 had [] on shutdown
&lt;EM&gt;&lt;STRONG&gt;2017-01-26 22:44:01,379 INFO  [master/sandbox.hortonworks.com/10.0.2.15:16000] ipc.RpcServer: Stopping server on 16000
2017-01-26 22:44:01,382 INFO  [master/sandbox.hortonworks.com/10.0.2.15:16000] zookeeper.RecoverableZooKeeper: Node /hbase-unsecure/rs/sandbox.hortonworks.com,16000,1485470635621 already deleted, retry=false&lt;/STRONG&gt;&lt;/EM&gt;
2017-01-26 22:44:01,384 INFO  [main-EventThread] zookeeper.ClientCnxn: EventThread shut down
2017-01-26 22:44:01,385 INFO  [master/sandbox.hortonworks.com/10.0.2.15:16000] zookeeper.ZooKeeper: Session: 0x159dcf27e800000 closed
2017-01-26 22:44:01,385 INFO  [master/sandbox.hortonworks.com/10.0.2.15:16000] regionserver.HRegionServer: stopping server sandbox.hortonworks.com,16000,1485470635621; zookeeper connection closed.
2017-01-26 22:44:01,385 INFO  [master/sandbox.hortonworks.com/10.0.2.15:16000] regionserver.HRegionServer: master/sandbox.hortonworks.com/10.0.2.15:16000 exiting&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 06:48:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145515#M52470</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-27T06:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145516#M52471</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; - &lt;/P&gt;&lt;P&gt;Appreciate your help in this. .. finally figured out the cause of the issue.&lt;/P&gt;&lt;P&gt;I was trying to use Ranger to restrict access to tables created in Encryption Zone, and in the process had removed access to user 'hbase'  - to the encrypted HDFS location, and the key.&lt;/P&gt;&lt;P&gt;This was causing the issue in starting up HBase... I've added back the permisson to the HDFS location &amp;amp; the key, and am able to startup HBase, create &amp;amp; access tables.&lt;/P&gt;&lt;P&gt;However, one more issue -&lt;/P&gt;&lt;P&gt;How do i restrict access to the table created (using Ranger)&lt;/P&gt;&lt;P&gt;Here is what i did - &lt;/P&gt;&lt;P&gt;1) Removed Global access to Hbase tables 2) Gave access to table created - 'emp'&lt;/P&gt;&lt;P&gt;However, now i'm not able to see the table created.&lt;/P&gt;&lt;P&gt;Any ideas on how to achieve this ?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 08:52:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145516#M52471</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-27T08:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Encryption Zone - HBase shutting down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145517#M52472</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi - 
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;i had a to do a - su hbase, and then launch hbase shell .. else the user root was trying to access the hbase table.&lt;/P&gt;&lt;P&gt;i'm able to create &amp;amp; access the table now. Thnx.
&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 09:07:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Encryption-Zone-HBase-shutting-down/m-p/145517#M52472</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-27T09:07:27Z</dc:date>
    </item>
  </channel>
</rss>

