Skip to content

Commit

Permalink
[MINOR] Fix incorrect configuration name "hoodie.metadata.enabled" (#…
Browse files Browse the repository at this point in the history
…12528)

Co-authored-by: yuqi <[email protected]>
  • Loading branch information
ychris78 and yuqi authored Dec 20, 2024
1 parent 143dc52 commit 4819d67
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ private List<FileStatus> listStatusForSnapshotMode(JobConf job,
.collect(Collectors.toList())
);
} else {
// If hoodie.metadata.enabled is set to false and the table doesn't have the metadata,
// If hoodie.metadata.enable is set to false and the table doesn't have the metadata,
// read the table using fs view cache instead of file index.
// This is because there's no file index in non-metadata table.
String basePath = tableMetaClient.getBasePath().toString();
Expand Down
2 changes: 1 addition & 1 deletion hudi-platform-service/hudi-metaserver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ hoodie.database.name=default
hoodie.table.name=test
hoodie.base.path=${path}
hoodie.metaserver.enabled=true
hoodie.metadata.enabled=false
hoodie.metadata.enable=false
hoodie.metaserver.uris=thrift://${serverIP}:9090
```

Expand Down
2 changes: 1 addition & 1 deletion packaging/bundle-validation/service/read.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ val basePath = "file:///tmp/hudi-bundles/tests/" + tableName
spark.read.format("hudi").
option("hoodie.table.name", tableName).
option("hoodie.database.name", "default").
option("hoodie.metadata.enabled", "false").
option("hoodie.metadata.enable", "false").
option("hoodie.metaserver.enabled", "true").
option("hoodie.metaserver.uris", "thrift://localhost:9090").
load(basePath).coalesce(1).write.csv("/tmp/metaserver-bundle/sparkdatasource/trips/results")
Expand Down
2 changes: 1 addition & 1 deletion packaging/bundle-validation/service/write.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ df.write.format("hudi").
option("hoodie.database.name", database).
option("hoodie.datasource.meta.sync.enable", "false").
option("hoodie.datasource.hive_sync.enable", "false").
option("hoodie.metadata.enabled", "false").
option("hoodie.metadata.enable", "false").
option("hoodie.metaserver.enabled", "true").
option("hoodie.metaserver.uris", "thrift://localhost:9090").
mode(Overwrite).
Expand Down

0 comments on commit 4819d67

Please sign in to comment.