undeploy
Undeploy the JAR files that were deployed on members or groups using deploy
command.
If --jar
is not specified, the command will undeploy all deployed JARs. If --group
is not specified, the command applies to the entire cluster. Note that this command can't unload the classes that were loaded during deployment. Member(s) should be restarted for that.
Availability: Online. You must be connected in gfsh
to a JMX Manager member to use this command.
Syntax:
undeploy [--jar=<jar to be undeployed>] [--group=<member-group-name>]
Name | Description | Default Value |
---|---|---|
\-\-group | Group(s) from which the specified JAR(s) will be undeployed. | undeploy will occur on all members. |
\-\-jar | JAR or JARs to be undeployed. | All JARs will be undeployed. |
Table 1. Undeploy Parameters
Example Commands:
undeploy --jar=domain-objects.jar
undeploy --group=Group1
Sample Output:
gfsh>undeploy --jar=domain-objects.jar
Member | Un-Deployed JAR | Un-Deployed From JAR Location
datanode10 | domain-objects.jar | /usr/local/gemfire/deploy/GF#domain-objects#1
datanode11 | domain-objects.jar | /usr/local/gemfire/deploy/GF#domain-objects#1
gfsh> undeploy --group=Group1
Member | Un-Deployed JAR | Un-Deployed From JAR Location
datanode1 | group1_functions.jar | /usr/local/gemfire/deploy/GF#group1_functions.jar#1
datanode1 | group1_dependencies.jar | /usr/local/gemfire/deploy/GF#group1_dependencies.jar#1
datanode2 | group1_functions.jar | /usr/local/gemfire/deploy/GF#group1_functions.jar#1
datanode2 | group1_dependencies.jar | /usr/local/gemfire/deploy/GF#group1_dependencies.jar#1
Error Messages:
No JAR Files Found