Getting Started
Teraslice is written in Node.js and has been tested on Linux and Mac OS X.
Dependencies
- Node.js (10.16 or above)
- Yarn (1.16 or abose)
- At least one elasticsearch 5.x, 6.x, or 7.x
Installation
# Install teraslice globally
npm install --global teraslice
# Or with yarn, yarn global add teraslice
# A teraslice CLI client
npm install --global teraslice-cli
# Or with yarn, yarn global add teraslice-cli
# To add additional connectors, use
# npm install terafoundation_kafka_connector
Running
Create a configuration file called config.yaml
:
terafoundation:
connectors:
elasticsearch-next:
default:
node:
- "http://localhost:9200"
teraslice:
workers: 8
master: true
master_hostname: 127.0.0.1
name: teraslice
hostname: 127.0.0.1
Starting a single-node teraslice instance:
NOTE: Elasticsearch must be running first.
teraslice -c config.yaml
Deploy needed assets:
For many use cases elasticsearch is a good start.
teraslice-cli assets deploy localhost terascope/elasticsearch-assets
There are also asset bundles available for:
If you want to get a simple cluster going use, the example docker-compose file:
docker-compose up --build