More specific around tmp locations for data on startup

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1393667 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-10-03 18:48:33 +00:00
parent 57a13947b6
commit ba92b2f2a1
1 changed files with 12 additions and 6 deletions

View File

@ -66,9 +66,11 @@ $ cd hbase-<?eval ${project.version}?>
</programlisting></para>
<para>At this point, you are ready to start HBase. But before starting
it, you might want to edit <filename>conf/hbase-site.xml</filename>, the
file you write your site-specific configurations into, and
set <varname>hbase.rootdir</varname>, the directory HBase writes data to,
it, edit <filename>conf/hbase-site.xml</filename>, the file you write
your site-specific configurations into. Set
<varname>hbase.rootdir</varname>, the directory HBase writes data to,
and <varname>hbase.zookeeper.property.dataDir</varname>, the director
ZooKeeper writes its data too:
<programlisting>&lt;?xml version="1.0"?&gt;
&lt;?xml-stylesheet type="text/xsl" href="configuration.xsl"?&gt;
&lt;configuration&gt;
@ -76,10 +78,14 @@ $ cd hbase-<?eval ${project.version}?>
&lt;name&gt;hbase.rootdir&lt;/name&gt;
&lt;value&gt;file:///DIRECTORY/hbase&lt;/value&gt;
&lt;/property&gt;
&lt;property&gt;
&lt;name&gt;hbase.zookeeper.property.dataDir&lt;/name&gt;
&lt;value&gt;/DIRECTORY/zookeeper&lt;/value&gt;
&lt;/property&gt;
&lt;/configuration&gt;</programlisting> Replace <varname>DIRECTORY</varname> in the above with the
path to the directory where you want HBase to store its data. By default,
<varname>hbase.rootdir</varname> is set to
<filename>/tmp/hbase-${user.name}</filename> which means you'll lose all
path to the directory you would have HBase and ZooKeeper write their data. By default,
<varname>hbase.rootdir</varname> is set to <filename>/tmp/hbase-${user.name}</filename>
and similarly so for the default ZooKeeper data location which means you'll lose all
your data whenever your server reboots unless you change it (Most operating systems clear
<filename>/tmp</filename> on restart).</para>
</section>