Skip to content

Commit

Permalink
Disable HDFSFileSystem cache (#6039)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanwenjun authored Dec 27, 2023
1 parent 1a8e9b4 commit 135c918
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ private Configuration createConfiguration() {
configuration.setBoolean(ADD_LIST_ELEMENT_RECORDS, false);
configuration.setBoolean(WRITE_OLD_LIST_STRUCTURE, true);
configuration.set(CommonConfigurationKeys.FS_DEFAULT_NAME_KEY, hadoopConf.getHdfsNameKey());
configuration.setBoolean(
String.format("fs.%s.impl.disable.cache", hadoopConf.getSchema()), true);
configuration.set(
String.format("fs.%s.impl", hadoopConf.getSchema()), hadoopConf.getFsHdfsImpl());
hadoopConf.setExtraOptionsForConfiguration(configuration);
Expand Down

0 comments on commit 135c918

Please sign in to comment.