Install Single Node "All In One"
Linux (Docker Install)
- Verify Hardware & Software requirements
- Obtain username/password for StreamWeaver docker repository
- Download the bits.
- Copy the zip to a directory on the machine (example: /tmp)
- Unzip the file and copy to /opt creating a directory structure like:
- [root@centos streamweaver]# ls -lsa
total 8
0 drwxr-xr-x. 8 root root 120 Sep 20 14:17 .
0 drwxr-xr-x. 5 root root 54 Sep 20 14:58 ..
0 drwxr-xr-x. 5 root root 259 Sep 20 14:17 bin
0 drwxr-xr-x. 4 root root 240 Sep 20 14:17 conf
0 drwxr-xr-x. 14 root root 199 Sep 20 14:17 content-packs
0 drwxr-xr-x. 7 root root 78 Sep 20 14:17 data
8 -rwxr--r--. 1 root root 5263 Sep 20 14:17 docker-compose.yaml
0 drwxr-xr-x. 3 root root 21 Sep 20 14:17 systemloader
0 drwxr-xr-x. 2 root root 20 Sep 20 14:17 tmp
- Validate that docker is installed and enabled for current user
- If docker engine is not installed, follow the instructions on the Docker site
- Install docker-compose - follow instructions on Docker site
Log into StreamWeaver docker repository
docker login swpdevacr.azurecr.io
Username: [provided by support@streamweaver.com]
Password: [provided by support@streamweaver.com]Run docker-compose. This will download images from the public and StreamWeaver docker repositories.
docker-compose up -d;To stop
docker-compose down;
Windows
Step by step instruction on installing and configure StreamWeaver components as a service in Windows platform.
Instructions
Install and configure as a services
- Verify Hardware & Software requirements
Set the JAVA_HOME "System environment" variable (for Cassandra to start up properly)
- Download the bits. ( download link will be provided)
- unzip the package in the desired directory
Navigate to <path>/streamweaver/bin/ and execute “install-windows-services.bat"
- All 5 services will be running now, Screenshot from services.msc panel
Note : To stop all Streamweaver services by executing:
.. or to start all
Linux (v3.0 and earlier)
- Verify Hardware & Software requirements
- Verify user account privilege is set to "root"
- Download the bits.
- Copy the zip to a directory on the machine (example: /tmp)
Unzip contents to `/opt`, which will create a `streamweaver` directory
unzip swp*.zip -d /optNote: Install on custom path - unzip swp*.zip -d <custom path>
Install & start service
cp /opt/streamweaver/systemloader/systemv/etc/default/* /etc/default
cp /opt/streamweaver/systemloader/systemv/etc/init.d/* /etc/init.d
service streamweaver start
sudo chkconfig --add streamweaverNote : If using custom application path in both scripts for the variable "Install_dir" and then perform the copy commands
a. vi <custom path>/streamweaver/systemloader/systemv/etc/default/streamweaver , update the variable "Install_dir" to custom pathINSTALL_DIR="/opt/alternate/streamweaver"b. vi <custom path>/streamweaver/systemloader/systemv/etc/init.d/streamweaver , update the variable "Install_dir" to custom path
INSTALL_DIR="/opt/alternate/streamweaver"c. use the custom desired path and copy over the scripts.
- Get status of processes
Service State Elapsed time PID Message
---------------------------------------------------------------------------------------
zookeeper Running 3.231 d 98787 healthy
kafka Running 3.231 d 98803 healthy
kafka-schema-registry Running 3.231 d 98832 healthy
cassandra Running 3.231 d 98850 healthy
swpallinone Running 3.231 d 90267 healthy
Use these commands to control the StreamWeaver Platform:
Action | Command | Options |
---|---|---|
Start StreamWeaver | service streamweaver start | |
Verify StreamWeaver running | service streamweaver status | open a web browser and navigate to: http://<opstream host>:7457 |
Stop StreamWeaver | service streamweaver stop | |
Restart StreamWeaver | service streamweaver restart | |
Kill StreamWeaver | ps -ef | grep streamweaverkill -2 <Process ID> | if the process is hung, run these command |