-
1. Re: How to Shutdown a HungUp Node ?
peterj Jul 8, 2010 7:26 AM (in response to saswatamandal)Open another command prompt and run shutdown.bat.
-
2. Re: How to Shutdown a HungUp Node ?
saswatamandal Jul 8, 2010 10:50 AM (in response to peterj)But , I am using :-
run -c node1 -b 144.44.44.44 -g Partition
So, how to shutdown the particular node.
Thanks & Regards
saswata mandal.
-
3. Re: How to Shutdown a HungUp Node ?
peterj Jul 8, 2010 11:37 AM (in response to saswatamandal)You are aware that you can run shutdown with the -h parameter (shutdown -h) and get a list of the options available, right? If you did that, you would see the -s option which lets you specify the JNDI URL. Thus you would use:
shutdown -s 144.44.44.44
This assumes you did not change the port for JNDI (1099).
-
4. Re: How to Shutdown a HungUp Node ?
saswatamandal Jul 8, 2010 11:54 AM (in response to peterj)That sounds great ....
I didn't know that the JNDI URL is the IP Address, to which the node is bound.
I shall try to do that.
Thanks & Regards
saswata mandal.
-
5. Re: How to Shutdown a HungUp Node ?
saswatamandal Jul 12, 2010 5:05 AM (in response to saswatamandal)Hi , I think the port number 1099 has been changed , since the following exception is thrown :-
C:\jboss-4.2.0.GA\bin>shutdown -s 156.154.766.89
Exception in thread "main" javax.naming.CommunicationException: Could not obtain
connection to any of these urls: 156.154.766.89 [Root exception is javax.naming.
CommunicationException: Failed to connect to server 156.154.766.89:1099 [Root exc
eption is javax.naming.ServiceUnavailableException: Failed to connect to server
156.154.766.89:1099 [Root exception is java.net.ConnectException: Connection refu
sed: connect]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.Shutdown.main(Shutdown.java:214)
Caused by: javax.naming.CommunicationException: Failed to connect to server 10.1
81.120.31:1099 [Root exception is javax.naming.ServiceUnavailableException: Fail
ed to connect to server 156.154.766.89:1099 [Root exception is java.net.ConnectEx
ception: Connection refused: connect]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
... 4 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server
156.154.766.89:1099 [Root exception is java.net.ConnectException: Connection ref
used: connect]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
... 5 more
Caused by: java.net.ConnectException: Connection refused: connect
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:367)
at java.net.Socket.connect(Socket.java:524)
at java.net.Socket.connect(Socket.java:474)
at java.net.Socket.<init>(Socket.java:371)
at java.net.Socket.<init>(Socket.java:271)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory
.java:84)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory
.java:77)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
... 5 moreWhere can we check the PORT Number and change it ??
Thanks & REgards
saswata mandal.
-
6. Re: How to Shutdown a HungUp Node ?
peterj Jul 12, 2010 11:37 AM (in response to saswatamandal)Open the jmx console (http://localhost:8080/jmx-console) and look at mbean jboss:service=Naming, the Port attribute.
-
7. Re: How to Shutdown a HungUp Node ?
saswatamandal Jul 13, 2010 4:08 AM (in response to peterj)Yes,
MBean Name: Domain Name: jboss service: Naming MBean Java Class: org.jboss.mx.modelmbean.XMBean has Port : 8892 and RmiPort : 8893
So , can we use the port number with IP in the Shutdown -s command ?
Thanks & Regards
saswata mandal.
-
8. Re: How to Shutdown a HungUp Node ?
wolfgangknauf Jul 13, 2010 6:09 AM (in response to saswatamandal)Hi,
use this: "-s jnp://ip:jndiPort"
Best regards
Wolfgang