tree: ab6587db449f95a200bb4758e24544c76d742154 [path history] [tgz]
  1. provision.sh
  2. README.md
  3. Vagrantfile
test/deb/ubuntu-xenial/README.md

Installing Aurora

Install packages

Two methods are described, one for installing locally built packages, the other for installing released packages or release candidate packages.

Locally built

# Install vagrant scp
vagrant plugin install vagrant-scp

# Scp over the newly built packages
for deb in ../../../artifacts/aurora-ubuntu-xenial/dist/*.deb; do
  vagrant scp $deb :$(basename $deb);
done

# Install each deb
vagrant ssh -- -L8081:localhost:8081 -L1338:localhost:1338
sudo dpkg -i aurora*.deb thermos*.deb

Released

vagrant ssh -- -L8081:localhost:8081 -L1338:localhost:1338
version=0.15.0
pkg_root="https://apache.bintray.com/aurora/ubuntu-xenial/"
for deb in \
    aurora-scheduler_${version}_amd64.deb \
    aurora-executor_${version}_amd64.deb \
    aurora-tools_${version}_amd64.deb; do
  wget $pkg_root/$deb
  sudo dpkg -i $deb
done

Initialize and start

The replicated log has to be initialized manually:

# Stop services first
sudo systemctl stop aurora-scheduler
sudo systemctl stop thermos

sudo -u aurora mkdir -p /var/lib/aurora/scheduler/db
sudo -u aurora mesos-log initialize --path=/var/lib/aurora/scheduler/db
sudo systemctl start aurora-scheduler
sudo systemctl start thermos

To make the Thermos observer work, you will have to follow the instructions of our Install Guide.

Create a job

echo "
task = SequentialTask(
  processes = [Process(name = 'hello', cmdline = 'echo hello')],
  resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
jobs = [Service(
  task = task, cluster = 'example', role = 'vagrant', environment = 'prod', name = 'hello')]" > hello_world.aurora

aurora job create example/vagrant/prod/hello hello_world.aurora

Troubleshooting

  • Mesos: /var/log/mesos
  • Aurora scheduler: cat /var/log/syslog | grep aurora-scheduler and sudo journalctl -u aurora-scheduler
  • Aurora observer: sudo journalctl -u thermos