hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Trivial Update of "Hbase/10Minutes" by stack
Date Tue, 26 Feb 2008 17:52:15 GMT
Dear Wiki user,

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

The following page has been changed by stack:
http://wiki.apache.org/hadoop/Hbase/10Minutes

The comment on the change is:
Fixup to suit new context

------------------------------------------------------------------------------
- ''We are currently in the process of moving HBase into a new SVN and cutting a fresh release.
This guide is likely to be wrong until we update it for the new release. ''
+ Here are the steps involved checking out hbase and making it run. Takes about ten minutes.
  
- Here are the steps involved checking out hbase and making it run.  Takes about ten minutes.
- 
-  1. Checkout hadoop from [http://hadoop.apache.org/core/version_control.html svn] and compile
with ant: {{{% ant clean jar compile-contrib}}}.
+  1. Checkout hbase from [http://hadoop.apache.org/core/version_control.html svn] and compile
with ant: {{{% ant clean jar compile-contrib}}}.
-  1. Optionally, move the hadoop build directory to wherever you want to run hbase from,
say to {{{~/hadoop}}}
+  1. Optionally, move the hbase build directory to wherever you want to run hbase from, say
to {{{~/hbase}}}
+  1. If running a remote HDFS that you want hbase to connnect to, edit {{{conf/hbase-site.xml}}}
and add a property for {{{hbase.rootdir}}}.  Set it to {{{hdfs://NAMENODE_HOST:NAMENODE_PORT/HBASE_ROOTDIR}}}.
 For example, {{{hdfs://localhost:9000/hbase}}}.  Otherwise, use the default: {{{file:///tmp/hbase-${user.home}/hbase}}}
UNLESS you are running on windows (see next item).
-  1. Edit {{{conf/hadoop-site.xml}}}:
-   1. If running HDFS, set the default name {{{fs.default.name}}} to the namenode host-port
URI (Otherwise, leave the default {{{file:///}}} value).
-   1. If running local FileSystem -- i.e. fs.default.name is file:/// in your hadoop-site.xml
-- AND you are running Windows/Cygwin, set the {{{hadoop.tmp.dir}}} property. If you do not
set this variable, the value {{{/tmp/hadoop-${user.name}}}} from hadoop-default.xml is used.
This does not work properly on Windows/Cygwin so you have to specify a Windows-formatted path
such as {{{c:\tmp\hbase}}}
-  1. Edit {{{conf/hadoop-env.sh}}} and define {{{JAVA_HOME}}}
+  1. Edit {{{conf/hbase-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. Start the dfs through ~/hadoop/bin/start-dfs.sh  (HDFS 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>localhost:60000</value>
-      <description>The host and port that the HBase master runs at</description>
-    </property>
- 
-    <property>
-      <name>hbase.rootdir</name>
-      <value>/hbase</value>
-      <description>location of HBase instance in dfs</description>
-    </property>
-  </configuration>
-  }}}
-  1.#6 Go to the hbase build directory ~/hadoop/src/contrib/hbase
-  1. Start hbase with ~/hadoop/src/contrib/hbase/bin/start-hbase.sh (hbase logs are viewable
in ~/hadoop/logs by default)
+  1. Start hbase with ~/hbase/bin/start-hbase.sh (hbase logs are viewable in ~/hbase/logs
by default)
-  1. Enter hbase shell by running ~/hadoop/src/contrib/hbase/bin/hbase shell
+  1. Enter hbase shell by running ~/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.  Avoid killing servers.
+  1. Stop the hbase servers with ~/hbase/bin/stop-hbase.sh.  Wait until the servers are finished
stopping.  Avoid killing servers (though a 'kill pid' should be fine as opposed to a 'kill
-9 pid').
-  1. If you are running hbase on HDFS, stop the hadoop dfs with ~/hadoop/bin/stop-dfs.sh
  
  Based on an hadoop-dev list posting by Dennis Kubes, Sun, 21 Oct 2007 23:09:46 -0500.
  

Mime
View raw message