Permalink
Browse files

scripts for testing sample job against cluster.

  • Loading branch information...
1 parent 6e5cd54 commit e338f8424a30f94c606750d188d023b47b6a8aac @mpobrien mpobrien committed Dec 18, 2012
Showing with 850 additions and 0 deletions.
  1. +26 −0 testing/build.sh
  2. +633 −0 testing/mongo_manager.py
  3. +5 −0 testing/replsetmaker.py
  4. +136 −0 testing/run_treasury.py
  5. +25 −0 testing/run_treasury.sh
  6. +25 −0 testing/shardmaker.py
View
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+
+#HADOOPVER="0.23.x"
+HADOOPVER="1.0.x"
+sed "s/hadoopRelease.*/hadoopRelease in ThisBuild := \"$HADOOPVER\"/g" ../build.sbt > ../build2.sbt
+mv ../build2.sbt ../build.sbt
+cd ..
+#./sbt clean
+./sbt package
+./sbt treasury-example/package
+#export HADOOP_HOME="/Users/mike/hadoop/hadoop-0.20.2-cdh3u5"
+export HADOOP_HOME="/Users/mike/hadoop/hadoop-1.0.4"
+#/hadoop-1.0.4"
+
+#
+rm $HADOOP_HOME/lib/mongo-hadoop*.jar
+cp core/target/mongo-hadoop-core_*.jar $HADOOP_HOME/lib/
+cp target/mongo-hadoop_*.jar $HADOOP_HOME/lib/
+#$HADOOP_HOME/bin/hadoop jar examples/treasury_yield/target/treasury-example_*.jar com.mongodb.hadoop.examples.treasury.TreasuryYieldXMLConfig
+#target/mongo-hadoop_0.20.205.0-1.1.0-SNAPSHOT.jar flume/target/mongo-flume-1.1.0-SNAPSHOT.jar examples/treasury_yield/target/treasury-example_0.20.205.0-1.1.0-SNAPSHOT.jar pig/target/mongo-hadoop-pig_0.20.205.0-1.1.0-SNAPSHOT.jar
+
+
+
+
+
Oops, something went wrong.

0 comments on commit e338f84

Please sign in to comment.