-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Improve][Paimon] upgrade version and add fs config #8002
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ libfb303-xxx.jar | |
|
||
## Options | ||
|
||
| name | type | required | default value | Description | | ||
| name | type | required | default value | Description | | ||
|-----------------------------|--------|----------|------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| warehouse | String | Yes | - | Paimon warehouse path | | ||
| catalog_type | String | No | filesystem | Catalog type of Paimon, support filesystem and hive | | ||
|
@@ -46,6 +46,7 @@ libfb303-xxx.jar | |
| paimon.table.write-props | Map | No | - | Properties passed through to paimon table initialization, [reference](https://paimon.apache.org/docs/master/maintenance/configurations/#coreoptions). | | ||
| paimon.hadoop.conf | Map | No | - | Properties in hadoop conf | | ||
| paimon.hadoop.conf-path | String | No | - | The specified loading path for the 'core-site.xml', 'hdfs-site.xml', 'hive-site.xml' files | | ||
| paimon.fs.conf | Map | No | - | Properties when the catalog type is filesystem | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please add |
||
|
||
## Changelog | ||
You must configure the `changelog-producer=input` option to enable the changelog producer mode of the paimon table. If you use the auto-create table function of paimon sink, you can configure this property in `paimon.table.write-props`. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
<name>SeaTunnel : Connectors V2 : Paimon</name> | ||
|
||
<properties> | ||
<paimon.version>0.7.0-incubating</paimon.version> | ||
<paimon.version>0.9.0</paimon.version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<hive.version>2.3.9</hive.version> | ||
</properties> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,6 +106,12 @@ public class PaimonConfig implements Serializable { | |
.withDescription( | ||
"The specified loading path for the 'core-site.xml', 'hdfs-site.xml', 'hive-site.xml' files"); | ||
|
||
public static final Option<Map<String, String>> FS_CONF = | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the purpose of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, current connector don't write to s3/oss, I will add some examples There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Think you @yoogoc . The other filesystems are available as plugins in paimon, so Paimon-bundle has no s3 or oss dependencies. Other than that, I don't think we should have a separate fs.conf for all of this, so we can just do it in the original hadoop.conf. I already support writing to s3, it will be committed today, if you still need oss you can continue to develop base it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. of course |
||
Options.key("paimon.fs.conf") | ||
.mapType() | ||
.defaultValue(new HashMap<>()) | ||
.withDescription("Properties in conf when catalog type is 'filesystem'"); | ||
|
||
protected String catalogName; | ||
protected PaimonCatalogEnum catalogType; | ||
protected String catalogUri; | ||
|
@@ -114,6 +120,7 @@ public class PaimonConfig implements Serializable { | |
protected String table; | ||
protected String hdfsSitePath; | ||
protected Map<String, String> hadoopConfProps; | ||
protected Map<String, String> fsConfProps; | ||
protected String hadoopConfPath; | ||
|
||
public PaimonConfig(ReadonlyConfig readonlyConfig) { | ||
|
@@ -125,6 +132,7 @@ public PaimonConfig(ReadonlyConfig readonlyConfig) { | |
this.hdfsSitePath = readonlyConfig.get(HDFS_SITE_PATH); | ||
this.hadoopConfProps = readonlyConfig.get(HADOOP_CONF); | ||
this.hadoopConfPath = readonlyConfig.get(HADOOP_CONF_PATH); | ||
this.fsConfProps = readonlyConfig.get(FS_CONF); | ||
this.catalogType = readonlyConfig.get(CATALOG_TYPE); | ||
if (PaimonCatalogEnum.HIVE.getType().equals(catalogType.getType())) { | ||
this.catalogUri = | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Piamon version 0.7 is incompatible with version 0.9. You are advised to provide the mapping between the ST Paimon Connector and the Paimon version.