-
Notifications
You must be signed in to change notification settings - Fork 7
install_from_packages
create the stucco user and stucco group.
create /stucco and /stucco/bin directories, owned by stucco user.
verify that the rabbitmq-server service are running, and that supervisord process is running.
verify that either postgresql or orientdb service is running, as approproate.
cd /stucco/; git clone https://github.com/stucco/endogenous-data-uc1.git
Note: if PostgreSQL is running on a remote server, edit the config file /stucco/graph-db-connection/config/postgresql.yml
To create stucco user:
psql -c "CREATE USER stucco WITH PASSWORD 'stucco' CREATEDB CREATEROLE SUPERUSER REPLICATION;" (run as postgres user)
To initialize this user so it can log in, run the createdb command as the stucco system user
To create stucco db:
psql -c "CREATE DATABASE testdb WITH OWNER stucco;" (run as postgres user)
To verify configuration, from the psql prompt, run:
\du (shows users - should contain stucco)
\l (shows databases - should contain testdb)
\c testdb (connect to testdb database)
\dt (shows tables - these will be created once rt initializes, so none will be present if it has not connected yet)
sudo yum install stucco-graph-init-1.0.0-1.x86_64.rpm
Note: if orientdb is running on a remote server, edit the config file /stucco/graph-init/config/orientdb.yml
create database:
sudo /opt/orientdb-community-2.1.2/bin/console.sh create database remote:localhost:2424/graph root root plocal
build database schema and indices:
cd /stucco/graph-init
STUCCO_DB_TYPE=ORIENTDB STUCCO_DB_CONFIG="/stucco/graph-init/config/orientdb.yml" STUCCO_DB_INDEX_CONFIG="/stucco/graph-init/config/stucco_orientdb_indexing.json" ./populate-schema-indexes.sh
sudo yum install stucco-collectors-1.0.0-1.x86_64.rpm
sudo yum install stucco-db-rest-service-1.0.0-1.x86_64.rpm
sudo yum install stucco-doc-1.0.0-1.x86_64.rpm
sudo yum install stucco-rt-1.0.0-1.x86_64.rpm
sudo yum install stucco-ui-1.0.0-1.x86_64.rpm
sudo yum install stucco-config-1.0.0-1.x86_64.rpm
or more recent versions, as appropriate
Note: If rabbitmq-server is running on a remote server, edit these config files:
/stucco/rt/config.yaml and /stucco/collectors/config/collectors.yml
Note: Set the number of stucco rt workers as desired in /etc/supervisor/conf.d/stucco-rt.conf
(generally based on available system resources.)
restart supervisor and verify status!
sudo supervisorctl reload
sudo supervisorctl status