Skip to content
php utils for Hadoop Streaming
PHP
Find file
Latest commit 1dce124 Apr 22, 2015 @makotokw Updated gitignore
Failed to load latest commit information.
examples/wordcount PSR-4, Added vendor namespace Apr 20, 2015
src
.gitignore Updated gitignore Apr 22, 2015
LICENSE PSR-4, Added vendor namespace Apr 20, 2015
README.md Added Packagist May 13, 2013
composer.json

README.md

php-hadoopstreaming

Install

Add to composer.json

{
    "require": {
        "makotokw/hadoopstreaming": "dev-master"
    }
}

Usage

simple test without hadoop

cd examples/wordcount
php mapper.php < word.txt | sort | php reducer.php

with hadoop streaming

hadoop-standalone/bin/hadoop jar hadoop-standalone/hadoop-streaming.jar\
 -input examples/wordcount/word.txt\
 -output examples/wordcount/output\
 -mapper 'php examples/wordcount/mapper.php'\
 -reducer 'php examples/wordcount/reducer.php'

LICENSE

The MIT License (MIT)

Something went wrong with that request. Please try again.