IOException: Filesystem closed exception when running oozie workflow

前端 未结 2 1504
小鲜肉
小鲜肉 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);
    

提交回复
热议问题