aboutsummaryrefslogtreecommitdiffstats
path: root/please
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2018-08-21 21:28:18 -0700
committerBryan Newbold <bnewbold@archive.org>2018-08-21 21:28:18 -0700
commit9c2324d1b32116dc3a8a0f43c08ee7dac1bdf5f4 (patch)
tree1f3b264118c437130c8a676d560152b0ff9abf07 /please
parente99c1d8485ee232d782d2b82c44dc9e1d0e01044 (diff)
parent2f8a538fb658b3de6bf7c9361bd13f2eb7968abb (diff)
downloadsandcrawler-9c2324d1b32116dc3a8a0f43c08ee7dac1bdf5f4.tar.gz
sandcrawler-9c2324d1b32116dc3a8a0f43c08ee7dac1bdf5f4.zip
Merge branch 'bnewbold-match-scale'
Diffstat (limited to 'please')
-rwxr-xr-xplease5
1 files changed, 5 insertions, 0 deletions
diff --git a/please b/please
index e328410..b32dd79 100755
--- a/please
+++ b/please
@@ -147,10 +147,15 @@ def run_matchcrossref(args):
datetime.strftime(datetime.now(), "%Y-%m-%d-%H%M.%S"))
# Notes: -D options must come after Tool but before class name
# https://github.com/twitter/scalding/wiki/Frequently-asked-questions#how-do-i-pass-parameters-to-my-hadoop-job-number-of-reducers--memory-options--etc-
+ # Compression: changed due to errors in production
+ # https://stackoverflow.com/a/11336820/4682349
cmd = """hadoop jar \
scalding/target/scala-2.11/sandcrawler-assembly-0.2.0-SNAPSHOT.jar \
com.twitter.scalding.Tool \
-Dmapred.reduce.tasks={reducers} \
+ -Dcascading.spill.list.threshold=500000 \
+ -D mapred.output.compress=false \
+ -Dmapred.compress.map.output=true\
sandcrawler.ScoreJob \
--hdfs \
--app.conf.path scalding/ia_cluster.conf \