Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Merge branch 'master' into NUTCH-2333

Roannel Fernández Hernández628b04b90861
diff --cc build.xml
index a8fbc884e,ba8883bcc..2d33f96ac
--- a/build.xml
+++ b/build.xml
@@@ -187,8 -187,8 +187,9 @@@
<packageset dir="${plugins.dir}/mimetype-filter/src/java"/>
<packageset dir="${plugins.dir}/indexer-dummy/src/java"/>
<packageset dir="${plugins.dir}/indexer-elastic/src/java/" />
+ <packageset dir="${plugins.dir}/indexer-elastic-rest/src/java/"/>
<packageset dir="${plugins.dir}/indexer-solr/src/java"/>
+ <packageset dir="${plugins.dir}/indexer-rabbit/src/java"/>
<packageset dir="${plugins.dir}/language-identifier/src/java"/>
<packageset dir="${plugins.dir}/lib-htmlunit/src/java"/>
<packageset dir="${plugins.dir}/lib-http/src/java"/>
@@@ -633,8 -633,8 +634,9 @@@
<packageset dir="${plugins.dir}/mimetype-filter/src/java"/>
<packageset dir="${plugins.dir}/indexer-dummy/src/java"/>
<packageset dir="${plugins.dir}/indexer-elastic/src/java/" />
+ <packageset dir="${plugins.dir}/indexer-elastic-rest/src/java/"/>
<packageset dir="${plugins.dir}/indexer-solr/src/java"/>
+ <packageset dir="${plugins.dir}/indexer-rabbit/src/java"/>
<packageset dir="${plugins.dir}/language-identifier/src/java"/>
<packageset dir="${plugins.dir}/lib-htmlunit/src/java"/>
<packageset dir="${plugins.dir}/lib-http/src/java"/>
@@@ -1035,9 -1035,9 +1037,10 @@@
<source path="${plugins.dir}/mimetype-filter/src/test/" />
<source path="${plugins.dir}/indexer-dummy/src/java/" />
<source path="${plugins.dir}/indexer-solr/src/java/" />
+ <source path="${plugins.dir}/indexer-rabbit/src/java/" />
<source path="${plugins.dir}/indexer-elastic/src/java/" />
<source path="${plugins.dir}/indexer-elastic/src/test/" />
+ <source path="${plugins.dir}/indexer-elastic-rest/src/java/"/>
<source path="${plugins.dir}/index-metadata/src/java/" />
<source path="${plugins.dir}/index-more/src/java/" />
<source path="${plugins.dir}/index-more/src/test/" />
diff --cc conf/nutch-default.xml
index 8fdc2359c,12e1f8e97..1f994933f
--- a/conf/nutch-default.xml
+++ b/conf/nutch-default.xml
@@@ -1886,98 -1894,79 +1894,168 @@@ visit https://wiki.apache.org/nutch/Sim
last operation.</description>
</property>
- <!-- RabbitMQ indexer properties -->
-
+<property>
+ <name>rabbitmq.indexer.server.host</name>
+ <value>localhost</value>
+ <description>
+ Host on which the RabbitMQ server is running. Default "localhost".
+ </description>
+</property>
+
+<property>
+ <name>rabbitmq.indexer.server.port</name>
+ <value>5672</value>
+ <description>
+ Port on which the RabbitMQ server is listening. Default "5672".
+ </description>
+</property>
+
+<property>
+ <name>rabbitmq.indexer.server.virtualhost</name>
+ <value></value>
+ <description>
+ Virtual Host where the exchange is and the user has access. Default "/".
+ </description>
+</property>
+
+<property>
+ <name>rabbitmq.indexer.server.username</name>
+ <value>admin</value>
+ <description>
+ Username for RabbitMQ server. Default "admin"
+ </description>
+</property>
+
+<property>
+ <name>rabbitmq.indexer.server.password</name>
+ <value>admin</value>
+ <description>
+ Password for RabbitMQ server. Default "admin"
+ </description>
+</property>
+
+<property>
+ <name>rabbitmq.indexer.exchange.server</name>
+ <value></value>
+ <description>
+ Name for the exchange server to use. Default "nutch.exchange"
+ </description>
+</property>
+
+<property>
+ <name>rabbitmq.indexer.exchange.type</name>
+ <value></value>
+ <description>
+ Type of the exchange. Default "direct".
+ </description>
+</property>
+
+<property>
+ <name>rabbitmq.indexer.queue.durable</name>
+ <value></value>
+ <description>
+ Message durability into the queue. Default "true".
+ </description>
+</property>
+
+<property>
+ <name>rabbitmq.indexer.queue.name</name>
+ <value></value>
+ <description>
+ Name of the queue where the messages will be sent. Default "nutch.queue"
+ </description>
+</property>
+
+<property>
+ <name>rabbitmq.indexer.queue.routingkey</name>
+ <value></value>
+ <description>
+ The routingKey used by indexer to publish messages to specific queues.
+ If the exchange type is "fanout", then this property is ignored. Default is "nutch.key"
+ </description>
+</property>
+
+<property>
+ <name>rabbitmq.indexer.commit.size</name>
+ <value>250</value>
+ <description>
+ Amount of documents to send into each message. Default "250"
+ </description>
+</property>
+
- <!-- subcollection properties -->
+ <!--elasticsearch rest properties-->
+ <property>
+ <name>elastic.rest.host</name>
+ <value></value>
+ <description>The hostname to send documents to using Elasticsearch Jest. Both host
+ and port must be defined</description>
+ </property>
+
+ <property>
+ <name>elastic.rest.port</name>
+ <value></value>
+ <description>The port to connect to using Elasticsearch Jest.</description>
+ </property>
+
+ <property>
+ <name>elastic.rest.index</name>
+ <value>nutch</value>
+ <description>Default index to send documents to.</description>
+ </property>
+
+ <property>
+ <name>elastic.rest.type</name>
+ <value>doc</value>
+ <description>Default type to send documents to.</description>
+ </property>
+
+ <property>
+ <name>elastic.rest.max.bulk.docs</name>
+ <value>250</value>
+ <description>Maximum size of the bulk in number of documents.</description>
+ </property>
+
+ <property>
+ <name>elastic.rest.max.bulk.size</name>
+ <value>26214400</value>
+ <description>Maximum size of the bulk in bytes.</description>
+ </property>
+
+ <property>
+ <name>elastic.rest.https</name>
+ <value>false</value>
+ <description>
+ "true" to enable https, "false" to disable https
+ If you've disabled http access (by forcing https), be sure to
+ set this to true, otherwise you might get "connection reset by peer".
+ </description>
+ </property>
+
+ <property>
+ <name>elastic.rest.user</name>
+ <value></value>
+ <description>Username for auth credentials (only used when https is enabled)</description>
+ </property>
+
+ <property>
+ <name>elastic.rest.password</name>
+ <value></value>
+ <description>Password for auth credentials (only used when https is enabled)</description>
+ </property>
+
+ <property>
+ <name>elastic.rest.trustallhostnames</name>
+ <value>false</value>
+ <description>
+ "true" to trust elasticsearch server's certificate even if its listed domain name does not
+ match the domain they are hosted on
+ "false" to check if the elasticsearch server's certificate's listed domain is the same domain
+ that it is hosted on, and if it doesn't, then fail to index
+ (only used when https is enabled)
+ </description>
+ </property>
+
+ <!-- subcollection properties -->
<property>
<name>subcollection.default.fieldname</name>
diff --cc src/plugin/build.xml
index 8c488244f,d8269c43f..9074654de
--- a/src/plugin/build.xml
+++ b/src/plugin/build.xml
@@@ -41,8 -41,8 +41,9 @@@
<ant dir="indexer-cloudsearch" target="deploy"/>
<ant dir="indexer-dummy" target="deploy"/>
<ant dir="indexer-elastic" target="deploy"/>
+ <ant dir="indexer-elastic-rest" target="deploy"/>
<ant dir="indexer-solr" target="deploy"/>
+ <ant dir="indexer-rabbit" target="deploy"/>
<ant dir="language-identifier" target="deploy"/>
<ant dir="lib-http" target="deploy"/>
<ant dir="lib-nekohtml" target="deploy"/>
@@@ -161,8 -161,8 +162,9 @@@
<ant dir="indexer-cloudsearch" target="clean"/>
<ant dir="indexer-dummy" target="clean"/>
<ant dir="indexer-elastic" target="clean"/>
+ <ant dir="indexer-elastic-rest" target="clean"/>
<ant dir="indexer-solr" target="clean"/>
+ <ant dir="indexer-rabbit" target="clean"/>
<ant dir="language-identifier" target="clean"/>
<!-- <ant dir="lib-commons-httpclient" target="clean"/> -->
<ant dir="lib-http" target="clean"/>