GithubHelp home page GithubHelp logo

axtriaworkbench's Introduction

AxtriaWorkbench

Installation & Launch

  • Install Python 2.7 and Node.js (version >= 6)

  • Open terminal in folder './AxtriaWorkbench/'

  • Install impyla

pip install impyla
  • Start express server
npm start
  • Open the Cloudera cluster, then open chrome browser and go to http://localhost:3000 (Now you should see the webpages)

Usage

  1. Login: default username & password: admin / admin (You can also register a new one)

  2. By default, you should be at the query page. The first thing to do is setting up parameters in all five questions.

  3. Click 'Submit' and now you should be directed to the report page. Since the query needs some time to run, you have to wait until the results are fetched (DO NOT CLOSE OR REFRESH!). After that, all the results will be displayed automatically.

  4. Select 'COHORT' or 'KICKOUT' tab, and click 'Download CSV' to download the data as a csv file.

  5. Click Logout to exit.

Development Guide

  • File structure
README.md         // Help documentation
package.json      // json file for node modules
login.html        // login page html
server.js         // js file for node.js server
connect.py        // python module for connecting to impala
node_modules      // directory of node.js modules
  |- ......
pages             // directory of web pages
  |- fonts        // directory for fonts
  |- img          // directory for images
  |- app.js       // main js file for angular controller
  |- style.css    // main css file
  |- index.html   // main html file
  |- query.html   // sub html file for query page
  |- report.html  // sub html file for report page
  |- graph.html   // TODO: sub html file for visualization
  • How to modify

If you'd like to add more queries, you need to modify 3 files. First, add more questions in the query.html. Second, go to app.js and add corresponding data and send query using socket. Third, display data in the report.html using ng-repeat.

Also, if you want to implement data visualization on the graph page, make sure to add a new route in app.js, and make graph.html a div only rather than a complete html.

axtriaworkbench's People

Contributors

hsuanhuang avatar kaiwen-zhong avatar xuyue6666 avatar

Watchers

James Cloos avatar  avatar Metal Squilla avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.