glue icon indicating copy to clipboard operation
glue copied to clipboard

BigData Workflow Engine for Hadoop, Hbase, Netezza, Pig, Hive, Redis ...

Glue

BigData Workflow Engine for Hadoop, Hbase, Netezza, Pig, Hive ...

Introduction

For a detailed introduction see https://gerritjvv.github.io/glue

Glue is a workflow engine for bigdata supporting multiple languages such as:

  • Groovy
  • Clojure
  • Jython
  • Ruby
  • Scala

Example

;clojure

(def lines (ctx-hdfs eachLine "/myhdfsfile"))


#jython

def lineHandler(line):
    print(str(line))


ctx.hfds().eachLine("myhdfsfile", lineHandler)



//scala

for(line <- ctx("hdfs").eachLine("/myhdfsfile"))
 println(line)


//groovy dsl
name = "test"
tasks{
        process1{
                tasks = { context ->
                        println "one"
                }
                
                success = { context ->
                        println "one success"
                }
                
        }
        
        process2{
                dependencies = "process1"
                
                tasks = { context ->
                        println "two"
                }
                
                error = { context ->
                        println "two error"
                }
                
                success = { context ->
                        println "two success"
                }
        }
}