Skip to content

Instantly share code, notes, and snippets.

@mrvicadai
Created July 10, 2015 17:00
Show Gist options
  • Save mrvicadai/c2e5d5de0deb3b56564c to your computer and use it in GitHub Desktop.
Save mrvicadai/c2e5d5de0deb3b56564c to your computer and use it in GitHub Desktop.
Joda Instructions

Joda Instructions

Step 1

Run the following bash commands

pip install redis
pip install flask

Step 2

Download Joda and extract

Download using this link: http://cl.ly/1H2r2j1R3Z3t

And then

tar vxzf joda.tgz
pushd joda

Step 3

we are using master.dev.jut.io as an example.

first, edit the file analyzer.cfg with correct information:

  • consumer section determines where you want the result to be dumped to
    • stdout means dumping results to the console
    • redis means storing result into a redis server and you have to spply additional details like host port and password
  • client_id and client_secret can be obtained via the following procedure
    • click your username on top right
    • click My Account
    • click Authorizations
    • there you have the client_id and client_secret
  • in the de section, change auth_url to https://master-auth.dev.jut.io
  • in the de section, change data_url to https://data-engine-52-10-215-103.dev.jutdata.io:3100
    • open the Explorer
    • open browser's debugging console, go to the "Network" Tab
    • click Run on any of the juttle cells
    • in the Network tab, you will find several requests with name job
    • in these jobs request, inspect the headers, you will see something like Request URL:https://data-engine-52-10-215-103.dev.jutdata.io:3100/api/v1/jobs
  • **All the above information can be obtained through the advanced config tab of any running reciever'

Step 4

start running program and pipe result into redis

$> redis-server &
$> python analyzer.py -j analysis.juttle -c analyzer.cfg

The juttle program has finished running and has stored the result in the redis data base. To view the data, do the following:

$> redis-cli
$> keys *

If you would like to view the value of one of the shown above, do

$> redis-cli
$> get <key>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment