Apache Nutch is an extensible and scalable web crawler
NUTCH-1639 bin/crawl fails on mac os (various contributors via snagel)
Julien Niochead6f9515028d
diff --git a/CHANGES.txt b/CHANGES.txtindex 4923d1b08..bdafbf82b 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change LogNutch Development Trunk+* NUTCH-1639 bin/crawl fails on mac os (various contributors via snagel)+* NUTCH-1646 IndexerMapReduce to consider DB status (markus)* NUTCH-1636 Indexer to normalize and filter repr URL (Iain Lopata via snagel)diff --git a/src/bin/crawl b/src/bin/crawlindex 56dfa40ef..8a12902c1 100644--- a/src/bin/crawl+++ b/src/bin/crawl@@ -122,7 +122,7 @@ do# or use lsif [ $mode = "local" ]; then- SEGMENT=`ls -l $CRAWL_PATH/segments/ | sed -e "s/ /\\n/g" | egrep 20[0-9]+ | sort -n | tail -n 1`+ SEGMENT=`ls $CRAWL_PATH/segments/ | sort -n | tail -n 1`elseSEGMENT=`hadoop fs -ls $CRAWL_PATH/segments/ | grep segments | sed -e "s/\//\\n/g" | egrep 20[0-9]+ | sort -n | tail -n 1`fi