Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Add tika-config.xml to suppress Tika warnings on stderr

Sebastian Nagel2be2052bc74a
diff --git a/conf/nutch-default.xml b/conf/nutch-default.xml
index a53cf7b96..bcb2e9e2f 100644
--- a/conf/nutch-default.xml
+++ b/conf/nutch-default.xml
@@ -1406,6 +1406,12 @@ CAUTION: Set the parser.timeout to -1 or a bigger value than 30, when using this
</property>
-->
+<property>
+ <name>tika.config.file</name>
+ <value>tika-config.xml</value>
+ <description>Nutch-specific Tika config file</description>
+</property>
+
<property>
<name>tika.uppercase.element.names</name>
<value>true</value>
diff --git a/conf/tika-config.xml.template b/conf/tika-config.xml.template
new file mode 100644
index 000000000..30af37d7b
--- /dev/null
+++ b/conf/tika-config.xml.template
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<properties>
+ <service-loader initializableProblemHandler="ignore"/>
+</properties>