HBASE-6027 Update the reference guide to reflect the changes in the security profile (Devaraj Das)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1357063 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2012-07-04 04:19:46 +00:00
parent 2bd71320b2
commit b1ab069bdd
3 changed files with 4 additions and 19 deletions

View File

@ -1176,7 +1176,7 @@ ${HBASE_HOME}/bin/hbase-daemons.sh {start,stop} zookeeper
<programlisting> <programlisting>
git clone git://git.apache.org/hbase.git git clone git://git.apache.org/hbase.git
cd hbase cd hbase
mvn -Psecurity,localTests clean test -Dtest=TestZooKeeperACL mvn -PlocalTests clean test -Dtest=TestZooKeeperACL
</programlisting> </programlisting>
Then configure HBase as described above. Then configure HBase as described above.

View File

@ -369,8 +369,7 @@ the developer machine as well.
(no fork) and then medium tests in a separate JVM for each test instance. (no fork) and then medium tests in a separate JVM for each test instance.
Medium tests are NOT executed if there is an error in a small test. Medium tests are NOT executed if there is an error in a small test.
Large tests are NOT executed. There is one report for small tests, and one report for Large tests are NOT executed. There is one report for small tests, and one report for
medium tests if they are executed. To run small and medium tests with the security medium tests if they are executed.
profile enabled, do <programlisting>mvn test -P security</programlisting>
</para> </para>
</section> </section>
@ -392,8 +391,6 @@ pass multiple, individual tests as a comma-delimited list:
<programlisting>mvn test -P localTests -Dtest=MyTest1,MyTest2,MyTest3</programlisting> <programlisting>mvn test -P localTests -Dtest=MyTest1,MyTest2,MyTest3</programlisting>
You can also pass a package, which will run all tests under the package: You can also pass a package, which will run all tests under the package:
<programlisting>mvn test -P localTests -Dtest=org.apache.hadoop.hbase.client.*</programlisting> <programlisting>mvn test -P localTests -Dtest=org.apache.hadoop.hbase.client.*</programlisting>
To run a single test with the security profile enabled:
<programlisting>mvn test -P security,localTests -Dtest=TestGet</programlisting>
</para> </para>
<para> <para>

View File

@ -33,9 +33,6 @@
<para>This describes how to set up HBase and HBase clients for connection to secure HBase resources. </para> <para>This describes how to set up HBase and HBase clients for connection to secure HBase resources. </para>
<section><title>Prerequisites</title> <section><title>Prerequisites</title>
<para>
HBase must have been built using the new maven profile for secure Hadoop/HBase: <code>-P security</code>. Secure Hadoop dependent classes are separated under a pseudo-module in the security/ directory and are only included if built with the secure Hadoop profile.
</para>
<para> <para>
You need to have a working Kerberos KDC. You need to have a working Kerberos KDC.
</para> </para>
@ -115,10 +112,6 @@
<name>hbase.security.authorization</name> <name>hbase.security.authorization</name>
<value>true</value> <value>true</value>
</property> </property>
<property>
<name>hbase.rpc.engine</name>
<value>org.apache.hadoop.hbase.ipc.SecureRpcEngine</value>
</property>
<property> <property>
<name>hbase.coprocessor.region.classes</name> <name>hbase.coprocessor.region.classes</name>
<value>org.apache.hadoop.hbase.security.token.TokenProvider</value> <value>org.apache.hadoop.hbase.security.token.TokenProvider</value>
@ -139,10 +132,6 @@
<name>hbase.security.authentication</name> <name>hbase.security.authentication</name>
<value>kerberos</value> <value>kerberos</value>
</property> </property>
<property>
<name>hbase.rpc.engine</name>
<value>org.apache.hadoop.hbase.ipc.SecureRpcEngine</value>
</property>
]]></programlisting> ]]></programlisting>
<para> <para>
The client environment must be logged in to Kerberos from KDC or The client environment must be logged in to Kerberos from KDC or
@ -151,9 +140,8 @@
</para> </para>
<para> <para>
Be advised that if the <code>hbase.security.authentication</code> Be advised that if the <code>hbase.security.authentication</code>
and <code>hbase.rpc.engine</code> properties in the client- and in the client- and server-side site files do not match, the client will
server-side site files do not match, the client will not be able to not be able to communicate with the cluster.
communicate with the cluster.
</para> </para>
<para> <para>
Once HBase is configured for secure RPC it is possible to optionally Once HBase is configured for secure RPC it is possible to optionally