Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-1853 Add commented out WebGraph executions to ./bin/crawl

Lewis John McGibbney9f9b852452ab
diff --git a/CHANGES.txt b/CHANGES.txt
index 7fd2cce69..b598c1910 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,8 @@ Nutch Change Log
Nutch Current Development
+* NUTCH-1853 Add commented out WebGraph executions to ./bin/crawl (lewismc)
+
* NUTCH-1844 testresources/testcrawl not referenced anywhere in code (mattmann)
* NUTCH-1839 Improve WebGraph CLI parsing (lewismc)
diff --git a/src/bin/crawl b/src/bin/crawl
index 73a1b6413..605602eca 100644
--- a/src/bin/crawl
+++ b/src/bin/crawl
@@ -203,7 +203,45 @@ do
else
echo "Skipping indexing: no SOLR url provided."
fi
+
+ #######################################################
+ # The following commands fall into WebGraph territory
+ # and should be uncommented based on your requirements
+ #######################################################
+ #echo "Building WebGraph within $CRAWL_PATH on all segments in $CRAWL_PATH/segments/"
+ #"$bin/nutch" webgraph $commonOptions -filter -normalize -segmentDir "$CRAWL_PATH"/segments/ -webgraphdb "$CRAWL_PATH"
+
+ #if [ $? -ne 0 ]
+ # then exit $?
+ #fi
+
+ #echo "Running Loops Job on WebGraph within $CRAWL_PATH"
+ #"$bin/nutch" org.apache.nutch.scoring.webgraph.Loops $commonOptions -webgraphdb "$CRAWL_PATH"
+
+ #if [ $? -ne 0 ]
+ # then exit $?
+ #fi
+
+ #echo "Running LinkRank Algorithm on WebGraph within $CRAWL_PATH"
+ #"$bin/nutch" linkrank $commonOptions -webgraphdb "$CRAWL_PATH"
+
+ #if [ $? -ne 0 ]
+ # then exit $?
+ #fi
+
+ #echo "Running ScoreUpdater Job with $CRAWL_PATH/crawldb and WebGraph within $CRAWL_PATH"
+ #"$bin/nutch" scoreupdater $commonOptions -crawldb "$CRAWL_PATH"/crawldb -webgraphdb "$CRAWL_PATH"
+
+ #if [ $? -ne 0 ]
+ # then exit $?
+ #fi
+
+ #echo "Running NodeDumper on WebGraph within $CRAWL_PATH and dumping output to $CRAWL_PATH/dump/scores"
+ #"$bin/nutch" nodedumper $commonOptions -scores -topn 1000 -webgraphdb "$CRAWL_PATH" -output "$CRAWL_PATH"/dump/scores
+ #if [ $? -ne 0 ]
+ # then exit $?
+ #fi
done
exit 0