Skip to content
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

[add] add paimonwriter.json to docs #1194

Merged
merged 10 commits into from
Jan 24, 2025
Prev Previous commit
Next Next commit
fixed: the bug that no hadoop conf when use s3a fielsystem
awol2005ex committed Jan 24, 2025
commit 387f15eae375c6d0482bbcf978042ab026c5b702
Original file line number Diff line number Diff line change
@@ -36,7 +36,11 @@ public static Options getOptions(Configuration conf){

public static CatalogContext getCatalogContext(Options options) {
CatalogContext context = null;
if(options.get("warehouse").startsWith("hdfs://")){
String warehouse=options.get("warehouse");
if (warehouse ==null || warehouse.isEmpty()){
throw new RuntimeException("warehouse of the paimonConfig is null");
}
if(warehouse.startsWith("hdfs://")||warehouse.startsWith("s3a://")){

org.apache.hadoop.conf.Configuration hadoopConf = new org.apache.hadoop.conf.Configuration();
options.toMap().forEach((k, v) -> hadoopConf.set(k, String.valueOf(v)));