Giter Site home page Giter Site logo

gradle-hadoop-wordcount's Introduction

Intrdocution

This is a very very simple mapreduce application. You can run this application in command with following command.

./gradlew run    

This command will download all the jars to your local machine. No hadoop installation package is required, no setting is required, just issue the command and does work!!

The output would print this information

The output goes to: out/20140520170354

Just use

cat out/20140520170354/part-r-00000

To see the result.

Eclipse Integration

Please follow the steps below

  1. Issue this command to create the eclise project files

    ./gradlew eclipse

  2. Open the eclipse. Select the "Import" > "Existing Projects into Workspace".

  3. Run as application

Run in hadoop cluster

I assume that your have knowledge to set up the hadoop standalone server or cluster. Please follow the steps below

  1. Issue this command to create the executable jar

    ./gradlew jar

  2. Run in hadoop

    hadoop jar build/libs/wordcount.jar

Good luck and happy MapReduce!!!

Azure HDInsigh Support

To make this example more-Hadoop-like, and make it run more smoothly under HDInsight, I add a new task 'hadoop', and define an argument named 'args' to pass all the required parameters. ( Thank @MonsterSupreme )

gradle-hadoop-wordcount's People

Contributors

popcornylu avatar monstersupreme avatar marquisthunder avatar

Watchers

 avatar James Cloos 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.