Author: jdcryans
Date: Mon Dec 28 18:36:11 2009
New Revision: 894214
URL: http://svn.apache.org/viewvc?rev=894214&view=rev
Log:
HBASE-2062 Metrics documentation outdated
Modified:
hadoop/hbase/branches/0.20/CHANGES.txt
hadoop/hbase/branches/0.20/src/docs/src/documentation/content/xdocs/metrics.xml
Modified: hadoop/hbase/branches/0.20/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/CHANGES.txt?rev=894214&r1=894213&r2=894214&view=diff
==============================================================================
--- hadoop/hbase/branches/0.20/CHANGES.txt (original)
+++ hadoop/hbase/branches/0.20/CHANGES.txt Mon Dec 28 18:36:11 2009
@@ -58,6 +58,7 @@
via Andrew Purtell)
HBASE-1982 [EC2] Handle potentially large and uneven instance startup
times
+ HBASE-2062 Metrics documentation outdated
Release 0.20.2 - November 18th, 2009
INCOMPATIBLE CHANGES
Modified:
hadoop/hbase/branches/0.20/src/docs/src/documentation/content/xdocs/metrics.xml
URL:
http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/docs/src/documentation/content/xdocs/metrics.xml?rev=894214&r1=894213&r2=894214&view=diff
==============================================================================
---
hadoop/hbase/branches/0.20/src/docs/src/documentation/content/xdocs/metrics.xml
(original)
+++
hadoop/hbase/branches/0.20/src/docs/src/documentation/content/xdocs/metrics.xml
Mon Dec 28 18:36:11 2009
@@ -123,48 +123,20 @@
<section>
<title>Configure JMX in HBase startup</title>
<p>
- Finally, edit the <code>$HBASE_HOME/conf/hbase-env.sh</code> and
- <code>$HBASE_HOME/bin/hbase</code> scripts for JMX support:
+ Finally, edit the <code>$HBASE_HOME/conf/hbase-env.sh</code>
+ script to add JMX support:
</p>
<dl>
<dt><code>$HBASE_HOME/conf/hbase-env.sh</code></dt>
<dd>
<p>Add the lines:</p>
<source>
-JMX_OPTS="-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.ssl=false"
-JMX_OPTS="$JMX_OPTS
-Dcom.sun.management.jmxremote.password.file=$HBASE_HOME/conf/jmxremote.passwd"
-JMX_OPTS="$JMX_OPTS
-Dcom.sun.management.jmxremote.access.file=$HBASE_HOME/conf/jmxremote.access"
+HBASE_JMX_OPTS="-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.ssl=false"
+HBASE_JMX_OPTS="$HBASE_JMX_OPTS
-Dcom.sun.management.jmxremote.password.file=$HBASE_HOME/conf/jmxremote.passwd"
+HBASE_JMX_OPTS="$HBASE_JMX_OPTS
-Dcom.sun.management.jmxremote.access.file=$HBASE_HOME/conf/jmxremote.access"
-export HBASE_MASTER_OPTS="$JMX_OPTS -Dcom.sun.management.jmxremote.port=10101"
-export HBASE_REGIONSERVER_OPTS="$JMX_OPTS
-Dcom.sun.management.jmxremote.port=10102"
- </source>
- </dd>
- <dt><code>$HBASE_HOME/bin/hbase</code></dt>
- <dd>
- <p>Towards the end of the script, replace the lines:</p>
- <source>
- # figure out which class to run
-if [ "$COMMAND" = "shell" ] ; then
- CLASS="org.jruby.Main ${HBASE_HOME}/bin/hirb.rb"
-elif [ "$COMMAND" = "master" ] ; then
- CLASS='org.apache.hadoop.hbase.master.HMaster'
-elif [ "$COMMAND" = "regionserver" ] ; then
- CLASS='org.apache.hadoop.hbase.regionserver.HRegionServer'
- </source>
- <p>
- with the lines: (adding the "HBASE_OPTS=..." lines for "master" and
- "regionserver" commands)
- </p>
- <source>
- # figure out which class to run
-if [ "$COMMAND" = "shell" ] ; then
- CLASS="org.jruby.Main ${HBASE_HOME}/bin/hirb.rb"
-elif [ "$COMMAND" = "master" ] ; then
- CLASS='org.apache.hadoop.hbase.master.HMaster'
- HBASE_OPTS="$HBASE_OPTS $HBASE_MASTER_OPTS"
-elif [ "$COMMAND" = "regionserver" ] ; then
- CLASS='org.apache.hadoop.hbase.regionserver.HRegionServer'
- HBASE_OPTS="$HBASE_OPTS $HBASE_REGIONSERVER_OPTS"
+export HBASE_MASTER_OPTS="$HBASE_JMX_OPTS
-Dcom.sun.management.jmxremote.port=10101"
+export HBASE_REGIONSERVER_OPTS="$HBASE_JMX_OPTS
-Dcom.sun.management.jmxremote.port=10102"
</source>
</dd>
</dl>