IOException: Filesystem closed exception when running oozie workflow

前端 未结 2 1505
小鲜肉
小鲜肉 2020-12-28 22:31

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

相关标签:
2条回答
  • 2020-12-28 22:55

    Use the below configuration while accessing file system.

    Configuration conf = new Configuration();
    conf.setBoolean("fs.hdfs.impl.disable.cache", true);
    FileSystem fileSystem = FileSystem.get(conf);
    
    0 讨论(0)
  • 2020-12-28 23:15

    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

    0 讨论(0)
提交回复
热议问题