Starting GigaSpaces on a Local Service Grid
This section explains how to start an GigaSpaces environment on a local machine.
Prerequisites
Before running GigaSpaces, verify that you have the following installed in your environment:
- Java 8 or 11
- Scala 2.11
- Maven 3.1+
Starting the Local Environment
The GigaSpaces environment consists of Spark and the GigaSpaces data grid. You can use the Command Line Interface tool to start GigaSpaces as described below.
Starting a Complete Environment
To start a complete GigaSpaces environment on your local machine, run the following command from the $GS_HOME/bin
directory:
You can substitute xap
for the insightedge
commands below
./insightedge host run-agent --auto --gsc=2
insightedge host run-agent --auto --gsc=2
This will start the following components on your machine:
- Spark Master UI at localhost:8080
- URL for submitting spark jobs:
spark://127.0.0.1:7077
- URL for submitting spark jobs:
- Spark Worker UI at localhost:8081
- Zeppelin UI at localhost:9090
- GigaSpaces service grid:
- GigaSpaces Manager at localhost:8090
- 2 Grid Service Containers (GSCs)
- GigaSpaces Web Management Console at localhost:8099
Then run the following command to deploy a Space called demo
with 2 partitions on those GSCs:
./insightedge space deploy --partitions=2 demo
insightedge space deploy --partitions=2 demo
Stopping the Local Environment
To stop the local environment, use the kill-agent
command that sends a kill signal to all relevant processes:
./insightedge host kill-agent
insightedge host kill-agent
What's Next?
- To get started with the Apache Zeppelin Web Notebook, see Using the InsightEdge Web Notebook.
- To run the examples on your local GigaSpaces environment, see Running InsightEdge IDE Examples
- To create your first GigaSpaces application, see Developing Your First Application
- To learn more about the
insightedgei
CLI script, use the--help
option - To set up a cluster on a set of machines, see Cluster Setup For InsightEdge