Giter Club home page Giter Club logo

spark-drools's Introduction

spark-drools

spark-drools tutorials

The spark drools tutorial contains majorly 2 maven modules, the rules-core module defines all the rules and batch modules contains Spark Application to execute the Drools rule.

rules-core- drools rules

Following are the major points covered in examples:

  • How to build kie jar using maven project-

        rules-core modules
    
  • Declare new type using drool-

        rules-core/src/main/resources/com.ts.sr.rules.MetaData.drl
    
  • Avoid infinite loop execution when any property is updated-

        rules/src/main/resources/com.ts.sr.rules.MetaData.drl
    
  • Setup a Jboss drools and spark maven project- batch module contains spark drools implementation

  • Use Jboss Drools kieclasspathContainer in spark application-

        batch/src/main/java/com.ts.blog.batch.CategoryAssignment.java
    
  • Load kjar in spark application- batch module

  • Use spark transformation to execute rules- batch module CategoryAssignment execute each rule and assignment Category to each record

  • Kie Fluent api tutorial- TODO

Batch module launcher example

<batch Zip Home>/bin/launcher.sh --help
Options category 'Startup':
  --[no]help [-h] (a boolean; default: "true")
    Print usage info
  --input [-i] (a string; default: "")
    input path
  --output [-o] (a string; default: "")
    output path

You may use input-data directory for test run

spark-drools's People

Contributors

rahul86s avatar reethified avatar

Watchers

 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.