Apache Nutch is an extensible and scalable web crawler
NUTCH-853 Remove unused parameter files from conf/
Julien Nioche5e690a608d3a
diff --git a/build.xml b/build.xmlindex 3d9432187..3af750a2d 100644--- a/build.xml+++ b/build.xml@@ -148,7 +148,7 @@<fileset dir="lib/native"/></copy><copy todir="${runtime.local}/conf">- <fileset dir="conf"/>+ <fileset dir="conf" excludes="*.template"/></copy><copy todir="${runtime.local}/bin"><fileset dir="src/bin"/>diff --git a/conf/capacity-scheduler.xml.template b/conf/capacity-scheduler.xml.templatedeleted file mode 100644index e35b33560..000000000--- a/conf/capacity-scheduler.xml.template+++ /dev/null@@ -1,98 +0,0 @@-<?xml version="1.0"?>--<!-- This is the configuration file for the resource manager in Hadoop. -->-<!-- You can configure various scheduling parameters related to queues. -->-<!-- The properties for a queue follow a naming convention,such as, -->-<!-- mapred.capacity-scheduler.queue.<queue-name>.property-name. -->--<configuration>-- <property>- <name>mapred.capacity-scheduler.queue.default.capacity</name>- <value>100</value>- <description>Percentage of the number of slots in the cluster that are- to be available for jobs in this queue.- </description>- </property>-- <property>- <name>mapred.capacity-scheduler.queue.default.supports-priority</name>- <value>false</value>- <description>If true, priorities of jobs will be taken into- account in scheduling decisions.- </description>- </property>-- <property>- <name>mapred.capacity-scheduler.queue.default.minimum-user-limit-percent</name>- <value>100</value>- <description> Each queue enforces a limit on the percentage of resources- allocated to a user at any given time, if there is competition for them.- This user limit can vary between a minimum and maximum value. The former- depends on the number of users who have submitted jobs, and the latter is- set to this property value. For example, suppose the value of this- property is 25. If two users have submitted jobs to a queue, no single- user can use more than 50% of the queue resources. If a third user submits- a job, no single user can use more than 33% of the queue resources. With 4- or more users, no user can use more than 25% of the queue's resources. A- value of 100 implies no user limits are imposed.- </description>- </property>- <property>- <name>mapred.capacity-scheduler.queue.default.maximum-initialized-jobs-per-user</name>- <value>2</value>- <description>The maximum number of jobs to be pre-initialized for a user- of the job queue.- </description>- </property>-- <!-- The default configuration settings for the capacity task scheduler -->- <!-- The default values would be applied to all the queues which don't have -->- <!-- the appropriate property for the particular queue -->- <property>- <name>mapred.capacity-scheduler.default-supports-priority</name>- <value>false</value>- <description>If true, priorities of jobs will be taken into- account in scheduling decisions by default in a job queue.- </description>- </property>-- <property>- <name>mapred.capacity-scheduler.default-minimum-user-limit-percent</name>- <value>100</value>- <description>The percentage of the resources limited to a particular user- for the job queue at any given point of time by default.- </description>- </property>-- <property>- <name>mapred.capacity-scheduler.default-maximum-initialized-jobs-per-user</name>- <value>2</value>- <description>The maximum number of jobs to be pre-initialized for a user- of the job queue.- </description>- </property>--- <!-- Capacity scheduler Job Initialization configuration parameters -->- <property>- <name>mapred.capacity-scheduler.init-poll-interval</name>- <value>5000</value>- <description>The amount of time in miliseconds which is used to poll- the job queues for jobs to initialize.- </description>- </property>- <property>- <name>mapred.capacity-scheduler.init-worker-threads</name>- <value>5</value>- <description>Number of worker threads which would be used by- Initialization poller to initialize jobs in a set of queue.- If number mentioned in property is equal to number of job queues- then a single thread would initialize jobs in a queue. If lesser- then a thread would get a set of queues assigned. If the number- is greater then number of threads would be equal to number of- job queues.- </description>- </property>--</configuration>diff --git a/conf/context.xsl b/conf/context.xsldeleted file mode 100644index 32e48bbd9..000000000--- a/conf/context.xsl+++ /dev/null@@ -1,88 +0,0 @@-<?xml version="1.0" encoding="ISO-8859-1"?>-<!--- 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.-- Author : Chris Mattmann- Auhtor : J�r�me Charron- Description: This xsl file is used to transform dynamic properties out of the- nutch-default.xml file into a deployable Context.xml file for configuring- the Nutch war file in a servlet container.--->--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">--<xsl:template match="/">-<Context path="/nutch" docBase="nutch-0.9-dev.war"- debug="5" reloadable="true" crossContext="true">--<xsl:for-each select="configuration/property">--<!-- "searcher." properties -->-<xsl:call-template name="parameter">- <xsl:with-param name="property" select="current()"/>- <xsl:with-param name="filter" select="'searcher.'"/>-</xsl:call-template>--<!-- "plugin." properties -->-<xsl:call-template name="parameter">- <xsl:with-param name="property" select="current()"/>- <xsl:with-param name="filter" select="'plugin.'"/>-</xsl:call-template>--<!-- "extension.clustering." properties -->-<xsl:call-template name="parameter">- <xsl:with-param name="property" select="current()"/>- <xsl:with-param name="filter" select="'extension.clustering.'"/>-</xsl:call-template>--<!-- "extension.ontology." properties -->-<xsl:call-template name="parameter">- <xsl:with-param name="property" select="current()"/>- <xsl:with-param name="filter" select="'extension.ontology.'"/>-</xsl:call-template>--<!-- "query." properties -->-<xsl:call-template name="parameter">- <xsl:with-param name="property" select="current()"/>- <xsl:with-param name="filter" select="'query.'"/>-</xsl:call-template>--</xsl:for-each>--</Context>-</xsl:template>---<!--- ! Template used to write out a parameter if the property's- ! name contains the specified filter string.- !-->-<xsl:template name="parameter">- <xsl:param name="property"/>- <xsl:param name="filter"/>- <xsl:if test="contains(name, $filter)">- <Parameter override="false">- <xsl:attribute name="name">- <xsl:value-of select="name"/>- </xsl:attribute>- <xsl:attribute name="value">- <xsl:value-of select="value"/>- </xsl:attribute>- </Parameter>- </xsl:if>-</xsl:template>--</xsl:stylesheet>diff --git a/conf/core-site.xml.template b/conf/core-site.xml.templatedeleted file mode 100644index 970c8fe0e..000000000--- a/conf/core-site.xml.template+++ /dev/null@@ -1,8 +0,0 @@-<?xml version="1.0"?>-<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>--<!-- Put site-specific property overrides in this file. -->--<configuration>--</configuration>diff --git a/conf/crawl-urlfilter.txt.template b/conf/crawl-urlfilter.txt.templatedeleted file mode 100644index c04d40db0..000000000--- a/conf/crawl-urlfilter.txt.template+++ /dev/null@@ -1,43 +0,0 @@-# 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.---# The url filter file used by the crawl command.--# Better for intranet crawling.-# Be sure to change MY.DOMAIN.NAME to your domain name.--# Each non-comment, non-blank line contains a regular expression-# prefixed by '+' or '-'. The first matching pattern in the file-# determines whether a URL is included or ignored. If no pattern-# matches, the URL is ignored.--# skip file:, ftp:, & mailto: urls--^(file|ftp|mailto):--# skip image and other suffixes we can't yet parse--\.(gif|GIF|jpg|JPG|png|PNG|ico|ICO|css|sit|eps|wmf|zip|ppt|mpg|xls|gz|rpm|tgz|mov|MOV|exe|jpeg|JPEG|bmp|BMP)$--# skip URLs containing certain characters as probable queries, etc.--[?*!@=]--# skip URLs with slash-delimited segment that repeats 3+ times, to break loops--.*(/[^/]+)/[^/]+\1/[^/]+\1/--# accept hosts in MY.DOMAIN.NAME-+^http://([a-z0-9]*\.)*MY.DOMAIN.NAME/--# skip everything else--.diff --git a/conf/hadoop-env.sh.template b/conf/hadoop-env.sh.templatedeleted file mode 100644index 9050a6ea5..000000000--- a/conf/hadoop-env.sh.template+++ /dev/null@@ -1,33 +0,0 @@-# Set Hadoop-specific environment variables here.--# The only required environment variable is JAVA_HOME. All others are-# optional. When running a distributed configuration it is best to-# set JAVA_HOME in this file, so that it is correctly defined on-# remote nodes.--# The java implementation to use. Required.-# export JAVA_HOME=/usr/bin/java--# The maximum amount of heap to use, in MB. Default is 1000.-# export HADOOP_HEAPSIZE=2000--# Extra Java runtime options. Empty by default.-# export HADOOP_OPTS=-server--# Extra ssh options. Default: '-o ConnectTimeout=1 -o SendEnv=HADOOP_CONF_DIR'.-# export HADOOP_SSH_OPTS="-o ConnectTimeout=1 -o SendEnv=HADOOP_CONF_DIR"--# Where log files are stored. $HADOOP_HOME/logs by default.-# export HADOOP_LOG_DIR=${HADOOP_HOME}/logs--# File naming remote slave hosts. $HADOOP_HOME/conf/slaves by default.-# export HADOOP_SLAVES=${HADOOP_HOME}/conf/slaves--# host:path where hadoop code should be rsync'd from. Unset by default.-# export HADOOP_MASTER=master:/home/$USER/src/hadoop--# The directory where pid files are stored. /tmp by default.-# export HADOOP_PID_DIR=/var/hadoop/pids--# A string representing this instance of hadoop. $USER by default.-# export HADOOP_IDENT_STRING=$USERdiff --git a/conf/hadoop-metrics.properties b/conf/hadoop-metrics.propertiesdeleted file mode 100644index d04dffc43..000000000--- a/conf/hadoop-metrics.properties+++ /dev/null@@ -1,40 +0,0 @@-# Configuration of the "dfs" context for null-dfs.class=org.apache.hadoop.metrics.spi.NullContext--# Configuration of the "dfs" context for file-#dfs.class=org.apache.hadoop.metrics.file.FileContext-#dfs.period=10-#dfs.fileName=/tmp/dfsmetrics.log--# Configuration of the "dfs" context for ganglia-# dfs.class=org.apache.hadoop.metrics.ganglia.GangliaContext-# dfs.period=10-# dfs.servers=localhost:8649---# Configuration of the "mapred" context for null-mapred.class=org.apache.hadoop.metrics.spi.NullContext--# Configuration of the "mapred" context for file-#mapred.class=org.apache.hadoop.metrics.file.FileContext-#mapred.period=10-#mapred.fileName=/tmp/mrmetrics.log--# Configuration of the "mapred" context for ganglia-# mapred.class=org.apache.hadoop.metrics.ganglia.GangliaContext-# mapred.period=10-# mapred.servers=localhost:8649---# Configuration of the "jvm" context for null-jvm.class=org.apache.hadoop.metrics.spi.NullContext--# Configuration of the "jvm" context for file-#jvm.class=org.apache.hadoop.metrics.file.FileContext-#jvm.period=10-#jvm.fileName=/tmp/jvmmetrics.log--# Configuration of the "jvm" context for ganglia-# jvm.class=org.apache.hadoop.metrics.ganglia.GangliaContext-# jvm.period=10-# jvm.servers=localhost:8649diff --git a/conf/hadoop-policy.xml.template b/conf/hadoop-policy.xml.templatedeleted file mode 100644index ef48f2bbe..000000000--- a/conf/hadoop-policy.xml.template+++ /dev/null@@ -1,97 +0,0 @@-<?xml version="1.0"?>-<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>--<!-- Put site-specific property overrides in this file. -->--<configuration>- <property>- <name>security.client.protocol.acl</name>- <value>*</value>- <description>ACL for ClientProtocol, which is used by user code- via the DistributedFileSystem.- The ACL is a comma-separated list of user and group names. The user and- group list is separated by a blank. For e.g. "alice,bob users,wheel".- A special value of "*" means all users are allowed.</description>- </property>-- <property>- <name>security.client.datanode.protocol.acl</name>- <value>*</value>- <description>ACL for ClientDatanodeProtocol, the client-to-datanode protocol- for block recovery.- The ACL is a comma-separated list of user and group names. The user and- group list is separated by a blank. For e.g. "alice,bob users,wheel".- A special value of "*" means all users are allowed.</description>- </property>-- <property>- <name>security.datanode.protocol.acl</name>- <value>*</value>- <description>ACL for DatanodeProtocol, which is used by datanodes to- communicate with the namenode.- The ACL is a comma-separated list of user and group names. The user and- group list is separated by a blank. For e.g. "alice,bob users,wheel".- A special value of "*" means all users are allowed.</description>- </property>-- <property>- <name>security.inter.datanode.protocol.acl</name>- <value>*</value>- <description>ACL for InterDatanodeProtocol, the inter-datanode protocol- for updating generation timestamp.- The ACL is a comma-separated list of user and group names. The user and- group list is separated by a blank. For e.g. "alice,bob users,wheel".- A special value of "*" means all users are allowed.</description>- </property>-- <property>- <name>security.namenode.protocol.acl</name>- <value>*</value>- <description>ACL for NamenodeProtocol, the protocol used by the secondary- namenode to communicate with the namenode.- The ACL is a comma-separated list of user and group names. The user and- group list is separated by a blank. For e.g. "alice,bob users,wheel".- A special value of "*" means all users are allowed.</description>- </property>-- <property>- <name>security.inter.tracker.protocol.acl</name>- <value>*</value>- <description>ACL for InterTrackerProtocol, used by the tasktrackers to- communicate with the jobtracker.- The ACL is a comma-separated list of user and group names. The user and- group list is separated by a blank. For e.g. "alice,bob users,wheel".- A special value of "*" means all users are allowed.</description>- </property>-- <property>- <name>security.job.submission.protocol.acl</name>- <value>*</value>- <description>ACL for JobSubmissionProtocol, used by job clients to- communciate with the jobtracker for job submission, querying job status etc.- The ACL is a comma-separated list of user and group names. The user and- group list is separated by a blank. For e.g. "alice,bob users,wheel".- A special value of "*" means all users are allowed.</description>- </property>-- <property>- <name>security.task.umbilical.protocol.acl</name>- <value>*</value>- <description>ACL for TaskUmbilicalProtocol, used by the map and reduce- tasks to communicate with the parent tasktracker.- The ACL is a comma-separated list of user and group names. The user and- group list is separated by a blank. For e.g. "alice,bob users,wheel".- A special value of "*" means all users are allowed.</description>- </property>-- <property>- <name>security.refresh.policy.protocol.acl</name>- <value>*</value>- <description>ACL for RefreshAuthorizationPolicyProtocol, used by the- dfsadmin and mradmin commands to refresh the security policy in-effect.- The ACL is a comma-separated list of user and group names. The user and- group list is separated by a blank. For e.g. "alice,bob users,wheel".- A special value of "*" means all users are allowed.</description>- </property>--</configuration>diff --git a/conf/hdfs-site.xml.template b/conf/hdfs-site.xml.templatedeleted file mode 100644index 970c8fe0e..000000000--- a/conf/hdfs-site.xml.template+++ /dev/null@@ -1,8 +0,0 @@-<?xml version="1.0"?>-<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>--<!-- Put site-specific property overrides in this file. -->--<configuration>--</configuration>diff --git a/conf/mapred-site.xml.template b/conf/mapred-site.xml.templatedeleted file mode 100644index 970c8fe0e..000000000--- a/conf/mapred-site.xml.template+++ /dev/null@@ -1,8 +0,0 @@-<?xml version="1.0"?>-<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>--<!-- Put site-specific property overrides in this file. -->--<configuration>--</configuration>diff --git a/conf/masters b/conf/mastersdeleted file mode 100644index 2fbb50c4a..000000000--- a/conf/masters+++ /dev/null@@ -1 +0,0 @@-localhostdiff --git a/conf/slaves.template b/conf/slaves.templatedeleted file mode 100644index 2fbb50c4a..000000000--- a/conf/slaves.template+++ /dev/null@@ -1 +0,0 @@-localhost