Hive Scheduler
The scheduler component behind the hive, and the main web view. For a full list of release notes, see the change log
Installing
Pre-requisites
git- Some of the gems are only currently available via Github- MySQL client libraries -
sudo apt-get install libmysqlclient-devon Ubuntu - A javascript runtime - For example, NodeJS -
sudo apt-get install nodejson Ubuntu
Configuration
Hive-Scheduler is configured using the Chamber gem. You can add configuration directly
into the config/settings.yml file, or by setting the following environment variables (in
the following lines to ~/.bashrc (or equivalent):
export RAILS_ENV=production
export DATABASE_ADAPTER=mysql2
export DATABASE_ENCODING=utf8
export DATABASE_HOST=your_database_host
export DATABASE_PORT=3306
export DATABASE_POOL=5
export DATABASE_USERNAME=database_username
export DATABASE_PASSWORD=database_password
export DATABASE_DATABASE=database_name
export ATTACHMENT_STORAGE=filesystem
export ATTACHMENT_STORAGE_PATH_BASE=public
export HIVE_QUEUES=true
Set up database
./bin/rake db:migrate
./bin/rake db:seed
./bin/rake assets:precompile
Example data
Some example execution scripts and projects can be created by editing the
db/seeds.rb file before executing the rake tasks above.
Start the server
./bin/rails s
Examples
Hello world
Go into the 'Scripts' section and create a new script. Select 'Shell Script' as the target platform. Set the name to 'Hello <name>' and in the template box enter:
# This will use the execution variable 'word'
echo Hello $HIVE_WORD