Trying to get mapred stuff to work, and I find it hard
to believe that this is a bug, but just trying to go
through the tutorial, I enter

bin/nutch admin db -create

and get

Exception in thread "main"
java.lang.NoClassDefFoundError: admin

Looking through bin/nutch, sure enough there isn't a
chunk for admin.  But there is in trunk.  If I add it
back in as per my patch below, then it seems to work.

But that sure seems like it would be broken for every
person that walks through the tutorial on mapred.

Earl

 ~/nutch/branches/mapred $ svn diff bin/nutch
Index: bin/nutch
===================================================================
--- bin/nutch   (revision 279726)
+++ bin/nutch   (working copy)
@@ -124,6 +124,8 @@
 # figure out which class to run
 if [ "$COMMAND" = "crawl" ] ; then
   CLASS=org.apache.nutch.crawl.Crawl
+elif [ "$COMMAND" = "admin" ] ; then
+  CLASS=org.apache.nutch.tools.WebDBAdminTool
 elif [ "$COMMAND" = "inject" ] ; then
   CLASS=org.apache.nutch.crawl.Injector
 elif [ "$COMMAND" = "generate" ] ; then


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to