Hadoop FileSystem closed exception when doing BufferedReader.close()

前端 未结 2 1701
执念已碎
执念已碎 2020-12-30 04:49

From within the Reduce setup method,I am trying to close a BufferedReader object and getting a FileSystem closed exception. It does not happen all

2条回答
  •  爱一瞬间的悲伤
    2020-12-30 05:45

    You have to use FileSystem.newInstance to avoid using a shared connection (as described by Joe K). It will give you a unique, non-shared instance.

提交回复
热议问题