Skip to content

Commit a524fd5

Browse files
yongtangi-ony
authored andcommitted
Switch to modular file system for hdfs (tensorflow#1309)
* Switch to modular file system for hdfs This PR is part of the effort to switch to modular file system for hdfs. When TF_ENABLE_LEGACY_FILESYSTEM=1 is provided, old behavior will be preserved. Signed-off-by: Yong Tang <[email protected]> * Build against tf-nightly Signed-off-by: Yong Tang <[email protected]> * Update tests Signed-off-by: Yong Tang <[email protected]> * Adjust the if else logic, follow review comment Signed-off-by: Yong Tang <[email protected]>
1 parent 3554d27 commit a524fd5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tensorflow_io/core/plugins/file_system_plugins.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ void TF_InitPlugin(TF_FilesystemPluginInfo* info) {
3030
sizeof(info->ops[0])));
3131
tensorflow::io::az::ProvideFilesystemSupportFor(&info->ops[0], "az");
3232
tensorflow::io::http::ProvideFilesystemSupportFor(&info->ops[1], "http");
33+
tensorflow::io::s3::ProvideFilesystemSupportFor(&info->ops[2], "s3e");
3334
if (enable_legacy == "true" || enable_legacy == "1") {
34-
tensorflow::io::s3::ProvideFilesystemSupportFor(&info->ops[2], "s3e");
3535
tensorflow::io::hdfs::ProvideFilesystemSupportFor(&info->ops[3], "hdfse");
3636
tensorflow::io::hdfs::ProvideFilesystemSupportFor(&info->ops[4], "viewfse");
3737
tensorflow::io::hdfs::ProvideFilesystemSupportFor(&info->ops[5], "hare");
3838
} else {
39-
tensorflow::io::s3::ProvideFilesystemSupportFor(&info->ops[2], "s3");
4039
tensorflow::io::hdfs::ProvideFilesystemSupportFor(&info->ops[3], "hdfs");
4140
tensorflow::io::hdfs::ProvideFilesystemSupportFor(&info->ops[4], "viewfs");
4241
tensorflow::io::hdfs::ProvideFilesystemSupportFor(&info->ops[5], "har");

0 commit comments

Comments
 (0)