Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

anujsrc/onyx-starter

Open more actions menu
 
 

Repository files navigation

onyx-starter

A starter project to get your feet wet with Onyx 0.9.12. Uses the core.async plugin for both input and output. Requires no external dependencies.

Walk Through

WALKTHROUGH.md walks through the repository in detail.

Usage

Clone the repo

git clone git@github.com:onyx-platform/onyx-starter.git

Run the sample job

Run the tests or use the repl to see it work. Tail onyx.log for Onyx output.

Tests
lein test
REPL
(user/go)
(require 'onyx-starter.launcher.submit-sample-job)
(onyx-starter.launcher.submit-sample-job/submit-job user/system)

If you wish to make any code changes, call (user/reset) to refresh your environment before resubmitting the job.

Expected output
{:loud-output
 [{:word "HeY!"}
  {:word "ThErE!"}
  {:word "UsEr!"}
  {:word "It's!"}
  {:word "ReAlLy!"}
  {:word "NiCe!"}
  {:word "OuTsIdE!"}
  {:word "I!"}
  {:word "LiVe!"}
  {:word "In!"}
  {:word "ReDmOnD!"}
  :done]

 :question-output
 [{:word "HeY?"}
  {:word "ThErE?"}
  {:word "UsEr?"}
  {:word "It's?"}
  {:word "ReAlLy?"}
  {:word "NiCe?"}
  {:word "OuTsIdE?"}
  {:word "I?"}
  {:word "LiVe?"}
  {:word "In?"}
  {:word "ReDmOnD?"}
  :done]
Dashboard

If you would like to use the Onyx Dashboard to inspect the cluster, download the uberjar.

In core.clj evaluate the sample file bit by bit, as above.

After evaluating the line: (def env (onyx.api/start-env env-config)) start the dashboard by:

ZOOKEEPER_ADDR="127.0.0.1:2188" java -jar onyx-dashboard-VERSION-NUMBER.jar

License

Copyright © 2015 Distributed Masonry LLC

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Starter tutorial for working with Onyx

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.