From 5f9f8cadd562459bb095c114389ea2c9e32fe77c Mon Sep 17 00:00:00 2001
From: Todd Lipcon <todd@cloudera.com>
Date: Wed, 3 Jun 2009 12:11:53 -0700
Subject: [PATCH] Add example-confs directory for storing configuration of conf.pseudo

---
 build.xml                                 |    4 ++++
 example-confs/conf.pseudo/README          |    7 +++++++
 example-confs/conf.pseudo/core-site.xml   |   14 ++++++++++++++
 example-confs/conf.pseudo/hdfs-site.xml   |   18 ++++++++++++++++++
 example-confs/conf.pseudo/mapred-site.xml |    9 +++++++++
 5 files changed, 52 insertions(+), 0 deletions(-)
 create mode 100644 example-confs/conf.pseudo/README
 create mode 100644 example-confs/conf.pseudo/core-site.xml
 create mode 100644 example-confs/conf.pseudo/hdfs-site.xml
 create mode 100644 example-confs/conf.pseudo/mapred-site.xml

diff --git a/build.xml b/build.xml
index 104ae54..fbef09e 100644
--- a/build.xml
+++ b/build.xml
@@ -1137,6 +1137,10 @@
       <fileset dir="${conf.dir}" excludes="**/*.template"/>
     </copy>
 
+    <copy todir="${dist.dir}/example-confs">
+      <fileset dir="example-confs"/>
+    </copy>
+
     <copy file="ivy.xml" tofile="${dist.dir}/ivy.xml"/>
 
     <copy todir="${dist.dir}/ivy">
diff --git a/example-confs/conf.pseudo/README b/example-confs/conf.pseudo/README
new file mode 100644
index 0000000..170b677
--- /dev/null
+++ b/example-confs/conf.pseudo/README
@@ -0,0 +1,7 @@
+The conf.pseudo example configuration is for a psuedo-distributed cluster.
+
+A pseudo-distributed cluster is one in which all of the Hadoop daemons
+run separately, but on a single node.
+
+This is a good mode for developers to install on their own machines to
+ensure that their jobs will operate correctly on a real cluster.
\ No newline at end of file
diff --git a/example-confs/conf.pseudo/core-site.xml b/example-confs/conf.pseudo/core-site.xml
new file mode 100644
index 0000000..60482de
--- /dev/null
+++ b/example-confs/conf.pseudo/core-site.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+
+<configuration>
+  <property>
+    <name>fs.default.name</name>
+    <value>hdfs://localhost:8020</value>
+  </property>
+
+  <property>
+     <name>hadoop.tmp.dir</name>
+     <value>/var/lib/hadoop/cache/${user.name}</value>
+  </property>
+</configuration>
diff --git a/example-confs/conf.pseudo/hdfs-site.xml b/example-confs/conf.pseudo/hdfs-site.xml
new file mode 100644
index 0000000..934b87b
--- /dev/null
+++ b/example-confs/conf.pseudo/hdfs-site.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+
+<configuration>
+  <property>
+    <name>dfs.replication</name>
+    <value>1</value>
+  </property>
+  <property>
+     <name>dfs.permissions</name>
+     <value>false</value>
+  </property>
+  <property>
+     <!-- specify this so that running 'hadoop namenode -format' formats the right dir -->
+     <name>dfs.name.dir</name>
+     <value>/var/lib/hadoop/cache/hadoop/dfs/name</value>
+  </property>
+</configuration>
diff --git a/example-confs/conf.pseudo/mapred-site.xml b/example-confs/conf.pseudo/mapred-site.xml
new file mode 100644
index 0000000..4419229
--- /dev/null
+++ b/example-confs/conf.pseudo/mapred-site.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+
+<configuration>
+  <property>
+    <name>mapred.job.tracker</name>
+    <value>localhost:8021</value>
+  </property>
+</configuration>
-- 
1.6.0.4

