Tài liệu HBase Administration Cookbook ppt

332 814 2
Tài liệu HBase Administration Cookbook ppt

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... commands: hadoop$ mkdir -p /usr/local /hbase/ var /hbase hadoop$ vi /usr/local /hbase/ current/conf /hbase- site.xml hbase. rootdir file:///usr/local /hbase/ var /hbase 4 Start HBase in standalone mode by using the following command: hadoop$ $HBASE_ HOME/bin/start -hbase. sh starting master, logging to /usr/local /hbase/ current/logs/hbasehadoop-master-master1.out 10... name hadoop, as the owner of all HBase/ Hadoop daemons and files We will have all HBase files and data stored under /usr/local /hbase: root# useradd hadoop root# mkdir /usr/local /hbase root# chown hadoop:hadoop /usr/local /hbase 9 Setting Up HBase Cluster How to do it Get the latest stable HBase release from HBase' s official site, http://www.apache.org/ dyn/closer.cgi /hbase/ At the time of writing this... the table test, use the following command: hbase( main):007:0> drop 'test' 0 row(s) in 11.1290 seconds 11 Setting Up HBase Cluster 9 Exit from HBase Shell using the following command: hbase( main):010:0> exit 10 Stop the HBase instance by executing the stop script: hadoop$ /usr/local /hbase/ current/bin/stop -hbase. sh stopping hbase How it works We installed HBase 0.92.1 on a single server We have used... mode of HBase In standalone mode, HBase uses a local filesystem instead of HDFS, and runs all HBase daemons and an HBase- managed ZooKeeper instance, all in the same JVM This recipe describes the setup of a standalone HBase It leads you through installing HBase, starting it in standalone mode, creating a table via HBase Shell, inserting rows, and then cleaning up and shutting down the standalone HBase. .. standalone HBase instance by following these instructions: 1 Download the tarball and decompress it to our root directory for HBase We will set an HBASE_ HOME environment variable to make the setup easier, by using the following commands: root# su - hadoop hadoop$ cd /usr/local /hbase hadoop$ tar xfvz hbase- 0.92.1.tar.gz hadoop$ ln -s hbase- 0.92.1 current hadoop$ export HBASE_ HOME=/usr/local /hbase/ current... available HBase cluster on Amazon EC2 According to Apache HBase' s home page: HBase is the Hadoop database Use HBase when you need random, real-time, read/write access to your Big Data This project's goal is the hosting of very large tables—billions of rows X millions of columns—atop clusters of commodity hardware Setting Up HBase Cluster HBase can run against any filesystem For example, you can run HBase. .. 115 Exporting an HBase table to dump files on HDFS 119 Restoring HBase data by importing dump files from HDFS 122 Backing up NameNode metadata 125 Backing up region starting keys 130 Cluster replication 132 Introduction Showing the disk utilization of HBase tables Setting up Ganglia to monitor an HBase cluster OpenTSDB—using HBase to monitor an HBase cluster Setting up Nagios to monitor HBase processes... /usr/local /hbase/ current/logs/hbasehadoop-master-master1.out 10 Chapter 1 5 Connect to the running HBase via HBase Shell, using the following command: hadoop$ $HBASE_ HOME/bin /hbase shell HBase Shell; enter 'help' for list of supported commands Type "exit" to leave the HBase Shell Version 0.92.1, r1298924, Fri Mar 9 16:58:34 UTC 2012 6 Verify HBase' s installation by creating a table and then inserting some values... between Hadoop and HBase will allow you to get the best out of HBase; so this book will show you how to set up Hadoop clusters, configure Hadoop to cooperate with HBase, and tune its performance What this book covers Chapter 1, Setting Up HBase Cluster: This chapter explains how to set up an HBase cluster, from a basic standalone HBase instance to a fully distributed, highly available HBase cluster on... ZooKeeper ensemble, by default Then we connected to HBase via HBase Shell Using HBase Shell, you can manage your cluster, access data in HBase, and do many other jobs Here, we just created a table called test, we inserted data into HBase, scanned the test table, and then disabled and dropped it, and exited the shell HBase can be stopped using its stop -hbase. sh script This script stops both HMaster and . HBase Administration Cookbook Master HBase conguration and administration for optimum database performance Yifeng Jiang BIRMINGHAM - MUMBAI HBase Administration. data into HBase 66 Chapter 3: Using Administration Tools 71 Introduction 71 HBase Master web UI 72 Using HBase Shell to manage tables 75 Using HBase Shell

Ngày đăng: 15/02/2014, 07:20

Từ khóa liên quan

Mục lục

  • Cover

  • Copyright

  • Credits

  • About the Author

  • Acknowledgement

  • About the Reviewers

  • www.PacktPub.com

  • Table of Contents

  • Preface

  • Chapter 1: Setting Up HBase Cluster

    • Introduction

    • Quick start

    • Getting ready on Amazon EC2

    • Setting up Hadoop

    • Setting up ZooKeeper

    • Changing the kernel settings

    • Setting up HBase

    • Basic Hadoop/ZooKeeper/HBase configurations

    • Setting up multiple High Availability (HA) masters

    • Chapter 2: Data Migration

      • Introduction

      • Importing data from MySQL via single client

Tài liệu cùng người dùng

Tài liệu liên quan