diff options
Diffstat (limited to 'core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf')
8 files changed, 287 insertions, 0 deletions
diff --git a/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/configuration.xsl b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/configuration.xsl new file mode 100644 index 0000000000..377cdbeb93 --- /dev/null +++ b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/configuration.xsl @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> +<xsl:output method="html"/> +<xsl:template match="configuration"> +<html> +<body> +<table border="1"> +<tr> + <td>name</td> + <td>value</td> + <td>description</td> +</tr> +<xsl:for-each select="property"> +<tr> + <td><a name="{name}"><xsl:value-of select="name"/></a></td> + <td><xsl:value-of select="value"/></td> + <td><xsl:value-of select="description"/></td> +</tr> +</xsl:for-each> +</table> +</body> +</html> +</xsl:template> +</xsl:stylesheet> diff --git a/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/hdfsproxy-default.xml b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/hdfsproxy-default.xml new file mode 100644 index 0000000000..0d2a006c8e --- /dev/null +++ b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/hdfsproxy-default.xml @@ -0,0 +1,59 @@ +<?xml version="1.0"?> +<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> + +<!-- Put hdfsproxy specific properties in this file. --> + +<configuration> + +<property> + <name>hdfsproxy.https.address</name> + <value>0.0.0.0:50479</value> + <description>the SSL port that hdfsproxy listens on + </description> +</property> + +<property> + <name>hdfsproxy.hosts</name> + <value>hdfsproxy-hosts</value> + <description>location of hdfsproxy-hosts file + </description> +</property> + +<property> + <name>hdfsproxy.dfs.namenode.address</name> + <value></value> + <description>namenode address of the HDFS cluster being proxied + </description> +</property> + +<property> + <name>hdfsproxy.https.server.keystore.resource</name> + <value>ssl-server.xml</value> + <description>location of the resource from which ssl server keystore + information will be extracted + </description> +</property> + +<property> + <name>hdfsproxy.user.permissions.file.location</name> + <value>user-permissions.xml</value> + <description>location of the user permissions file + </description> +</property> + +<property> + <name>hdfsproxy.user.certs.file.location</name> + <value>user-certs.xml</value> + <description>location of the user certs file + </description> +</property> + +<property> + <name>hdfsproxy.ugi.cache.ugi.lifetime</name> + <value>15</value> + <description> The lifetime (in minutes) of a cached ugi + </description> +</property> + +</configuration> + diff --git a/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/hdfsproxy-env.sh b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/hdfsproxy-env.sh new file mode 100644 index 0000000000..a0ff7a5d27 --- /dev/null +++ b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/hdfsproxy-env.sh @@ -0,0 +1,44 @@ +# Set HdfsProxy-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/lib/j2sdk1.5-sun + +# Extra Java CLASSPATH elements. Optional. +# export HDFSPROXY_CLASSPATH= + +# The maximum amount of heap to use, in MB. Default is 1000. +# export HDFSPROXY_HEAPSIZE=2000 + +# Extra Java runtime options. Empty by default. +# export HDFSPROXY_OPTS= + +# Extra ssh options. Empty by default. +# export HDFSPROXY_SSH_OPTS="-o ConnectTimeout=1 -o SendEnv=HDFSPROXY_CONF_DIR" + +# Where log files are stored. $HDFSPROXY_HOME/logs by default. +# export HDFSPROXY_LOG_DIR=${HDFSPROXY_HOME}/logs + +# File naming remote slave hosts. $HDFSPROXY_HOME/conf/slaves by default. +# export HDFSPROXY_SLAVES=${HDFSPROXY_HOME}/conf/slaves + +# host:path where hdfsproxy code should be rsync'd from. Unset by default. +# export HDFSPROXY_MASTER=master:/home/$USER/src/hdfsproxy + +# Seconds to sleep between slave commands. Unset by default. This +# can be useful in large clusters, where, e.g., slave rsyncs can +# otherwise arrive faster than the master can service them. +# export HDFSPROXY_SLAVE_SLEEP=0.1 + +# The directory where pid files are stored. /tmp by default. +# export HDFSPROXY_PID_DIR=/var/hdfsproxy/pids + +# A string representing this instance of hdfsproxy. $USER by default. +# export HDFSPROXY_IDENT_STRING=$USER + +# The scheduling priority for daemon processes. See 'man nice'. +# export HDFSPROXY_NICENESS=10 diff --git a/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/hdfsproxy-env.sh.template b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/hdfsproxy-env.sh.template new file mode 100644 index 0000000000..a0ff7a5d27 --- /dev/null +++ b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/hdfsproxy-env.sh.template @@ -0,0 +1,44 @@ +# Set HdfsProxy-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/lib/j2sdk1.5-sun + +# Extra Java CLASSPATH elements. Optional. +# export HDFSPROXY_CLASSPATH= + +# The maximum amount of heap to use, in MB. Default is 1000. +# export HDFSPROXY_HEAPSIZE=2000 + +# Extra Java runtime options. Empty by default. +# export HDFSPROXY_OPTS= + +# Extra ssh options. Empty by default. +# export HDFSPROXY_SSH_OPTS="-o ConnectTimeout=1 -o SendEnv=HDFSPROXY_CONF_DIR" + +# Where log files are stored. $HDFSPROXY_HOME/logs by default. +# export HDFSPROXY_LOG_DIR=${HDFSPROXY_HOME}/logs + +# File naming remote slave hosts. $HDFSPROXY_HOME/conf/slaves by default. +# export HDFSPROXY_SLAVES=${HDFSPROXY_HOME}/conf/slaves + +# host:path where hdfsproxy code should be rsync'd from. Unset by default. +# export HDFSPROXY_MASTER=master:/home/$USER/src/hdfsproxy + +# Seconds to sleep between slave commands. Unset by default. This +# can be useful in large clusters, where, e.g., slave rsyncs can +# otherwise arrive faster than the master can service them. +# export HDFSPROXY_SLAVE_SLEEP=0.1 + +# The directory where pid files are stored. /tmp by default. +# export HDFSPROXY_PID_DIR=/var/hdfsproxy/pids + +# A string representing this instance of hdfsproxy. $USER by default. +# export HDFSPROXY_IDENT_STRING=$USER + +# The scheduling priority for daemon processes. See 'man nice'. +# export HDFSPROXY_NICENESS=10 diff --git a/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/hdfsproxy-hosts b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/hdfsproxy-hosts new file mode 100644 index 0000000000..2fbb50c4a8 --- /dev/null +++ b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/hdfsproxy-hosts @@ -0,0 +1 @@ +localhost diff --git a/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/log4j.properties b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/log4j.properties new file mode 100644 index 0000000000..2520ab3795 --- /dev/null +++ b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/log4j.properties @@ -0,0 +1,61 @@ +# Define some default values that can be overridden by system properties +hdfsproxy.root.logger=INFO,console +hdfsproxy.log.dir=. +hdfsproxy.log.file=hdfsproxy.log + +# Define the root logger to the system property "hdfsproxy.root.logger". +log4j.rootLogger=${hdfsproxy.root.logger} + +# Logging Threshold +log4j.threshhold=ALL + +# +# Daily Rolling File Appender +# + +log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender +log4j.appender.DRFA.File=${hdfsproxy.log.dir}/${hdfsproxy.log.file} + +# Rollver at midnight +log4j.appender.DRFA.DatePattern=.yyyy-MM-dd + +# 30-day backup +#log4j.appender.DRFA.MaxBackupIndex=30 +log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout + +# Pattern format: Date LogLevel LoggerName LogMessage +log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n +# Debugging Pattern format +#log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n + + +# +# console +# Add "console" to rootlogger above if you want to use this +# + +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.target=System.err +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n + +# +# Rolling File Appender +# + +#log4j.appender.RFA=org.apache.log4j.RollingFileAppender +#log4j.appender.RFA.File=${hdfsproxy.log.dir}/${hdfsproxy.log.file} + +# Logfile size and and 30-day backups +#log4j.appender.RFA.MaxFileSize=1MB +#log4j.appender.RFA.MaxBackupIndex=30 + +#log4j.appender.RFA.layout=org.apache.log4j.PatternLayout +#log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} - %m%n +#log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n + +# Custom Logging levels + +#log4j.logger.org.apache.hadoop.hdfsproxy.HttpsProxy=DEBUG +#log4j.logger.org.apache.hadoop.hdfsproxy.ProxyFilter=DEBUG + diff --git a/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/user-certs.xml b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/user-certs.xml new file mode 100644 index 0000000000..f572a55294 --- /dev/null +++ b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/user-certs.xml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> + +<!-- + +This file defines the mappings from username to comma seperated list +of certificate serial numbers that the user is allowed to use. One mapping +per user. Wildcard characters, such as "*" and "?", are not recognized. +Any leading or trailing whitespaces are stripped/ignored. Note that user +"Admin" is the special hdfsproxy admin user. To make a user an admin, add +the user's certificate serial number to user "Admin". Normal users cannot +have "Admin" as username. Usernames can only comprise of 0-9a-zA-Z and +underscore. + +--> + +<configuration> + +<property> + <name>Admin</name> + <value></value> + <description> Special hdfsproxy admin user + </description> +</property> + +</configuration> diff --git a/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/user-permissions.xml b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/user-permissions.xml new file mode 100644 index 0000000000..b7373751bd --- /dev/null +++ b/core/lib/hadoop-0.20.0/contrib/hdfsproxy/conf/user-permissions.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> + +<!-- + +This file defines the mappings from username to comma seperated list +of directories/files that the user is allowed to use. One mapping +per user. Wildcard characters, such as "*" and "?", are not recognized. +For example, to match "/output" directory, one can use "/output" or +"/output/", but not "/output/*". Any leading or trailing whitespaces +in the name field are stripped/ignored, while only leading whitespaces +in the value field are. Note that the special hdfsproxy admin user "Admin" +doesn't automatically have access to any files, unless explicitly +specified in this file. Usernames can only comprise of 0-9a-zA-Z and +underscore. + +--> + +<configuration> + +<property> + <name></name> + <value></value> + <description> + </description> +</property> + +</configuration> |