Local Machine Setup
This section explains how to start an InsightEdge environment on a local machine.
Prerequisites
Before running InsightEdge, verify that you have the following installed in your environment:
- Java 8
- Scala 2.11
- Maven 3.1+
Starting the Local Environment
The InsightEdge environment consists of Spark and the XAP Data Grid.
Starting Full Environment
To start a complete InsightEdge environment on your local machine, run the following command from the <XAP_HOME>/insightedge/bin
directory:
insightedge demo
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
- XAP Service grid:
- XAP Manager at localhost:8090
- A Space called
insightedge-space
with 2 partitions
Starting Only Data Grid
If you wish to start only the data grid (e.g. you’re spark master url is local[*]
, or you prefer to use an existing Spark cluster), run the following:
First, start a local XAP manager with two containers on your machine by running the following command from the <XAP_HOME>/bin
directory:
./gs-agent.sh --manager-local --gsc=2
Next, deploy a space called insightedge-space
with 2 partitions by running the following command from the <XAP_HOME>/insightedge/bin
directory:
insightedge deploy-space --partitions=2 insightedge-space
Stopping Local Environment
To stop the environment, you can use shutdown
mode that sends kill signal to all relevant processes:
insightedge shutdown
What’s Next?
- To get started with the Apache Zeppelin Web Notebook, see Web notebook.
- To run the examples on your local InsightEdge environment, see Running the examples
- To create your first InsightEdge application, see Developing Your First Application
- To learn more on the
insightedge
script, see InsightEdge Script - To setup a cluster on a set of machines, see Cluster Setup For InsightEdge