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:
parent
57a13947b6
commit
ba92b2f2a1
|
@ -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><?xml version="1.0"?>
|
||||
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
|
||||
<configuration>
|
||||
|
@ -76,10 +78,14 @@ $ cd hbase-<?eval ${project.version}?>
|
|||
<name>hbase.rootdir</name>
|
||||
<value>file:///DIRECTORY/hbase</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>hbase.zookeeper.property.dataDir</name>
|
||||
<value>/DIRECTORY/zookeeper</value>
|
||||
</property>
|
||||
</configuration></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>
|
||||
|
|
Loading…
Reference in New Issue