diff options
author | Bryan Newbold <bnewbold@archive.org> | 2018-08-20 23:46:36 +0000 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2018-08-20 23:46:36 +0000 |
commit | 2f8a538fb658b3de6bf7c9361bd13f2eb7968abb (patch) | |
tree | af8555a41e4b2d9e1d2c6ad96348208824141d75 | |
parent | 531c2939c5e267d29fb3f5e3193eb70b39804953 (diff) | |
download | sandcrawler-2f8a538fb658b3de6bf7c9361bd13f2eb7968abb.tar.gz sandcrawler-2f8a538fb658b3de6bf7c9361bd13f2eb7968abb.zip |
explicit spill and compression settings for ScoreJob
-rwxr-xr-x | please | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -126,10 +126,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 \ |