sponiro / gradle-hadoop-plugin

Simple startup script generation for hadoop
Apache License 2.0
1 stars 2 forks source link

Gradle Hadoop plugin

A gradle plugin much like the core application plugin of gradle but tailored for use with hadoop. As of now its only purpose is to create startup scripts with dependencies in the right place.

Usage

To use the plugin, add the bintray repository to your script:

buildscript {
    repositories {
        mavenCentral()
        maven {
            url 'http://dl.bintray.com/sponiro/gradle-plugins'
        }
    }
    dependencies {
        classpath group: 'de.fanero.gradle.plugin.hadoop', name: 'gradle-hadoop-plugin', version: '0.2'
    }
}

apply plugin: 'hadoop'

Tasks

Convention properties

The convention block is named hadoop. The properties available are:

Example

hadoop {
    buildSubDir = "myHadoopSubDir"
    mainClassName = 'de.fanero.HadoopMain'
}