【异常】Error: ERROR 1012 (42M03): Table undefined. (state=42M03,code=1012)
1 详细异常信息
Error: ERROR 1012 (42M03): Table undefined. (state=42M03,code=1012) org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Table undefined. at org.apache.phoenix.exception.SQLExceptionCode$9.newException(SQLExceptionCode.java:222) at org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:150) at org.apache.phoenix.util.ServerUtil.parseRemoteException(ServerUtil.java:189) at org.apache.phoenix.util.ServerUtil.parseServerExceptionOrNull(ServerUtil.java:173) at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:140) at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1379) at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1343) at org.apache.phoenix.query.ConnectionQueryServicesImpl.getTable(ConnectionQueryServicesImpl.java:1560) at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:644) at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:538) at org.apache.phoenix.compile.FromCompiler$BaseColumnResolver.createTableRef(FromCompiler.java:573) at org.apache.phoenix.compile.FromCompiler$MultiTableColumnResolver.visit(FromCompiler.java:778) at org.apache.phoenix.compile.FromCompiler$MultiTableColumnResolver.visit(FromCompiler.java:736) at org.apache.phoenix.parse.NamedTableNode.accept(NamedTableNode.java:76) at org.apache.phoenix.compile.FromCompiler$MultiTableColumnResolver.visit(FromCompiler.java:771) at org.apache.phoenix.compile.FromCompiler$MultiTableColumnResolver.visit(FromCompiler.java:736) at org.apache.phoenix.parse.JoinTableNode.accept(JoinTableNode.java:81) at org.apache.phoenix.compile.FromCompiler$MultiTableColumnResolver.visit(FromCompiler.java:770) at org.apache.phoenix.compile.FromCompiler$MultiTableColumnResolver.visit(FromCompiler.java:736) at org.apache.phoenix.parse.JoinTableNode.accept(JoinTableNode.java:81) at org.apache.phoenix.compile.FromCompiler.getResolverForQuery(FromCompiler.java:231) at org.apache.phoenix.compile.FromCompiler.getResolverForQuery(FromCompiler.java:206) at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableSelectStatement.compilePlan(PhoenixStatement.java:482) at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableSelectStatement.compilePlan(PhoenixStatement.java:456) at org.apache.phoenix.jdbc.PhoenixStatement$1.call(PhoenixStatement.java:302) at org.apache.phoenix.jdbc.PhoenixStatement$1.call(PhoenixStatement.java:291) at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) at org.apache.phoenix.jdbc.PhoenixStatement.executeQuery(PhoenixStatement.java:290) at org.apache.phoenix.jdbc.PhoenixStatement.executeQuery(PhoenixStatement.java:283) at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1830) at sqlline.Commands.execute(Commands.java:822) at sqlline.Commands.sql(Commands.java:732) at sqlline.SqlLine.dispatch(SqlLine.java:813) at sqlline.SqlLine.begin(SqlLine.java:686) at sqlline.SqlLine.start(SqlLine.java:398) at sqlline.SqlLine.main(SqlLine.java:291)
2 解决方案
按照之前手动的方式 删除了二级索引,再建也建不了,删除也删除不了。各种方法都不管用
之前被建索引的表,连查询都查询不了,也是报这个错误
然后 ,再次用手动的方法删除了被建索引的表然后重建。就解决了问题
相关推荐
世樹 2020-11-11
SCNUHB 2020-11-10
bleach00 2020-11-10
FellowYourHeart 2020-10-05
momode 2020-09-11
思君夜未眠 2020-09-04
jessieHJ 2020-08-19
行吟阁 2020-08-09
表格的现在还是较为常用的一种标签,但不是用来布局,常见处理、显示表格式数据。在HTML网页中,要想创建表格,就需要使用表格相关的标签。<table> <tr> <td>单元格内的文字</td> ...
gufudhn 2020-08-09
末点 2020-08-03
nimeijian 2020-07-30
好记忆也需烂 2020-07-28
zlsdmx 2020-07-05
tomson 2020-07-05
tianqi 2020-07-05
onlykg 2020-07-04