Apache Nutch is an extensible and scalable web crawler
NUTH-2329 Update Slf4j logging for Java 8 and upgrade miredot plugin version
Lewis John McGibbney9092e233f49b
diff --git a/ivy/ivy.xml b/ivy/ivy.xmlindex adc7e91bc..853a63906 100644--- a/ivy/ivy.xml+++ b/ivy/ivy.xml@@ -128,8 +128,8 @@<dependency org="de.agilecoders.wicket" name="wicket-bootstrap-core" rev="0.9.2" conf="*->default" /><dependency org="de.agilecoders.wicket" name="wicket-bootstrap-extensions" rev="0.9.2" conf="*->default" />- <!-- RabbitMQ dependencies -->- <dependency org="com.rabbitmq" name="amqp-client" rev="3.6.5" conf="*->default" />+ <!-- RabbitMQ dependencies -->+ <dependency org="com.rabbitmq" name="amqp-client" rev="3.6.5" conf="*->default" /><!--global exclusion --><exclude module="jmxtools" />diff --git a/ivy/mvn.template b/ivy/mvn.templateindex 68813fc8e..8e3c79449 100644--- a/ivy/mvn.template+++ b/ivy/mvn.template@@ -1,4 +1,4 @@- <?xml version="1.0"?>+<?xml version="1.0"?><!--Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements. See the NOTICE file distributed with@@ -125,7 +125,7 @@<plugin><groupId>com.qmino</groupId><artifactId>miredot-plugin</artifactId>- <version>2.0-RC2</version>+ <version>2.0.1</version><executions><execution><goals>@@ -134,7 +134,7 @@</execution></executions><configuration>- <organizationId>c579ca2e-c194-4a14-a7f0-f39ef4ec3c2d</organizationId>+ <licence>cHJvamVjdHxvcmcuYXBhY2hlLm51dGNoLm51dGNofDIwMTktMTAtMzB8dHJ1ZXwtMSNNQ3dDRkJMb0FjM283ME1YRERRMkFJemY1QmxZUjAwK0FoUkJVMlJrVi81RlBQc25zMUZ2S2g0Q29weGFxZz09</licence><restModel><restFramework><name>jax-rs</name>diff --git a/src/java/org/apache/nutch/fetcher/Fetcher.java b/src/java/org/apache/nutch/fetcher/Fetcher.javaindex e60b10fa6..17f5a936d 100644--- a/src/java/org/apache/nutch/fetcher/Fetcher.java+++ b/src/java/org/apache/nutch/fetcher/Fetcher.java@@ -347,7 +347,7 @@ MapRunnable<Text, CrawlDatum, Text, NutchWritable> {additionalThreads = (availableThreads < additionalThreads ? availableThreads: additionalThreads);LOG.info("Has space for more threads ({} vs {} kbps) \t=> adding {} new threads",- (bpsSinceLastCheck / 1000), (targetBandwidth / 1000), additionalThreads);+ new Object[]{(bpsSinceLastCheck / 1000), (targetBandwidth / 1000), additionalThreads});// activate new threadsfor (int i = 0; i < additionalThreads; i++) {FetcherThread thread = new FetcherThread(getConf(), getActiveThreads(), fetchQueues,@@ -364,7 +364,7 @@ MapRunnable<Text, CrawlDatum, Text, NutchWritable> {long excessBdw = bpsSinceLastCheck - targetBandwidth;int excessThreads = Math.round(excessBdw / averageBdwPerThread);LOG.info("Exceeding target bandwidth ({} vs {} kbps). \t=> excessThreads = {}",- bpsSinceLastCheck / 1000, (targetBandwidth / 1000), excessThreads);+ new Object[]{bpsSinceLastCheck / 1000, (targetBandwidth / 1000), excessThreads});// keep at least oneif (excessThreads >= fetcherThreads.size())excessThreads = 0;