In this lab, you will install GemFire and start a GemFire cluster on your local machine.
Follow these instructions to install the GemFire product onto your local machine.
-
From a command shell, invoke:
gfsh version
If the output from the above command does not yield the version of gemfire, go back and verify that gemfire was installed properly and that the gfsh command is in your $PATH.
-
Start the gfsh console. Invoke:
gfsh
You should see a GFSH banner and a prompt. Invoke:
help
This command should output is 3-4 screens long and lists all of the commands that the gemfire shell supports.
Finally, exist the gemfire shell with:
exit
You should now be back at your normal shell prompt.
Start a cluster consisting of a locator and three servers (all running on the same machine):
-
From a command shell:
cd server-bootstrap/cluster ./start.sh
(on windows, invoke
start.bat
instead).
Tip
|
The java tool From the command line, invoke |
The test class BasicValidationTest
verifies the ability to store and retrieve data into and from GemFire regions.
The test can be run either from your IDE or from the command-line. For command-line execution, invoke:
cd server-bootstrap gradle test
If the test passes, then we’re all set to proceed to the next module.
But first, shutdown your cluster, with:
cd cluster ./stop.sh
(on windows, use stop.bat
instead).
Congratulations!! You have completed this lab.