Change the namenode port we use to be 8020 instead of 9000 -- from Benoît

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1156257 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-08-10 16:41:45 +00:00
parent dd6e2cf136
commit 56a0445c8f
2 changed files with 9 additions and 9 deletions

View File

@ -1060,8 +1060,8 @@ HTable table2 = new HTable(conf2, "myTable");</programlisting>
the <classname>org.apache.hadoop.hbase.io.hfile.HFile
</classname>tool. Type the following to see usage:<programlisting><code>$ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile </code> </programlisting>For
example, to view the content of the file
<filename>hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475</filename>,
type the following:<programlisting> <code>$ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -v -f hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475 </code> </programlisting>If
<filename>hdfs://10.81.47.41:8020/hbase/TEST/1418428042/DSMP/4759508618286845475</filename>,
type the following:<programlisting> <code>$ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -v -f hdfs://10.81.47.41:8020/hbase/TEST/1418428042/DSMP/4759508618286845475 </code> </programlisting>If
you leave off the option -v to see just a summary on the hfile. See
usage for other things to do with the <classname>HFile</classname>
tool.</para>
@ -1320,13 +1320,13 @@ HTable table2 = new HTable(conf2, "myTable");</programlisting>
content of the <filename>recovered.edits</filename>. directory.</para>
<para>You can get a textual dump of a WAL file content by doing the
following:<programlisting> <code>$ ./bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --dump hdfs://example.org:9000/hbase/.logs/example.org,60020,1283516293161/10.10.21.10%3A60020.1283973724012</code> </programlisting>The
following:<programlisting> <code>$ ./bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --dump hdfs://example.org:8020/hbase/.logs/example.org,60020,1283516293161/10.10.21.10%3A60020.1283973724012</code> </programlisting>The
return code will be non-zero if issues with the file so you can test
wholesomeness of file by redirecting <varname>STDOUT</varname> to
<code>/dev/null</code> and testing the program return.</para>
<para>Similarily you can force a split of a log file directory by
doing:<programlisting> $ ./<code>bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --split hdfs://example.org:9000/hbase/.logs/example.org,60020,1283516293161/</code></programlisting></para>
doing:<programlisting> $ ./<code>bin/hbase org.apache.hadoop.hbase.regionserver.wal.HLog --split hdfs://example.org:8020/hbase/.logs/example.org,60020,1283516293161/</code></programlisting></para>
</section>
</section>
<section xml:id="compression.tool"><title>Compression Tool</title>

View File

@ -341,7 +341,7 @@ to ensure well-formedness of your document after an edit session.
For example, adding the properties below to your
<filename>hbase-site.xml</filename> says that HBase should use the
<filename>/hbase</filename> directory in the HDFS whose namenode is
at port 9000 on your local machine, and that it should run with one
at port 8020 on your local machine, and that it should run with one
replica only (recommended for pseudo-distributed mode):</para>
<programlisting>
@ -349,7 +349,7 @@ to ensure well-formedness of your document after an edit session.
...
&lt;property&gt;
&lt;name&gt;hbase.rootdir&lt;/name&gt;
&lt;value&gt;hdfs://localhost:9000/hbase&lt;/value&gt;
&lt;value&gt;hdfs://localhost:8020/hbase&lt;/value&gt;
&lt;description&gt;The directory shared by RegionServers.
&lt;/description&gt;
&lt;/property&gt;
@ -396,7 +396,7 @@ to ensure well-formedness of your document after an edit session.
<varname>hbase.rootdir</varname> at the appropriate HDFS NameNode
and location in HDFS where you would like HBase to write data. For
example, if you namenode were running at namenode.example.org on
port 9000 and you wanted to home your HBase in HDFS at
port 8020 and you wanted to home your HBase in HDFS at
<filename>/hbase</filename>, make the following
configuration.</para>
@ -405,7 +405,7 @@ to ensure well-formedness of your document after an edit session.
...
&lt;property&gt;
&lt;name&gt;hbase.rootdir&lt;/name&gt;
&lt;value&gt;hdfs://namenode.example.org:9000/hbase&lt;/value&gt;
&lt;value&gt;hdfs://namenode.example.org:8020/hbase&lt;/value&gt;
&lt;description&gt;The directory shared by RegionServers.
&lt;/description&gt;
&lt;/property&gt;
@ -856,7 +856,7 @@ config.set("hbase.zookeeper.quorum", "localhost"); // Here we are running zooke
&lt;/property&gt;
&lt;property&gt;
&lt;name&gt;hbase.rootdir&lt;/name&gt;
&lt;value&gt;hdfs://example0:9000/hbase&lt;/value&gt;
&lt;value&gt;hdfs://example0:8020/hbase&lt;/value&gt;
&lt;description&gt;The directory shared by RegionServers.
&lt;/description&gt;
&lt;/property&gt;