<?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: Recreate SYSTEM tables Hbase in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220537#M182422</link>
    <description>&lt;P&gt;I was on the edge with time, so I created Phoenix server on the other node and he created all SYSTEM tables he needed. &lt;BR /&gt;On the other side, I haven't knew for that &lt;STRONG&gt;.py &lt;/STRONG&gt;file. Does he really creates &lt;STRONG&gt;SYSTEM&lt;/STRONG&gt; files? I don't want to run the same file because now its all working, or if I run it nothing will happen? If so, I can mark your answer as &lt;STRONG&gt;accepted&lt;/STRONG&gt;. &lt;BR /&gt;&lt;BR /&gt;Also, thank you for your time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2017 21:15:48 GMT</pubDate>
    <dc:creator>majnam</dc:creator>
    <dc:date>2017-10-16T21:15:48Z</dc:date>
    <item>
      <title>Recreate SYSTEM tables Hbase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220532#M182417</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;I'm trying to recreate my SYSTEM tables since I deleted them from HDFS. So I cleaned everyhing from HDFS /apps/hbase + I did&lt;/P&gt;&lt;PRE&gt;$ hbase zkCli clean -cleanAll&lt;/PRE&gt;&lt;P&gt;+ I delete everyhing from Zookeeper in &lt;STRONG&gt;/hbase-unsecure and afterwards start Hbase master.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I tried to query one new created table in Phoenix I got this&lt;/P&gt;&lt;PRE&gt;org.apache.phoenix.exception.PhoenixIOException: Table 'SYSTEM.CATALOG' was not found, got: AFM_49_CLICKS_ANTIFRAUDD.&lt;/PRE&gt;&lt;P&gt;In my zookeeper I have this: &lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;$ ls /hbase-unsecure/table
[hbase:meta, hbase:namespace, AFM_49_CLICKS_ANTIFRAUDD]&lt;/PRE&gt;&lt;P&gt;So I don't know how to recreate all of the SYSTEM tables in my HBASE. I tried many things, with &lt;STRONG&gt;hbck options -repair, -fix/fixAssignments and many others, &lt;/STRONG&gt;but nothing really happend.&lt;/P&gt;&lt;P&gt;Can someone help me how to recreate this tables? Is that even possible? How to continue using Phoenix?&lt;BR /&gt;Please don't suggest me to delete znode from zookeeper and etc because I tried everyhing and nothing is creating SYSTEM tables on HDFS.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2017 21:23:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220532#M182417</guid>
      <dc:creator>majnam</dc:creator>
      <dc:date>2017-10-15T21:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate SYSTEM tables Hbase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220533#M182418</link>
      <description>&lt;P&gt;Which version of HDP are you using ?&lt;/P&gt;&lt;P&gt;Can you post the full stack trace ?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 01:20:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220533#M182418</guid>
      <dc:creator>tyu</dc:creator>
      <dc:date>2017-10-16T01:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate SYSTEM tables Hbase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220534#M182419</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/532/tyu.html" nodeid="532"&gt;@Ted Yu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ng HDP2.6.0. &lt;BR /&gt;So, when type "list" in shell or zeppelin I'm getting &lt;STRONG&gt;ZERO tables &lt;/STRONG&gt;as a result. &lt;BR /&gt;When I try to create table I'm getting this: &lt;/P&gt;&lt;PRE&gt;org.apache.phoenix.exception.PhoenixIOException: Table 'SYSTEM.CATALOG' was not found, got: AFM_49_CLICKS_ANTIFRAUDD.
	at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:111)
	at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1303)
	at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1268)
	at org.apache.phoenix.query.ConnectionQueryServicesImpl.createTable(ConnectionQueryServicesImpl.java:1464)
	at org.apache.phoenix.schema.MetaDataClient.createTableInternal(MetaDataClient.java:2190)
	at org.apache.phoenix.schema.MetaDataClient.createTable(MetaDataClient.java:872)
	at org.apache.phoenix.compile.CreateTableCompiler$2.execute(CreateTableCompiler.java:194)
	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:343)
	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:331)
	at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
	at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:329)
	at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1440)
	at org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291)
	at org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291)
	at org.apache.zeppelin.jdbc.JDBCInterpreter.executeSql(JDBCInterpreter.java:580)
	at org.apache.zeppelin.jdbc.JDBCInterpreter.interpret(JDBCInterpreter.java:692)
	at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:94)
	at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:489)
	at org.apache.zeppelin.scheduler.Job.run(Job.java:175)
	at org.apache.zeppelin.scheduler.ParallelScheduler$JobRunner.run(ParallelScheduler.java:162)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.hadoop.hbase.TableNotFoundException: Table 'SYSTEM.CATALOG' was not found, got: AFM_49_CLICKS_ANTIFRAUDD1.
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegionInMeta(ConnectionManager.java:1284)
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1165)
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1149)
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1106)
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.getRegionLocation(ConnectionManager.java:941)
	at org.apache.hadoop.hbase.client.HRegionLocator.getRegionLocation(HRegionLocator.java:83)
	at org.apache.hadoop.hbase.client.HTable.getRegionLocation(HTable.java:504)
	at org.apache.hadoop.hbase.client.HTable.getKeysAndRegionsInRange(HTable.java:720)
	at org.apache.hadoop.hbase.client.HTable.getKeysAndRegionsInRange(HTable.java:690)
	at org.apache.hadoop.hbase.client.HTable.getStartKeysInRange(HTable.java:1757)
	at org.apache.hadoop.hbase.client.HTable.coprocessorService(HTable.java:1712)
	at org.apache.hadoop.hbase.client.HTable.coprocessorService(HTable.java:1692)
	at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1286)
	... 25 more&lt;/PRE&gt;&lt;P&gt;The same table gets created, because I when I "list" its there but its not in SYSTEM.CATALOG since there is no such table in HBase. &lt;/P&gt;&lt;P&gt;When I try to make SELECT query on the same table, this is what I'm getting:&lt;/P&gt;&lt;PRE&gt;org.apache.phoenix.exception.PhoenixIOException: Table 'SYSTEM.CATALOG' was not found, got: AFM_49_CLICKS_ANTIFRAUDD.
	at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:111)
	at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1303)
	at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1268)
	at org.apache.phoenix.query.ConnectionQueryServicesImpl.getTable(ConnectionQueryServicesImpl.java:1493)
	at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:514)
	at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:437)
	at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:429)
	at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:425)
	at org.apache.phoenix.compile.FromCompiler$BaseColumnResolver.createTableRef(FromCompiler.java:535)
	at org.apache.phoenix.compile.FromCompiler$SingleTableColumnResolver.&amp;lt;init&amp;gt;(FromCompiler.java:365)
	at org.apache.phoenix.compile.FromCompiler.getResolverForQuery(FromCompiler.java:213)
	at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableSelectStatement.compilePlan(PhoenixStatement.java:397)
	at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableSelectStatement.compilePlan(PhoenixStatement.java:378)
	at org.apache.phoenix.jdbc.PhoenixStatement$1.call(PhoenixStatement.java:271)
	at org.apache.phoenix.jdbc.PhoenixStatement$1.call(PhoenixStatement.java:266)
	at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)

&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Oct 2017 02:06:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220534#M182419</guid>
      <dc:creator>majnam</dc:creator>
      <dc:date>2017-10-16T02:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate SYSTEM tables Hbase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220535#M182420</link>
      <description>&lt;DIV&gt;I cannot find anything, but any little thing how to recreate &lt;STRONG&gt;system&lt;/STRONG&gt; tables, can you please help me I' literally driving nuts &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Oct 2017 02:57:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220535#M182420</guid>
      <dc:creator>majnam</dc:creator>
      <dc:date>2017-10-16T02:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate SYSTEM tables Hbase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220536#M182421</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/14934/majnam.html" nodeid="14934"&gt;@Ivan Majnaric&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Did you try running sqlline.py. It will create the tables for you.&lt;/P&gt;&lt;P&gt;(/usr/hdp/current/phoenix-client/bin/sqlline.py)&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 09:12:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220536#M182421</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-16T09:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate SYSTEM tables Hbase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220537#M182422</link>
      <description>&lt;P&gt;I was on the edge with time, so I created Phoenix server on the other node and he created all SYSTEM tables he needed. &lt;BR /&gt;On the other side, I haven't knew for that &lt;STRONG&gt;.py &lt;/STRONG&gt;file. Does he really creates &lt;STRONG&gt;SYSTEM&lt;/STRONG&gt; files? I don't want to run the same file because now its all working, or if I run it nothing will happen? If so, I can mark your answer as &lt;STRONG&gt;accepted&lt;/STRONG&gt;. &lt;BR /&gt;&lt;BR /&gt;Also, thank you for your time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 21:15:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220537#M182422</guid>
      <dc:creator>majnam</dc:creator>
      <dc:date>2017-10-16T21:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate SYSTEM tables Hbase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220538#M182423</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/14934/majnam.html" nodeid="14934"&gt;@Ivan Majnaric&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;There is no harm in running sqlline.py again. Actually it is a client to query phoenix. It will create the SYSTEM tables if not already created. You can check this answer by Josh in the link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/64005/phoenix-security-and-initial-system-table-creation.html" target="_blank"&gt;https://community.hortonworks.com/questions/64005/phoenix-security-and-initial-system-table-creation.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If this works for you please mark the answer as accepted so that it will be useful for the community.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya &lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 01:49:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Recreate-SYSTEM-tables-Hbase/m-p/220538#M182423</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-17T01:49:44Z</dc:date>
    </item>
  </channel>
</rss>

