mikael.stal...@magine.com
wrote:
I sometimes get the message:
FATAL Unable to register shutdown hook because JVM is shutting down.
This happens in a short running batch job.
Can it be so that Log4j did not have time to initialize fully before
shutting down? What can be done about it?
Log4j
sometimes get the message:
FATAL Unable to register shutdown hook because JVM is shutting down.
This happens in a short running batch job.
Can it be so that Log4j did not have time to initialize fully before
shutting down? What can be done about it?
Log4j 2.3.
--
[image
Yes, Spark seems to have its own shutdown hook and it logs stuff from
within there.
If I put shutdownHook=disable in my log4j2.xml, the problem goes away.
But then I guess that Log4j is never shut down properly?
On Wed, Jul 22, 2015 at 8:39 AM, Ralph Goers ralph.go...@dslextreme.com
wrote:
The
That is correct, but if you only log to files that may not be so bad. If you
use any asynchronous stuff or things that buffer events then that would be a
problem.
Ralph
On Jul 22, 2015, at 2:41 AM, Mikael Ståldal mikael.stal...@magine.com wrote:
Yes, Spark seems to have its own shutdown
here ...]
2015-07-21 10:11:30,216 FATAL Unable to register shutdown hook because JVM
is shutting down. java.lang.IllegalStateException: Cannot add new shutdown
hook as this is not started. Current state: STOPPED
by a Thread.sleep(60*1000), but same problem:
2015-07-21 15:51:04,599538113 Before JVM start
2015-07-21 15:51:05,366 INFO com.magine.maglev.Job$: Startup
[... more logging ...]
2015-07-21 15:52:10,799 FATAL Unable to register shutdown hook because JVM
is shutting down. java.lang.IllegalStateException
...@magine.com
wrote:
2015-07-20 11:23:31,741 FATAL Unable to register shutdown hook because JVM
is shutting down. java.lang.IllegalStateException: Cannot add new shutdown
hook as this is not started. Current state: STOPPED