Skip to content
This repository has been archived by the owner on Jan 6, 2018. It is now read-only.

oozie-stop.sh is oblivious to 'catalina.sh stop' failing #792

Open
rvs opened this issue Aug 16, 2011 · 3 comments
Open

oozie-stop.sh is oblivious to 'catalina.sh stop' failing #792

rvs opened this issue Aug 16, 2011 · 3 comments

Comments

@rvs
Copy link
Contributor

rvs commented Aug 16, 2011

Here's what happens:

oozie-stop.sh

....
Mar 28, 2011 6:16:52 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:189)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:408)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:338)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:416)
Tomcat did not stop in time. PID file was not removed.

Oozie stopped

@rvs
Copy link
Contributor Author

rvs commented Aug 16, 2011

Unless there's a strong objections, I propose to add -force to the call of catalina.sh stop. Here's what it does: stop -force Stop Catalina, wait up to 5 seconds and then use kill -KILL if still running

@tucu00
Copy link
Contributor

tucu00 commented Aug 17, 2011

Instead ... how about getting rid of the oozie-start/stop script and have a single oozied.sh script that propagates the arguments to the catalina script, then you could do all catalina subcommands?

@rvs
Copy link
Contributor Author

rvs commented Aug 19, 2011

Does this look fine? #803

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants