This file contains hidden or 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
hadoop jar mongo-hadoop-streaming.jar \ | |
-mapper examples/twitter/twit_map.py \ | |
-reducer examples/twitter/twit_reduce.py \ | |
-inputURI mongodb://127.0.0.1/test.live \ | |
-outputURI mongodb://127.0.0.1/test.twit_reduction \ | |
-file examples/twitter/twit_map.py \ | |
-file examples/twitter/twit_reduce.py |
This file contains hidden or 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
hadoop_version='0.23' | |
hadoop_path="/usr/local/Cellar/hadoop/$hadoop_version.0/libexec/lib" | |
git clone git://github.com/mongodb/mongo-hadoop.git | |
cd mongo-hadoop | |
sed -i '' "s/default/$hadoop_version/g" build.sbt | |
cd streaming | |
./build.sh | |
ln -s ~/.ivy2/cache/org.mongodb/mongo-java-driver/jars/mongo-java-driver-2.7.3.jar . |
This file contains hidden or 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
individual = { | |
_id : ObjectId("4f2978dfaa999d9db02618ce"), | |
AFN : '1XYK-KQJ', | |
name: { | |
first: ['john', 'johannes'], | |
middle: 'peter', | |
last: ['smith', 'sandvik'] | |
}, | |
events : [ |
This file contains hidden or 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
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
stat = status | |
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; $EDITOR `f`" | |
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`" | |
lc = log ORIG_HEAD.. --stat --no-merges | |
smash = merge --no-commit --log | |
eat = branch -M |
NewerOlder