HBase Mac OSX Installation Notes

Source: Internet
Author: User
Tags zookeeper

This test installs the machine for Mac book Pro, the system for OS X 10.9.4. HBase version 0.98.6.1.

Use the Java version of the JDK 1.6.0_65 for Oracle.

1. Download and install hbase-0.98.6.1

The download here is 0.98.6.1, after downloading the unzip. The extracted directory is hbase-0.98.6.1-hadoop2/

Note: HBase already contains Hadoop, so no additional Hadoop is installed.

2. Modify the configuration

(1) conf/hbase-env.sh

Export Java_home=/library/java/home

(2) Conf/hbase-site.xml

  <property>    <name>hbase.rootdir</name>    <value>file://Users/beef_ In_jp/documents/hadoop/hbase-0.98.6.1-hadoop2i/hbase</value>  </property>  <property>    <name>hbase.zookeeper.property.dataDir</name>    <value>/users/beef_in _jp/documents/hadoop/hbase-0.98. 6.1-hadoop2/zookeeper</value>  </property>

3. Start-up and simple testing

(1) Start

./bin/start-hbase.sh

Information displayed after executing the startup script:

Starting master, logging to/users/beef_in_jp/documents/hadoop/hbase-0.98. 6.1-hadoop2/bin/. /logs/hbase-beef_in_jp-master-liu-macbook-pro.local.  out

Then go to read the log:

--:53.287 java[18243:1003   from Scdynamicstore

This error has also occurred in previous Hadoop installation tests, modified conf/hbase-env.sh, the original settings:

Export hbase_opts="-xx:+useconcmarksweepgc"

Add options, now for:

Export hbase_opts="-xx:+useconcmarksweepgc-djava.security.krb5.realm=ox. ac.uk-djava.security.krb5.kdc=kdc0.ox.ac.uk:kdc1.ox.ac.uk"

Stop HBase,

./bin/stop-hbase.sh

Start again, it should be successful.

(2) Simple test

Start the HBase shell

./bin/hbase Shell

Perform help in the shell to see the helpful information:

HBase (Main):001:0> Help

Create a test table:

HBase (Main):002:0'test'cf'

To List table information:

HBase (Main):003:0'test'

Insert several test data:

HBase (main):004:0> put'Test','Row1','cf:a','value1'hbase (main):005:0> put'Test','Row2','cf:b','value2'hbase (main):006:0> put'Test','row3','Cf:c','Value3'

Query the data you just inserted:

HBase (Main):008:0> Scan'Test'ROW COLUMN+CELL Row1 column=cf:a, timestamp=1412845466245, value=value1 Row2 Column=cf:b, timestamp=1412845472737, value=value2 row3 Column=CF:C, timestamp=1412845478332, value=Value33Row (s)inch 0.0490Seconds

To query a single piece of data:

HBase (main):010:0> get ' test ', ' row1 '

column                            &NBS P             CELL                     &NBSP ;                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp  

Cf:a timestamp=1412845466245, Value=value1

1 row (s) in 0.0100 seconds

(3) Accessing the HBase Admin interface in the browser: http://localhost:60010,

Chinese version of the Help manual http://abloz.com/hbase/book.html

4. Some details.

(1) After starting HBase, the listening port number is increased as follows:

Tcp460      0*.60010*.*LISTEN tcp460      0*.54436*.*LISTEN TCP40      0  10.10.10.232.54435*.*LISTEN TCP40      0  10.10.10.232.54433* * LISTEN

HBase Mac OSX Installation Notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.