You are asking the right question at the right place. The example shown in the tutorial was for Nutch 2.X series. The 1.X Injector needs an extra param as input which is the location of the crawldb to inject the urls into. (For first time, it would create a new one on the location in the command).
Thanks, Tejas On Sun, Dec 22, 2013 at 8:05 PM, Bin Wang <binwang...@gmail.com> wrote: > Hi there, > > I was following the RunNutchInEclipse tutorial (1.7 Nutch / trunk > example). > > After I configured the java run configurations as the tutorial showed.. > and clicked run. It did not show the injector process as shown in the > tutorial, and instead, it showed error: > > Usage: Injector <crawldb> <url_dir> > > I took a look at the source code of the injector class and obviously, it > is somehow expecting two arguments. > > public void inject(Path crawlDb, Path urlDir) throws IOException.. > > I don't know how everyone got through this step only passing the URL path > to eclipse. > > Show I add something more in the run configuration to also pass the > crawldb path as another argument? If so, where should the crawldb suppose > to locate? > > (I am new to this mail list and assuming, question at the source code > level might be a better fit for the developer one. So let me know if I am > asking the wrong question in the wrong place..) > > /usr/bin > > --- here is some basically information of the platform that I am working > on ---- > Mac OS X 10.8.4 > Apache Ant(TM) version 1.8.2 compiled on June 16 2012 > svn, version 1.6.18 (r1303927) compiled Feb 6 2013, 14:18:52 > Juno Eclipse SDK Version: 4.2.2 Build id: M20130204-1200 > > System JAVA: > java version "1.7.0_25" > Java(TM) SE Runtime Environment (build 1.7.0_25-b15) > Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode) > > Eclipse JAVA: > JVM 1.6.0.jdk > > >