Phoenix:5.0

Flink:1.9


Phoenix设置:

<property>

    <name>phoenix.schema.isNamespaceMappingEnabled</name>

    <value>true</value>

</property>

Flink 通过jdbc sink写入phoenix时报错:

Caused by: org.apache.phoenix.schema.NewerSchemaAlreadyExistsException: ERROR 721 (42M04): Schema with given name already exists schemaName=SYSTEM

Flink写入Phoenix报错:Schema with given name already exists schemaName=SYSTEM

解决:

修改Phoenix代码:https://github.com/apache/phoenix/blob/v5.0.0-alpha-HBase-2.0/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java

注掉:

case NEWER_SCHEMA_FOUND:    

        throw new NewerSchemaAlreadyExistsException(schema.getSchemaName())

Flink写入Phoenix报错:Schema with given name already exists schemaName=SYSTEM

重新打包编译,使用新的phoenix-core-5.0.0-alpha-HBase-2.0.jar连接phoenix

相关文章:

  • 2021-05-19
  • 2021-10-27
  • 2022-01-14
  • 2021-07-09
  • 2021-06-02
  • 2021-06-28
  • 2022-12-23
  • 2021-06-04
猜你喜欢
  • 2021-06-22
  • 2021-04-26
  • 2022-12-23
  • 2021-08-27
  • 2021-10-10
  • 2021-12-20
相关资源
相似解决方案