This topic describes the deploy
command in gfsh
, the VMware Tanzu GemFire command-line interface.
Use this command to deploy JAR-packaged applications to a member or members.
Note: When deploying a JAR, the name of the JAR cannot contain any of the following characters: *
, !
, #
, @
, ?
.
Only one of either --jars
or --dir
may be specified.
Availability: Online. You must be connected in gfsh
to a JMX Manager member to use this command.
Syntax:
deploy [--groups=value(,value)*] [--jars=value(,value)*] [--dir=value]
[--dependencies=value]
Name | Description |
---|---|
‑‑groups | Groups to which the specified JARs will be deployed. If this option is not specified, the deployment will occur on all members. |
‑‑jars | Paths of the JARs to deploy. |
‑‑dir | Directory from which to deploy the JARs. |
‑‑dependencies | Names of other deployments on which this deployment should depend. This deployment will be able to access classes defined in the listed deployments. This option is not valid when classloader isolation is disabled. |
Table 1. Deploy Parameters
Example Commands:
deploy --jars=group1_functions.jar --groups=Group1
deploy --dir=libs/group1-libs --groups=Group2
Sample Output:
gfsh> deploy --jars=group1_functions.jar --groups=Group1
Member | Deployed JAR | Deployed JAR Location
--------- | -------------------- | ---------------------------------------------------
datanode1 | group1_functions.jar | /usr/local/gemfire/deploy/GF#group1_functions.jar#1
datanode2 | group1_functions.jar | /usr/local/gemfire/deploy/GF#group1_functions.jar#1
gfsh> deploy --dir=libs/group1-libs --groups=Group2
Deploying files: group2_functions.jar, group2_dependencies.jar
Total file size is: 0.64MB
Continue? (Y/n): Y
Member | Deployed JAR | Deployed JAR Location
--------- | ----------------------- | ---------------------------------------------
datanode3 | group2_functions.jar | /usr/local/gemfire/deploy/GF#group2_functions.jar#1
datanode3 | group2_dependencies.jar | /usr/local/gemfire/deploy/GF#group2_dependencies.jar#1
datanode4 | group2_functions.jar | /usr/local/gemfire/deploy/GF#group2_functions.jar#1
datanode4 | group2_dependencies.jar | /usr/local/gemfire/deploy/GF#group2_dependencies.jar#1