Last active
December 26, 2015 13:59
-
-
Save dholstius/7162552 to your computer and use it in GitHub Desktop.
Hadoop 1.2.1 on OS X Mavericks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
<!-- Put site-specific property overrides in this file. --> | |
<configuration> | |
<property> | |
<name>fs.default.name</name> | |
<value>hdfs://localhost:9000</value> | |
</property> | |
<property> | |
<name>hadoop.tmp.dir</name> | |
<value>/tmp/hadoop-${user.name}</value> | |
<description>A base for other temporary directories.</description> | |
</property> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/libexec/java_home)" | |
# Extra Java CLASSPATH elements. Optional. | |
# export HADOOP_CLASSPATH= | |
# export HADOOP_CLASSPATH=$HADOOP_HOME/libexec/hadoop-lzo-0.4.14.jar:$HADOOP_CLASSPATH | |
# 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 | |
export HADOOP_OPTS="-Djava.security.krb5.realm= -Djava.security.krb5.kdc=" | |
# Command specific options appended to HADOOP_OPTS when specified | |
export HADOOP_NAMENODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_NAMENODE_OPTS" | |
export HADOOP_SECONDARYNAMENODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_SECONDARYNAMENODE_OPTS" | |
export HADOOP_DATANODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_DATANODE_OPTS" | |
export HADOOP_BALANCER_OPTS="-Dcom.sun.management.jmxremote $HADOOP_BALANCER_OPTS" | |
export HADOOP_JOBTRACKER_OPTS="-Dcom.sun.management.jmxremote $HADOOP_JOBTRACKER_OPTS" | |
# export HADOOP_TASKTRACKER_OPTS= | |
# The following applies to multiple commands (fs, dfs, fsck, distcp etc) | |
# export HADOOP_CLIENT_OPTS | |
# Extra ssh options. Empty by default. | |
# 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 | |
# 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 HADOOP_SLAVE_SLEEP=0.1 | |
# The directory where pid files are stored. /tmp by default. | |
# NOTE: this should be set to a directory that can only be written to by | |
# the users that are going to run the hadoop daemons. Otherwise there is | |
# the potential for a symlink attack. | |
# export HADOOP_PID_DIR=/var/hadoop/pids | |
# A string representing this instance of hadoop. $USER by default. | |
# export HADOOP_IDENT_STRING=$USER | |
# The scheduling priority for daemon processes. See 'man nice'. | |
# export HADOOP_NICENESS=10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
<!-- Put site-specific property overrides in this file. --> | |
<configuration> | |
<property> | |
<name>dfs.name.dir</name> | |
<value>/var/hadoop/dfs/name</value> | |
</property> | |
<property> | |
<name>dfs.data.dir</name> | |
<value>/var/hadoop/dfs/data</value> | |
</property> | |
<property> | |
<name>dfs.replication</name> | |
<value>1</value> | |
</property> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
<!-- Put site-specific property overrides in this file. --> | |
<configuration> | |
<property> | |
<name>mapred.job.tracker</name> | |
<value>localhost:9001</value> | |
</property> | |
<property> | |
<name>mapred.tasktracker.map.tasks.maximum</name> | |
<value>4</value> | |
</property> | |
<property> | |
<name>mapred.tasktracker.reduce.tasks.maximum</name> | |
<value>2</value> | |
</property> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment