Hi Patrick,
$ is used inside most shells to indicate that the next word is a variable
which should be expanded, e.g.
$ Reader="blub"
$ echo LinkDumper$Reader
LinkDumperblub
Unset variables are expanded to the empty word.
In short, you called LinkDumper. To call LinkDumper$Reader
you have to escape the $, e.g.:
% bin/nutch org.apache.nutch.scoring.webgraph.LinkDumper\$Reader
LinkDumper$Reader usage: <webgraphdb> <url>
Cheers,
Sebastian
On 10/04/2013 09:44 AM, Patrick Kirsch wrote:
> Hey list,
>
> I'm trying to dump link information from webgraph for one URL.
> The source
> (apache-nutch-1.7/src/java/org/apache/nutch/scoring/webgraph/LinkDumper.java)
> says:
> [..]
> public static class Reader {
>
> public static void main(String[] args)
> throws Exception {
>
> if (args == null || args.length < 2) {
> System.out.println("LinkDumper$Reader usage: <webgraphdb> <url>");
> return;
> }
>
> [..]
>
> Now, If I try:
> $ ./bin/nutch org.apache.nutch.scoring.webgraph.LinkDumper$Reader
> crawl_test/webgraph/
> 'http://www.test.de/'
> usage: LinkDumper
> -help show this help message
> -webgraphdb <webgraphdb> the web graph database to use
>
> So, I'm not able to use the Reader class for getting information.
> Or do I use the LinkDumper$Reader in a wrong way?
> Googling and nutch wiki did not help further
>
>
> Regards,
> Patrick