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

Zhen Wang updated FLINK-28575:
------------------------------
    Description: 
hbase does version checks when creating configurations by default

```
  private static void checkDefaultsVersion(Configuration conf) {
    if (conf.getBoolean("hbase.defaults.for.version.skip", Boolean.FALSE)) 
return;
    String defaultsVersion = conf.get("hbase.defaults.for.version");
    String thisVersion = VersionInfo.getVersion();
    if (!thisVersion.equals(defaultsVersion)) {
      throw new RuntimeException(
        "hbase-default.xml file seems to be for an older version of HBase (" +
        defaultsVersion + "), this version is " + thisVersion);
    }
  }
```

so this prevents using connector2.2 to write to like hbase 2.4.9. however this 
restriction is not necessary. 


  was:

hbase does version checks when creating configurations by default

so this prevents using connector2.2 to write to like hbase 2.4.9. however this 
restriction is not necessary. 



> support hbase connector 2.2 to write to hbase 2.4.9
> ---------------------------------------------------
>
>                 Key: FLINK-28575
>                 URL: https://issues.apache.org/jira/browse/FLINK-28575
>             Project: Flink
>          Issue Type: Improvement
>          Components: Connectors / HBase
>            Reporter: Zhen Wang
>            Priority: Major
>
> hbase does version checks when creating configurations by default
> ```
>   private static void checkDefaultsVersion(Configuration conf) {
>     if (conf.getBoolean("hbase.defaults.for.version.skip", Boolean.FALSE)) 
> return;
>     String defaultsVersion = conf.get("hbase.defaults.for.version");
>     String thisVersion = VersionInfo.getVersion();
>     if (!thisVersion.equals(defaultsVersion)) {
>       throw new RuntimeException(
>         "hbase-default.xml file seems to be for an older version of HBase (" +
>         defaultsVersion + "), this version is " + thisVersion);
>     }
>   }
> ```
> so this prevents using connector2.2 to write to like hbase 2.4.9. however 
> this restriction is not necessary. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to