Adding celery base task server example

Review Request #13635 - Created Feb. 22, 2019 and updated

Prakash Ranade
hue
prakash-test
hue
jgauthier, johan, ranade, romain, subrata, weixia, yingc
commit 0bca4441633fd75eda8c39ee61bae610297cf1e6
Author: Prakash Ranade <ranade@cloudera.com>
Date:   Wed Feb 13 18:16:32 2019 -0800

    Adding celery to the Hue app

:000000 100644 0000000000 83307e32c5 A	celery_rabbitmq_install.txt
:100644 100644 25dfeca8e2 7cc9f9ed77 M	desktop/core/src/desktop/settings.py
:000000 100644 0000000000 bfb2056f7c A	desktop/libs/notebook/src/notebook/tasks.py
:100644 100644 aea629f4d6 b3216cc133 M	desktop/libs/notebook/src/notebook/views.py
  1. On Ubuntu 16.04 VM, perform steps from https://github.infra.cloudera.com/gist/ranade1/16ea967e173b5465320d753ed14ff838
  2. source ~/.bashrc
  3. make apps
  4. setup HUE_CONF_DIR
  5. start hue server using ./build/env/bin/hue runserver 0.0.0.0:8001
  6. start celery process using ./build/env/bin/celery worker --app=notebook.tasks --concurrency=1 --loglevel=DEBUG on same machine.
Loading...