This repository has been archived by the owner on Jan 29, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts for testing sample job against cluster.
- Loading branch information
Showing
6 changed files
with
850 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.