#!/bin/bash

if [ $1 == "create" ];then
	hdfs dfs -mkdir /user/$USER/$2/
	hdfs dfs -mkdir /user/$USER/$2/input
	hdfs dfs -put $3 /user/$USER/$2/input
elif [ $1 == "clean" ];then
	hdfs dfs -rm /user/$USER/$2/output/*
	hdfs dfs -rmdir /user/$USER/$2/output
	rm *.jar *.class
elif [ $1 == "run" ];then
	hadoop com.sun.tools.javac.Main Log.java $3.java
	jar cf ws.jar *.class
	hadoop jar ws.jar $3 /user/$USER/$2/input /user/$USER/$2/output
elif [ $1 == "results" ];then
	hdfs dfs -cat /user/letz/$2/output/part-r-00000
fi

Add bashscript with map reduce tasks
Add bashscript with map reduce tasks

Signed-off-by: Ricardo Leitão <7b4d37ae83d3467258fad8a1777e62b4e7cbaa68@lqd.io>
