You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2007/10/26 19:57:08 UTC

[Lucene-hadoop Wiki] Update of "Hbase/10Minutes" by JimKellerman

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 JimKellerman:
http://wiki.apache.org/lucene-hadoop/Hbase/10Minutes

The comment on the change is:
Update based on HBase defaulting to local file system

------------------------------------------------------------------------------
  Here are the steps involved checking out hbase and making it run.  Takes about ten minutes.
+ 
+ There are two ways you can run HBase: on top of HDFS or on the local file system. By default HBase is set up to run on the local file system. Some of the steps below are different depending on which way you want to run HBase. These differences will be noted.
  
   1. Download hadoop from svn, untar to directory say ~/hadooptrunk and compile through ant.
   1. Move the build hadoop-xx directory to where you want to run it, say ~/hadoop
-  1. Set the hadoop tmp directory in hadoop-site.xml  (as default all other variables should be file)
+  1. Edit hadoop-site.xml:
+   1. Set the hadoop tmp directory ({{{hadoop.tmp.dir}}}) in hadoop-site.xml
+   1. Set the default name ({{{fs.default.name}}}) to either a host-port URI if running on HDFS or to {{{file:///}}} if you are going to run on the local file system.
+  1. Edit hadoop-env.sh and define {{{JAVA_HOME}}}
+  1. If you are running HBase on top of HDFS:
-  1. Format hadoop dfs through  ~/hadoop/bin/hadoop namenode -format
+   1. Format hadoop dfs through  ~/hadoop/bin/hadoop namenode -format
-  1. Start the dfs through ~/hadoop/bin/start-dfs.sh  (logs are viewable in ~/hadoop/logs by default, don't need mapreduce for hbase)
+   1. Start the dfs through ~/hadoop/bin/start-dfs.sh  (logs are viewable in ~/hadoop/logs by default, don't need mapreduce for hbase)
+   1. Edit hbase-site.xml:
+  {{{
+  <configuration>
+    <property>
+      <name>hbase.master</name>
+      <value>0.0.0.0:60000</value>
+      <description>The port for the hbase master web UI
+      Set to -1 if you do not want the info server to run.
+      </description>
+    </property>
+    <property>
+      <name>hbase.master.info.port</name>
+      <value>60010</value>
+      <description>The port for the hbase master web UI
+      Set to -1 if you do not want the info server to run.
+      </description>
+    </property>
+    <property>
+      <name>hbase.regionserver</name>
+      <value>0.0.0.0:60020</value>
+      <description>The port for the hbase regionserver web UI
+      Set to -1 if you do not want the info server to run.
+      </description>
+    </property>
+    <property>
+      <name>hbase.regionserver.info.port</name>
+      <value>61030</value>
+      <description>The port for the hbase regionserver web UI
+      Set to -1 if you do not want the info server to run.
+      </description>
+    </property>
+    <property>
+      <name>hbase.rootdir</name>
+      <value>/hbase</value>
+      <description>location of HBase instance in dfs</description>
+    </property>
+  </configuration>
+  }}}
-  1. Go to the hbase build directory ~/hadoop/src/contrib/hbase
+  1.#6 Go to the hbase build directory ~/hadoop/src/contrib/hbase
-  1. Hbase default values are fine for now, start hbase with ~/hadoop/src/contrib/hbase/bin/start-hbase.sh (logs are viewable in ~/hadoop/logs by default)
+  1. Start hbase with ~/hadoop/src/contrib/hbase/bin/start-hbase.sh (logs are viewable in ~/hadoop/logs by default)
   1. Enter hbase shell with ~/hadoop/src/contrib/hbase/bin/hbase shell
   1. Have fun with Hbase
   1. Stop the hbase servers with ~/hadoop/src/contrib/hbase/bin/stop-hbase.sh.  Wait until the servers are finished stopping.
-  1. Stop the hadoop dfs with ~/hadoop/bin/stop-dfs.sh
+  1. If you are running HBase on HDFS, stop the hadoop dfs with ~/hadoop/bin/stop-dfs.sh
  
  From an list posting by Dennis Kubes, Sun, 21 Oct 2007 23:09:46 -0500.