[ACCEPTED]-IOException: Filesystem closed exception when running oozie workflow-oozie

Accepted answer
Score: 10

Use the below configuration while accessing 1 file system.

Configuration conf = new Configuration();
conf.setBoolean("fs.hdfs.impl.disable.cache", true);
FileSystem fileSystem = FileSystem.get(conf);
Score: 4

I had encountered a similar issue that prompted 5 java.io.IOException: Filesystem closed. Finally, I found I closed the filesystem 4 somewhere else. The hadoop filesystem API 3 returns the same object. So if I closed 2 one filesystem, then all filesystems are 1 closed. I get the solution from this answer

More Related questions