Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2882 Configure NutchUiServer for DEPLOYMENT and improve logging (#690)

Lewis John McGibbneyd6875e135153
diff --git a/conf/log4j.properties b/conf/log4j.properties
index 67311d1bc..7b010cbc1 100644
--- a/conf/log4j.properties
+++ b/conf/log4j.properties
@@ -60,9 +60,11 @@ log4j.logger.org.apache.nutch.scoring.webgraph.NodeDumper=INFO,cmdstdout
log4j.logger.org.apache.nutch.segment.SegmentChecker=INFO,cmdstdout
log4j.logger.org.apache.nutch.segment.SegmentMerger=INFO,cmdstdout
log4j.logger.org.apache.nutch.segment.SegmentReader=INFO,cmdstdout
+log4j.logger.org.apache.nutch.service.NutchServer=INFO,cmdstdout
log4j.logger.org.apache.nutch.tools.FreeGenerator=INFO,cmdstdout
log4j.logger.org.apache.nutch.util.domain.DomainStatistics=INFO,cmdstdout
log4j.logger.org.apache.nutch.util.SitemapProcessor=INFO,cmdstdout
+log4j.logger.org.apache.nutch.webui.NutchUiServer=INFO,cmdstdout
log4j.logger.org.apache.nutch=INFO
log4j.logger.org.apache.hadoop=WARN
diff --git a/src/java/org/apache/nutch/webui/NutchUiApplication.java b/src/java/org/apache/nutch/webui/NutchUiApplication.java
index 67ac28112..fc088744d 100644
--- a/src/java/org/apache/nutch/webui/NutchUiApplication.java
+++ b/src/java/org/apache/nutch/webui/NutchUiApplication.java
@@ -18,6 +18,7 @@ package org.apache.nutch.webui;
import org.apache.nutch.webui.pages.DashboardPage;
import org.apache.nutch.webui.pages.assets.NutchUiCssReference;
+import org.apache.wicket.RuntimeConfigurationType;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
@@ -61,6 +62,11 @@ public class NutchUiApplication extends WebApplication implements
new SpringComponentInjector(this, context));
}
+ @Override
+ public RuntimeConfigurationType getConfigurationType() {
+ return RuntimeConfigurationType.DEPLOYMENT;
+ }
+
private void configureTheme(BootstrapSettings settings) {
Theme theme = new Theme(THEME_NAME, BootstrapCssReference.instance(),
FontAwesomeCssReference.instance(), NutchUiCssReference.instance());