On Wed, May 20, 2009 at 2:07 PM, Stas Oskin <stas.os...@gmail.com> wrote:
> Hi. > > 2009/5/20 Tom White <t...@cloudera.com> > > > Looks like you are trying to copy file to HDFS in a shutdown hook. > > Since you can't control the order in which shutdown hooks run, this is > > won't work. There is a patch to allow Hadoop's FileSystem shutdown > > hook to be disabled so it doesn't close filesystems on exit. See > > https://issues.apache.org/jira/browse/HADOOP-4829. > > > > > Thanks! Any downside to this? > You should only use this if you plan on manually closing FileSystems yourself from within your own shutdown hook. It's somewhat of an advanced feature, and I wouldn't recommend using this patch unless you fully understand the ramifications of modifying the shutdown sequence. > > Also, I see that the patch doesn't work against tree- but the 0.18.3 is > supported? > Just uploaded a patch based on branch 18 for you to that JIRA. Thanks -Todd