We are running a workflow in oozie.
It contains two actions: the first is a map reduce job that generates files in the hdfs and the second is a job that should copy the data
I had encountered a similar issue that prompted java.io.IOException: Filesystem closed. Finally, I found I closed the filesystem somewhere else. The hadoop filesystem API returns the same object. So if I closed one filesystem, then all filesystems are closed.
I get the solution from this answer