>
>
> After you've performed your application shutdown actions you should
> call FileSystem's closeAll() method.
Ahh, thanks for the tip.
Regards.
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
>
> 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
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
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
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
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
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