Apache Nutch is an extensible and scalable web crawler
NUTCH-2148 Review and update mapred --> mapreduce config params in crawl script
Lewis John McGibbneyda6f381e8b74
diff --git a/CHANGES.txt b/CHANGES.txtindex c340b43e3..01db4e2b2 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change LogNutch Current Development 1.11-SNAPSHOT+* NUTCH-2128 Review and update mapred --> mapreduce config params in crawl script (lewismc)+* NUTCH-2141 Change the InteractiveSelenium plugin handler Interface to return page content(Balaji Gurumurthy via mattmann)diff --git a/src/bin/crawl b/src/bin/crawlindex d008c1802..567d35e83 100644--- a/src/bin/crawl+++ b/src/bin/crawl@@ -109,7 +109,7 @@ finumSlaves=1# and the total number of available tasks-# sets Hadoop parameter "mapred.reduce.tasks"+# sets Hadoop parameter "mapreduce.job.reduces"numTasks=`expr $numSlaves \* 2`# number of urls to fetch in one iteration@@ -135,7 +135,7 @@ fi# note that some of the options listed here could be set in the# corresponding hadoop site xml param file-commonOptions="-D mapred.reduce.tasks=$numTasks -D mapred.child.java.opts=-Xmx1000m -D mapred.reduce.tasks.speculative.execution=false -D mapred.map.tasks.speculative.execution=false -D mapred.compress.map.output=true"+commonOptions="-D mapreduce.job.reduces=$numTasks -D mapred.child.java.opts=-Xmx1000m -D mapreduce.reduce.speculative=false -D mapreduce.map.speculative=false -D mapreduce.map.output.compress=true"# check that hadoop can be found on the pathif [ $mode = "distributed" ]; then@@ -232,7 +232,7 @@ doecho "Parsing : $SEGMENT"# enable the skipping of records for the parsing so that a dodgy document# so that it does not fail the full task- skipRecordsOptions="-D mapred.skip.attempts.to.start.skipping=2 -D mapred.skip.map.max.skip.records=1"+ skipRecordsOptions="-D mapreduce.task.skip.start.attempts=2 -D mapreduce.map.skip.maxrecords=1"__bin_nutch parse $commonOptions $skipRecordsOptions "$CRAWL_PATH"/segments/$SEGMENT# updatedb with this segment