This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Code from http://fmota.eu/, great! | |
class Monoid: | |
def __init__(self, null, lift, op): | |
self.null = null | |
self.lift = lift | |
self.op = op | |
def fold(self, xs): | |
if hasattr(xs, "__fold__"): | |
return xs.__fold__(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12/05/14 14:42:57 INFO multitool.Main: key: source | |
12/05/14 14:42:58 INFO multitool.Main: key: expr | |
12/05/14 14:42:58 INFO multitool.Main: key: gen | |
12/05/14 14:42:58 INFO multitool.Main: key: group | |
12/05/14 14:42:58 INFO multitool.Main: key: count | |
12/05/14 14:42:58 INFO multitool.Main: key: group | |
12/05/14 14:42:58 INFO multitool.Main: key: sink | |
12/05/14 14:43:01 INFO util.HadoopUtil: resolving application jar from found main method on: multitool.Main | |
12/05/14 14:43:01 INFO planner.HadoopPlanner: using application jar: /Users/paco/src/concur/cascading.multitool/./build/multitool.jar | |
12/05/14 14:43:01 INFO property.AppProps: using app.id: 1C9D0188E5018B980067AAC12AE43BBA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class | |
Main | |
{ | |
public static void | |
main( String[] args ) | |
{ | |
String inPath = args[ 0 ]; | |
String outPath = args[ 1 ]; | |
Properties properties = new Properties(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash-3.2$ elastic-mapreduce --create --name "Sample Recommender" \ | |
> --jar s3n://temp.cascading.org/sample/recommender.jar \ | |
> --arg s3n://temp.cascading.org/sample/en.stop \ | |
> --arg s3n://temp.cascading.org/sample/tweets/ \ | |
> --arg s3n://temp.cascading.org/sample/out/token \ | |
> --arg s3n://temp.cascading.org/sample/out/similarity | |
Created job flow j-2HA2BVCBJGMVX | |
bash-3.2$ elastic-mapreduce --list | |
j-2HA2BVCBJGMVX STARTING Sample Recommender | |
PENDING Example Jar Step |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class | |
Main | |
{ | |
public static void | |
main( String[] args ) | |
{ | |
String docPath = args[ 0 ]; | |
String wcPath = args[ 1 ]; | |
Properties properties = new Properties(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class | |
Main | |
{ | |
public static void | |
main( String[] args ) | |
{ | |
String docPath = args[ 0 ]; | |
String wcPath = args[ 1 ]; | |
Properties properties = new Properties(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class | |
Main | |
{ | |
public static void | |
main( String[] args ) | |
{ | |
String docPath = args[ 0 ]; | |
String wcPath = args[ 1 ]; | |
String stopPath = args[ 2 ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class | |
Main | |
{ | |
public static void | |
main( String[] args ) | |
{ | |
String docPath = args[ 0 ]; | |
String wcPath = args[ 1 ]; | |
String stopPath = args[ 2 ]; | |
String tfidfPath = args[ 3 ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class | |
Main | |
{ | |
public static void | |
main( String[] args ) | |
{ | |
String docPath = args[ 0 ]; | |
String wcPath = args[ 1 ]; | |
String stopPath = args[ 2 ]; | |
String tfidfPath = args[ 3 ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash-3.2$ java -version | |
java version "1.6.0_33" | |
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720) | |
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode) | |
bash-3.2$ hadoop -version | |
Warning: $HADOOP_HOME is deprecated. | |
java version "1.6.0_33" | |
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720) | |
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode) |
OlderNewer