You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "ivanliu (JIRA)" <ji...@apache.org> on 2019/08/02 09:55:00 UTC

[jira] [Updated] (PHOENIX-5417) Error upgrading from 4.7.x to 4.14.x

     [ https://issues.apache.org/jira/browse/PHOENIX-5417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ivanliu updated PHOENIX-5417:
-----------------------------
    Description: 
Hi to all, 
 I've recently updated my Cloudera + Phoenix from CDH 5.7 + Phoenix 4.7.0-1.clabs_phoenix1.3.0.p0.000 to CDH 5.14.2 + Phoenix 4.14.0-cdh5.14.2.p0.3 but now I can't connect with Phoenix anymore. When I run sqlline.py I get:
  
[root@test-cassandra-01 bin]# ./phoenix-sqlline.py localhost
Setting property: [incremental, false]
Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect jdbc:phoenix:localhost none none org.apache.phoenix.jdbc.PhoenixDriver
Connecting to jdbc:phoenix:localhost
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/APACHE_PHOENIX-4.14.0-cdh5.14.2.p0.3/lib/phoenix/phoenix-4.14.0-cdh5.14.2-client.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
19/08/02 17:47:34 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
19/08/02 17:47:58 WARN iterate.BaseResultIterators: Unable to find parent table "IVAN_SECONDARY_INDEX_TEST" of table "IDX_AGE" to determine USE_STATS_FOR_PARALLELIZATION
org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Table undefined. tableName=IVAN_SECONDARY_INDEX_TEST
 at org.apache.phoenix.schema.PMetaDataImpl.getTableRef(PMetaDataImpl.java:71)
 at org.apache.phoenix.schema.PSynchronizedMetaData.getTableRef(PSynchronizedMetaData.java:89)
 at org.apache.phoenix.jdbc.PhoenixConnection.getTable(PhoenixConnection.java:581)
 at org.apache.phoenix.mapreduce.util.PhoenixConfigurationUtil.getStatsForParallelizationProp(PhoenixConfigurationUtil.java:646)
 at org.apache.phoenix.iterate.BaseResultIterators.<init>(BaseResultIterators.java:504)
 at org.apache.phoenix.iterate.ParallelIterators.<init>(ParallelIterators.java:62)
 at org.apache.phoenix.iterate.ParallelIterators.<init>(ParallelIterators.java:69)
 at org.apache.phoenix.execute.AggregatePlan.newIterator(AggregatePlan.java:271)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:364)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:217)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:212)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:207)
 at org.apache.phoenix.compile.PostDDLCompiler$2.execute(PostDDLCompiler.java:288)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.updateData(ConnectionQueryServicesImpl.java:3664)
 at org.apache.phoenix.schema.MetaDataClient.dropTable(MetaDataClient.java:2996)
 at org.apache.phoenix.schema.MetaDataClient.dropIndex(MetaDataClient.java:2865)
 at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDropIndexStatement$1.execute(PhoenixStatement.java:1234)
 at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408)
 at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391)
 at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
 at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:389)
 at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378)
 at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1825)
 at org.apache.phoenix.util.UpgradeUtil.upgradeLocalIndexes(UpgradeUtil.java:452)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(ConnectionQueryServicesImpl.java:2899)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemTables(ConnectionQueryServicesImpl.java:3050)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2584)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2491)
 at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2491)
 at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255)
 at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:150)
 at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221)
 at sqlline.DatabaseConnection.connect(DatabaseConnection.java:157)
 at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
 at sqlline.Commands.connect(Commands.java:1064)
 at sqlline.Commands.connect(Commands.java:996)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
 at sqlline.SqlLine.dispatch(SqlLine.java:809)
 at sqlline.SqlLine.initArgs(SqlLine.java:588)
 at sqlline.SqlLine.begin(SqlLine.java:661)
 at sqlline.SqlLine.start(SqlLine.java:398)
 at sqlline.SqlLine.main(SqlLine.java:291)
19/08/02 17:47:58 WARN iterate.BaseResultIterators: Unable to find parent table "IVAN_SECONDARY_INDEX_TEST" of table "IDX_AGE" to determine USE_STATS_FOR_PARALLELIZATION
org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Table undefined. tableName=IVAN_SECONDARY_INDEX_TEST
 at org.apache.phoenix.schema.PMetaDataImpl.getTableRef(PMetaDataImpl.java:71)
 at org.apache.phoenix.schema.PSynchronizedMetaData.getTableRef(PSynchronizedMetaData.java:89)
 at org.apache.phoenix.jdbc.PhoenixConnection.getTable(PhoenixConnection.java:581)
 at org.apache.phoenix.mapreduce.util.PhoenixConfigurationUtil.getStatsForParallelizationProp(PhoenixConfigurationUtil.java:646)
 at org.apache.phoenix.iterate.BaseResultIterators.<init>(BaseResultIterators.java:504)
 at org.apache.phoenix.iterate.ParallelIterators.<init>(ParallelIterators.java:62)
 at org.apache.phoenix.iterate.ParallelIterators.<init>(ParallelIterators.java:69)
 at org.apache.phoenix.execute.AggregatePlan.newIterator(AggregatePlan.java:271)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:364)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:217)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:212)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:207)
 at org.apache.phoenix.compile.PostDDLCompiler$2.execute(PostDDLCompiler.java:288)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.updateData(ConnectionQueryServicesImpl.java:3664)
 at org.apache.phoenix.schema.MetaDataClient.dropTable(MetaDataClient.java:2996)
 at org.apache.phoenix.schema.MetaDataClient.dropIndex(MetaDataClient.java:2865)
 at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDropIndexStatement$1.execute(PhoenixStatement.java:1234)
 at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408)
 at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391)
 at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
 at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:389)
 at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378)
 at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1825)
 at org.apache.phoenix.util.UpgradeUtil.upgradeLocalIndexes(UpgradeUtil.java:452)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(ConnectionQueryServicesImpl.java:2899)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemTables(ConnectionQueryServicesImpl.java:3050)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2584)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2491)
 at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2491)
 at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255)
 at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:150)
 at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221)
 at sqlline.DatabaseConnection.connect(DatabaseConnection.java:157)
 at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
 at sqlline.Commands.connect(Commands.java:1064)
 at sqlline.Commands.connect(Commands.java:996)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
 at sqlline.SqlLine.dispatch(SqlLine.java:809)
 at sqlline.SqlLine.initArgs(SqlLine.java:588)
 at sqlline.SqlLine.begin(SqlLine.java:661)
 at sqlline.SqlLine.start(SqlLine.java:398)
 at sqlline.SqlLine.main(SqlLine.java:291)
19/08/02 17:47:58 WARN query.ConnectionQueryServicesImpl: Starting restore of SYSTEM.CATALOG using snapshot SNAPSHOT_SYSTEM.CATALOG_4.7.x_TO_4.14.0_20190802174735 because upgrade failed
19/08/02 17:48:01 WARN query.ConnectionQueryServicesImpl: Successfully restored SYSTEM.CATALOG using snapshot SNAPSHOT_SYSTEM.CATALOG_4.7.x_TO_4.14.0_20190802174735
19/08/02 17:48:05 WARN query.ConnectionQueryServicesImpl: Successfully restored and enabled SYSTEM.CATALOG using snapshot SNAPSHOT_SYSTEM.CATALOG_4.7.x_TO_4.14.0_20190802174735
Error: ERROR 504 (42703): Undefined column. columnName=IVAN_SECONDARY_INDEX_TEST.AGE (state=42703,code=504)
org.apache.phoenix.schema.ColumnNotFoundException: ERROR 504 (42703): Undefined column. columnName=IVAN_SECONDARY_INDEX_TEST.AGE
 at org.apache.phoenix.schema.PTableImpl.getColumnForColumnName(PTableImpl.java:828)
 at org.apache.phoenix.compile.FromCompiler$SingleTableColumnResolver.resolveColumn(FromCompiler.java:475)
 at org.apache.phoenix.compile.ExpressionCompiler.resolveColumn(ExpressionCompiler.java:372)
 at org.apache.phoenix.compile.IndexExpressionCompiler.resolveColumn(IndexExpressionCompiler.java:39)
 at org.apache.phoenix.compile.ExpressionCompiler.visit(ExpressionCompiler.java:408)
 at org.apache.phoenix.compile.ExpressionCompiler.visit(ExpressionCompiler.java:146)
 at org.apache.phoenix.parse.ColumnParseNode.accept(ColumnParseNode.java:56)
 at org.apache.phoenix.schema.MetaDataClient.createIndex(MetaDataClient.java:1580)
 at org.apache.phoenix.compile.CreateIndexCompiler$1.execute(CreateIndexCompiler.java:85)
 at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408)
 at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391)
 at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
 at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:389)
 at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378)
 at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1825)
 at org.apache.phoenix.util.UpgradeUtil.upgradeLocalIndexes(UpgradeUtil.java:456)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(ConnectionQueryServicesImpl.java:2899)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemTables(ConnectionQueryServicesImpl.java:3050)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2584)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2491)
 at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2491)
 at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255)
 at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:150)
 at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221)
 at sqlline.DatabaseConnection.connect(DatabaseConnection.java:157)
 at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
 at sqlline.Commands.connect(Commands.java:1064)
 at sqlline.Commands.connect(Commands.java:996)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
 at sqlline.SqlLine.dispatch(SqlLine.java:809)
 at sqlline.SqlLine.initArgs(SqlLine.java:588)
 at sqlline.SqlLine.begin(SqlLine.java:661)
 at sqlline.SqlLine.start(SqlLine.java:398)
 at sqlline.SqlLine.main(SqlLine.java:291)
sqlline version 1.2.0
  
 How can I repair it? 
  

  was:
Hi to all, 
I've recently updated my Cloudera + Phoenix from CDH 5.7 + Phoenix 4.7.0-1.clabs_phoenix1.3.0.p0.000 to CDH 5.14.2 + Phoenix 4.14.0-cdh5.14.2.p0.3 but now I can't connect with Phoenix anymore. When I run sqlline.py I get:
 
[root@test-cassandra-01 bin]# ./sqlline.py 
Setting property: [incremental, false]
Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect jdbc:phoenix: none none org.apache.phoenix.jdbc.PhoenixDriver
Connecting to jdbc:phoenix:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/APACHE_PHOENIX-4.14.0-cdh5.14.2.p0.3/lib/phoenix/phoenix-4.14.0-cdh5.14.2-client.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
19/07/30 15:41:32 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
19/07/30 15:41:56 WARN iterate.BaseResultIterators: Unable to find parent table "IVAN_SECONDARY_INDEX_TEST" of table "IVANLIU_TEST_AGE_R" to determine USE_STATS_FOR_PARALLELIZATION
org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Table undefined. tableName=IVAN_SECONDARY_INDEX_TEST
 at org.apache.phoenix.schema.PMetaDataImpl.getTableRef(PMetaDataImpl.java:71)
 at org.apache.phoenix.schema.PSynchronizedMetaData.getTableRef(PSynchronizedMetaData.java:89)
 at org.apache.phoenix.jdbc.PhoenixConnection.getTable(PhoenixConnection.java:581)
 at org.apache.phoenix.mapreduce.util.PhoenixConfigurationUtil.getStatsForParallelizationProp(PhoenixConfigurationUtil.java:646)
 at org.apache.phoenix.iterate.BaseResultIterators.<init>(BaseResultIterators.java:504)
 at org.apache.phoenix.iterate.ParallelIterators.<init>(ParallelIterators.java:62)
 at org.apache.phoenix.iterate.ParallelIterators.<init>(ParallelIterators.java:69)
 at org.apache.phoenix.execute.AggregatePlan.newIterator(AggregatePlan.java:271)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:364)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:217)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:212)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:207)
 at org.apache.phoenix.compile.PostDDLCompiler$2.execute(PostDDLCompiler.java:288)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.updateData(ConnectionQueryServicesImpl.java:3664)
 at org.apache.phoenix.schema.MetaDataClient.dropTable(MetaDataClient.java:2996)
 at org.apache.phoenix.schema.MetaDataClient.dropIndex(MetaDataClient.java:2865)
 at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDropIndexStatement$1.execute(PhoenixStatement.java:1234)
 at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408)
 at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391)
 at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
 at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:389)
 at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378)
 at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1825)
 at org.apache.phoenix.util.UpgradeUtil.upgradeLocalIndexes(UpgradeUtil.java:452)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(ConnectionQueryServicesImpl.java:2899)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemTables(ConnectionQueryServicesImpl.java:3050)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2584)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2491)
 at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2491)
 at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255)
 at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:150)
 at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221)
 at sqlline.DatabaseConnection.connect(DatabaseConnection.java:157)
 at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
 at sqlline.Commands.connect(Commands.java:1064)
 at sqlline.Commands.connect(Commands.java:996)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
 at sqlline.SqlLine.dispatch(SqlLine.java:809)
 at sqlline.SqlLine.initArgs(SqlLine.java:588)
 at sqlline.SqlLine.begin(SqlLine.java:661)
 at sqlline.SqlLine.start(SqlLine.java:398)
 at sqlline.SqlLine.main(SqlLine.java:291)
19/07/30 15:41:56 WARN iterate.BaseResultIterators: Unable to find parent table "IVAN_SECONDARY_INDEX_TEST" of table "IVANLIU_TEST_AGE_R" to determine USE_STATS_FOR_PARALLELIZATION
org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Table undefined. tableName=IVAN_SECONDARY_INDEX_TEST
 at org.apache.phoenix.schema.PMetaDataImpl.getTableRef(PMetaDataImpl.java:71)
 at org.apache.phoenix.schema.PSynchronizedMetaData.getTableRef(PSynchronizedMetaData.java:89)
 at org.apache.phoenix.jdbc.PhoenixConnection.getTable(PhoenixConnection.java:581)
 at org.apache.phoenix.mapreduce.util.PhoenixConfigurationUtil.getStatsForParallelizationProp(PhoenixConfigurationUtil.java:646)
 at org.apache.phoenix.iterate.BaseResultIterators.<init>(BaseResultIterators.java:504)
 at org.apache.phoenix.iterate.ParallelIterators.<init>(ParallelIterators.java:62)
 at org.apache.phoenix.iterate.ParallelIterators.<init>(ParallelIterators.java:69)
 at org.apache.phoenix.execute.AggregatePlan.newIterator(AggregatePlan.java:271)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:364)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:217)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:212)
 at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:207)
 at org.apache.phoenix.compile.PostDDLCompiler$2.execute(PostDDLCompiler.java:288)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.updateData(ConnectionQueryServicesImpl.java:3664)
 at org.apache.phoenix.schema.MetaDataClient.dropTable(MetaDataClient.java:2996)
 at org.apache.phoenix.schema.MetaDataClient.dropIndex(MetaDataClient.java:2865)
 at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDropIndexStatement$1.execute(PhoenixStatement.java:1234)
 at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408)
 at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391)
 at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
 at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:389)
 at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378)
 at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1825)
 at org.apache.phoenix.util.UpgradeUtil.upgradeLocalIndexes(UpgradeUtil.java:452)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(ConnectionQueryServicesImpl.java:2899)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemTables(ConnectionQueryServicesImpl.java:3050)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2584)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2491)
 at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2491)
 at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255)
 at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:150)
 at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221)
 at sqlline.DatabaseConnection.connect(DatabaseConnection.java:157)
 at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
 at sqlline.Commands.connect(Commands.java:1064)
 at sqlline.Commands.connect(Commands.java:996)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
 at sqlline.SqlLine.dispatch(SqlLine.java:809)
 at sqlline.SqlLine.initArgs(SqlLine.java:588)
 at sqlline.SqlLine.begin(SqlLine.java:661)
 at sqlline.SqlLine.start(SqlLine.java:398)
 at sqlline.SqlLine.main(SqlLine.java:291)
19/07/30 15:41:56 WARN query.ConnectionQueryServicesImpl: Starting restore of SYSTEM.CATALOG using snapshot SNAPSHOT_SYSTEM.CATALOG_4.7.x_TO_4.14.0_20190730154134 because upgrade failed
19/07/30 15:41:59 WARN query.ConnectionQueryServicesImpl: Successfully restored SYSTEM.CATALOG using snapshot SNAPSHOT_SYSTEM.CATALOG_4.7.x_TO_4.14.0_20190730154134
19/07/30 15:42:04 WARN query.ConnectionQueryServicesImpl: Successfully restored and enabled SYSTEM.CATALOG using snapshot SNAPSHOT_SYSTEM.CATALOG_4.7.x_TO_4.14.0_20190730154134
Error: ERROR 504 (42703): Undefined column. columnName=IVAN_SECONDARY_INDEX_TEST.AGE (state=42703,code=504)
org.apache.phoenix.schema.ColumnNotFoundException: ERROR 504 (42703): Undefined column. columnName=IVAN_SECONDARY_INDEX_TEST.AGE
 at org.apache.phoenix.schema.PTableImpl.getColumnForColumnName(PTableImpl.java:828)
 at org.apache.phoenix.compile.FromCompiler$SingleTableColumnResolver.resolveColumn(FromCompiler.java:475)
 at org.apache.phoenix.compile.ExpressionCompiler.resolveColumn(ExpressionCompiler.java:372)
 at org.apache.phoenix.compile.IndexExpressionCompiler.resolveColumn(IndexExpressionCompiler.java:39)
 at org.apache.phoenix.compile.ExpressionCompiler.visit(ExpressionCompiler.java:408)
 at org.apache.phoenix.compile.ExpressionCompiler.visit(ExpressionCompiler.java:146)
 at org.apache.phoenix.parse.ColumnParseNode.accept(ColumnParseNode.java:56)
 at org.apache.phoenix.schema.MetaDataClient.createIndex(MetaDataClient.java:1580)
 at org.apache.phoenix.compile.CreateIndexCompiler$1.execute(CreateIndexCompiler.java:85)
 at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408)
 at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391)
 at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
 at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:389)
 at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378)
 at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1825)
 at org.apache.phoenix.util.UpgradeUtil.upgradeLocalIndexes(UpgradeUtil.java:456)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(ConnectionQueryServicesImpl.java:2899)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemTables(ConnectionQueryServicesImpl.java:3050)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2584)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2491)
 at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76)
 at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2491)
 at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255)
 at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:150)
 at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221)
 at sqlline.DatabaseConnection.connect(DatabaseConnection.java:157)
 at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
 at sqlline.Commands.connect(Commands.java:1064)
 at sqlline.Commands.connect(Commands.java:996)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
 at sqlline.SqlLine.dispatch(SqlLine.java:809)
 at sqlline.SqlLine.initArgs(SqlLine.java:588)
 at sqlline.SqlLine.begin(SqlLine.java:661)
 at sqlline.SqlLine.start(SqlLine.java:398)
 at sqlline.SqlLine.main(SqlLine.java:291)
sqlline version 1.2.0
0: jdbc:phoenix:>
 
How can I repair it? 
 


> Error upgrading from 4.7.x to 4.14.x
> ------------------------------------
>
>                 Key: PHOENIX-5417
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5417
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: ivanliu
>            Priority: Major
>
> Hi to all, 
>  I've recently updated my Cloudera + Phoenix from CDH 5.7 + Phoenix 4.7.0-1.clabs_phoenix1.3.0.p0.000 to CDH 5.14.2 + Phoenix 4.14.0-cdh5.14.2.p0.3 but now I can't connect with Phoenix anymore. When I run sqlline.py I get:
>   
> [root@test-cassandra-01 bin]# ./phoenix-sqlline.py localhost
> Setting property: [incremental, false]
> Setting property: [isolation, TRANSACTION_READ_COMMITTED]
> issuing: !connect jdbc:phoenix:localhost none none org.apache.phoenix.jdbc.PhoenixDriver
> Connecting to jdbc:phoenix:localhost
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/APACHE_PHOENIX-4.14.0-cdh5.14.2.p0.3/lib/phoenix/phoenix-4.14.0-cdh5.14.2-client.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.14.2-1.cdh5.14.2.p0.3/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
> 19/08/02 17:47:34 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
> 19/08/02 17:47:58 WARN iterate.BaseResultIterators: Unable to find parent table "IVAN_SECONDARY_INDEX_TEST" of table "IDX_AGE" to determine USE_STATS_FOR_PARALLELIZATION
> org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Table undefined. tableName=IVAN_SECONDARY_INDEX_TEST
>  at org.apache.phoenix.schema.PMetaDataImpl.getTableRef(PMetaDataImpl.java:71)
>  at org.apache.phoenix.schema.PSynchronizedMetaData.getTableRef(PSynchronizedMetaData.java:89)
>  at org.apache.phoenix.jdbc.PhoenixConnection.getTable(PhoenixConnection.java:581)
>  at org.apache.phoenix.mapreduce.util.PhoenixConfigurationUtil.getStatsForParallelizationProp(PhoenixConfigurationUtil.java:646)
>  at org.apache.phoenix.iterate.BaseResultIterators.<init>(BaseResultIterators.java:504)
>  at org.apache.phoenix.iterate.ParallelIterators.<init>(ParallelIterators.java:62)
>  at org.apache.phoenix.iterate.ParallelIterators.<init>(ParallelIterators.java:69)
>  at org.apache.phoenix.execute.AggregatePlan.newIterator(AggregatePlan.java:271)
>  at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:364)
>  at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:217)
>  at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:212)
>  at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:207)
>  at org.apache.phoenix.compile.PostDDLCompiler$2.execute(PostDDLCompiler.java:288)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl.updateData(ConnectionQueryServicesImpl.java:3664)
>  at org.apache.phoenix.schema.MetaDataClient.dropTable(MetaDataClient.java:2996)
>  at org.apache.phoenix.schema.MetaDataClient.dropIndex(MetaDataClient.java:2865)
>  at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDropIndexStatement$1.execute(PhoenixStatement.java:1234)
>  at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408)
>  at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391)
>  at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
>  at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:389)
>  at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378)
>  at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1825)
>  at org.apache.phoenix.util.UpgradeUtil.upgradeLocalIndexes(UpgradeUtil.java:452)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(ConnectionQueryServicesImpl.java:2899)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemTables(ConnectionQueryServicesImpl.java:3050)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2584)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2491)
>  at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2491)
>  at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255)
>  at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:150)
>  at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221)
>  at sqlline.DatabaseConnection.connect(DatabaseConnection.java:157)
>  at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
>  at sqlline.Commands.connect(Commands.java:1064)
>  at sqlline.Commands.connect(Commands.java:996)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
>  at sqlline.SqlLine.dispatch(SqlLine.java:809)
>  at sqlline.SqlLine.initArgs(SqlLine.java:588)
>  at sqlline.SqlLine.begin(SqlLine.java:661)
>  at sqlline.SqlLine.start(SqlLine.java:398)
>  at sqlline.SqlLine.main(SqlLine.java:291)
> 19/08/02 17:47:58 WARN iterate.BaseResultIterators: Unable to find parent table "IVAN_SECONDARY_INDEX_TEST" of table "IDX_AGE" to determine USE_STATS_FOR_PARALLELIZATION
> org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Table undefined. tableName=IVAN_SECONDARY_INDEX_TEST
>  at org.apache.phoenix.schema.PMetaDataImpl.getTableRef(PMetaDataImpl.java:71)
>  at org.apache.phoenix.schema.PSynchronizedMetaData.getTableRef(PSynchronizedMetaData.java:89)
>  at org.apache.phoenix.jdbc.PhoenixConnection.getTable(PhoenixConnection.java:581)
>  at org.apache.phoenix.mapreduce.util.PhoenixConfigurationUtil.getStatsForParallelizationProp(PhoenixConfigurationUtil.java:646)
>  at org.apache.phoenix.iterate.BaseResultIterators.<init>(BaseResultIterators.java:504)
>  at org.apache.phoenix.iterate.ParallelIterators.<init>(ParallelIterators.java:62)
>  at org.apache.phoenix.iterate.ParallelIterators.<init>(ParallelIterators.java:69)
>  at org.apache.phoenix.execute.AggregatePlan.newIterator(AggregatePlan.java:271)
>  at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:364)
>  at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:217)
>  at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:212)
>  at org.apache.phoenix.execute.BaseQueryPlan.iterator(BaseQueryPlan.java:207)
>  at org.apache.phoenix.compile.PostDDLCompiler$2.execute(PostDDLCompiler.java:288)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl.updateData(ConnectionQueryServicesImpl.java:3664)
>  at org.apache.phoenix.schema.MetaDataClient.dropTable(MetaDataClient.java:2996)
>  at org.apache.phoenix.schema.MetaDataClient.dropIndex(MetaDataClient.java:2865)
>  at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDropIndexStatement$1.execute(PhoenixStatement.java:1234)
>  at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408)
>  at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391)
>  at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
>  at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:389)
>  at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378)
>  at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1825)
>  at org.apache.phoenix.util.UpgradeUtil.upgradeLocalIndexes(UpgradeUtil.java:452)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(ConnectionQueryServicesImpl.java:2899)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemTables(ConnectionQueryServicesImpl.java:3050)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2584)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2491)
>  at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2491)
>  at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255)
>  at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:150)
>  at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221)
>  at sqlline.DatabaseConnection.connect(DatabaseConnection.java:157)
>  at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
>  at sqlline.Commands.connect(Commands.java:1064)
>  at sqlline.Commands.connect(Commands.java:996)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
>  at sqlline.SqlLine.dispatch(SqlLine.java:809)
>  at sqlline.SqlLine.initArgs(SqlLine.java:588)
>  at sqlline.SqlLine.begin(SqlLine.java:661)
>  at sqlline.SqlLine.start(SqlLine.java:398)
>  at sqlline.SqlLine.main(SqlLine.java:291)
> 19/08/02 17:47:58 WARN query.ConnectionQueryServicesImpl: Starting restore of SYSTEM.CATALOG using snapshot SNAPSHOT_SYSTEM.CATALOG_4.7.x_TO_4.14.0_20190802174735 because upgrade failed
> 19/08/02 17:48:01 WARN query.ConnectionQueryServicesImpl: Successfully restored SYSTEM.CATALOG using snapshot SNAPSHOT_SYSTEM.CATALOG_4.7.x_TO_4.14.0_20190802174735
> 19/08/02 17:48:05 WARN query.ConnectionQueryServicesImpl: Successfully restored and enabled SYSTEM.CATALOG using snapshot SNAPSHOT_SYSTEM.CATALOG_4.7.x_TO_4.14.0_20190802174735
> Error: ERROR 504 (42703): Undefined column. columnName=IVAN_SECONDARY_INDEX_TEST.AGE (state=42703,code=504)
> org.apache.phoenix.schema.ColumnNotFoundException: ERROR 504 (42703): Undefined column. columnName=IVAN_SECONDARY_INDEX_TEST.AGE
>  at org.apache.phoenix.schema.PTableImpl.getColumnForColumnName(PTableImpl.java:828)
>  at org.apache.phoenix.compile.FromCompiler$SingleTableColumnResolver.resolveColumn(FromCompiler.java:475)
>  at org.apache.phoenix.compile.ExpressionCompiler.resolveColumn(ExpressionCompiler.java:372)
>  at org.apache.phoenix.compile.IndexExpressionCompiler.resolveColumn(IndexExpressionCompiler.java:39)
>  at org.apache.phoenix.compile.ExpressionCompiler.visit(ExpressionCompiler.java:408)
>  at org.apache.phoenix.compile.ExpressionCompiler.visit(ExpressionCompiler.java:146)
>  at org.apache.phoenix.parse.ColumnParseNode.accept(ColumnParseNode.java:56)
>  at org.apache.phoenix.schema.MetaDataClient.createIndex(MetaDataClient.java:1580)
>  at org.apache.phoenix.compile.CreateIndexCompiler$1.execute(CreateIndexCompiler.java:85)
>  at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408)
>  at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391)
>  at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
>  at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:389)
>  at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378)
>  at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1825)
>  at org.apache.phoenix.util.UpgradeUtil.upgradeLocalIndexes(UpgradeUtil.java:456)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(ConnectionQueryServicesImpl.java:2899)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemTables(ConnectionQueryServicesImpl.java:3050)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2584)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:2491)
>  at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76)
>  at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2491)
>  at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255)
>  at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:150)
>  at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221)
>  at sqlline.DatabaseConnection.connect(DatabaseConnection.java:157)
>  at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
>  at sqlline.Commands.connect(Commands.java:1064)
>  at sqlline.Commands.connect(Commands.java:996)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
>  at sqlline.SqlLine.dispatch(SqlLine.java:809)
>  at sqlline.SqlLine.initArgs(SqlLine.java:588)
>  at sqlline.SqlLine.begin(SqlLine.java:661)
>  at sqlline.SqlLine.start(SqlLine.java:398)
>  at sqlline.SqlLine.main(SqlLine.java:291)
> sqlline version 1.2.0
>   
>  How can I repair it? 
>   



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)