Re: Shutdown in progress exception

2009-05-21 Thread Stas Oskin
> > > After you've performed your application shutdown actions you should > call FileSystem's closeAll() method. Ahh, thanks for the tip. Regards.

Re: Shutdown in progress exception

2009-05-21 Thread Tom White
On Wed, May 20, 2009 at 10:22 PM, Stas Oskin wrote: >> >> 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 ramif

Re: Shutdown in progress exception

2009-05-20 Thread Stas Oskin
> > 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. Standard df

Re: Shutdown in progress exception

2009-05-20 Thread Todd Lipcon
On Wed, May 20, 2009 at 2:07 PM, Stas Oskin wrote: > Hi. > > 2009/5/20 Tom White > > > 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 shutd

Re: Shutdown in progress exception

2009-05-20 Thread Stas Oskin
Hi. 2009/5/20 Tom White > 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

Re: Shutdown in progress exception

2009-05-20 Thread Tom White
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/jir

Re: Shutdown in progress exception

2009-05-19 Thread Stas Oskin
Hi. Does anyone has any idea on this issue? Thanks! 2009/5/17 Stas Oskin > Hi. > > I have an issue where my application, when shutting down (at ShutdownHook > level), is unable to copy files to HDFS. > > Each copy throws the following exception: > > java.lang.IllegalStateException: Shutdown in

Shutdown in progress exception

2009-05-17 Thread Stas Oskin
Hi. I have an issue where my application, when shutting down (at ShutdownHook level), is unable to copy files to HDFS. Each copy throws the following exception: java.lang.IllegalStateException: Shutdown in progress at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.ja