Hi,
I am a beginner with nutch and everything. Can anyone help me with the 
configuration?

I follower the instruction in  
https://gist.github.com/xrstf/b48a970098a8e76943b9

It seems that my building process complain plugin: indexer-elastic? My thanks 
in advance!!!

compile:
     [echo] Compiling plugin: indexer-elastic
    [javac] Compiling 3 source files to 
/home/dan/apache-nutch-2.3/build/indexer-elastic/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
    [javac] 
/home/dan/apache-nutch-2.3/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java:108:
 error: no suitable constructor found for InetSocketTransportAddress(String,int)
    [javac]           .addTransportAddress(new InetSocketTransportAddress(host, 
port));
    [javac]                                ^
    [javac]     constructor 
InetSocketTransportAddress.InetSocketTransportAddress(InetSocketAddress) is not 
applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac]     constructor 
InetSocketTransportAddress.InetSocketTransportAddress(InetAddress,int) is not 
applicable
    [javac]       (actual argument String cannot be converted to InetAddress by 
method invocation conversion)
    [javac]     constructor 
InetSocketTransportAddress.InetSocketTransportAddress() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac]     constructor 
InetSocketTransportAddress.InetSocketTransportAddress(StreamInput) is not 
applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] 
/home/dan/apache-nutch-2.3/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java:107:
 error: constructor TransportClient in class TransportClient cannot be applied 
to given types;
    [javac]       client = new TransportClient(settings)
    [javac]                ^
    [javac]   required: Injector
    [javac]   found: Settings
    [javac]   reason: actual argument Settings cannot be converted to Injector 
by method invocation conversion
    [javac] 2 errors
    [javac] 1 warning

BUILD FAILED
/home/dan/apache-nutch-2.3/build.xml:113: The following error occurred while 
executing this line:
/home/dan/apache-nutch-2.3/src/plugin/build.xml:35: The following error 
occurred while executing this line:
/home/dan/apache-nutch-2.3/src/plugin/build-plugin.xml:117: Compile failed; see 
the compiler error output for details.


Regards/Dan Wu

Reply via email to