hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Lucene-hadoop Wiki] Update of "GettingStartedWithHadoop" by AlbertStrasheim
Date Sun, 24 Jun 2007 20:36:02 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lucene-hadoop Wiki" for change notification.

The following page has been changed by AlbertStrasheim:

The comment on the change is:
Added hadoop-site.xml example

    * {{{dfs.client.buffer.dir}}}
    * {{{mapred.local.dir}}}
+ An example of a {{{hadoop-site.xml}}} file:
+ {{{
+ <?xml version="1.0"?>
+ <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+ <configuration>
+ <property>
+   <name>hadoop.tmp.dir</name>
+   <value>/tmp/hadoop-${user.name}</value>
+ </property>
+ <property>
+   <name>fs.default.name</name>
+   <value>localhost:54310</value>
+ </property>
+ <property>
+   <name>mapred.job.tracker</name>
+   <value>localhost:54311</value>
+ </property>
+ <property> 
+   <name>dfs.replication</name>
+   <value>8</value>
+ </property>
+ <property>
+   <name>mapred.child.java.opts</name>
+   <value>-Xmx512m</value>
+ </property>
+ </configuration>
+ }}}
  === Formatting the Namenode ===
  The first step to starting up your Hadoop installation is formatting the Hadoop filesystem,
which is implemented on top of the local filesystems of your cluster. You need to do this
the first time you set up a Hadoop installation. '''Do not''' format a running Hadoop filesystem,
this will cause all your data to be erased.  Before formatting, ensure that the {{{dfs.name.dir}}}
directory exists.  If you just used the default, then {{{mkdir -p /tmp/hadoop-username/dfs/name}}}
will create the directory.  To format the filesystem (which simply initializes the directory
specified by the {{{dfs.name.dir}}} variable), run the command: [[BR]] {{{% $HADOOP_INSTALL/hadoop/bin/hadoop
namenode -format}}}

View raw message