


This article introduces the steps to deploy HBase. Deploying HBase under Windows can solve the problem of using HBase in stand-alone development.
When the project is officially launched, HBase distributed deployment on Linux can be used.
(Related recommendations: windows)
Main steps:
1. Preparation materials:
The default JDK has been installed and configured Good environment variables, jdk1.8.0_121 is used here.
1. Download HBase
Download the HBase1.2.6 installation package from the official website, download hbase-1.2.6-bin.tar.gz, and unzip it to D:\hadoop\hbase-1.2 .6.
2. Download hadoop-common-2.2.0-bin-master
hadoop-common-2.2.0-bin-master (including winutils.exe needed to develop Hadoop2.2 on the windows side ), HBase needs to be used when deploying under Windows.
Download hadoop-common-2.2.0-bin-master.zip and extract it to D:\hadoop\hadoop-common-2.2.0-bin-master.
2. Configuration:
1. Modify conf/hbase-env.cmd under HBase
Configure JDK:
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121 set HBASE_MANAGES_ZK=true
2. Modify under HBase hbase-site.xml
<configuration> <property> <name>hbase.rootdir</name> <value>file:///D:/hadoop/hbase-1.2.6/tmp/hbase/root</value> </property> <property> <name>hbase.tmp.dir</name> <value>D:/hadoop/hbase-1.2.6/tmp/hbase/tmp</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>127.0.0.1</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>D:/hadoop/hbase-1.2.6/tmp/hbase/zoo</value> </property> <property> <name>hbase.cluster.distributed</name> <value>false</value> </property> </configuration>
3. Configure the user variable HADOOP_HOME
Create a new environment variable HADOOP_HOME with the value D:\hadoop\hadoop-common-2.2.0-bin-master
Add after path: %HADOOP_HOME%\bin
3. Test
1. Start HBase
in D:\hadoop\hbase-1.2.6 Open the command line under \bin and enter start-hbase.cmd to start HBase.
Screenshot:
2. Test Shell
After HBase is started, enter hbase shell on the command line to open the HBase shell command line .
3. Open the HBase homepage, URL: http://127.0.0.1:16010/master-status
After testing, HBase1.2.6 can be used, but there are problems with HBase2.0.0 following this process.
The above is the detailed content of How to correctly deploy HBase under windows. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version

Dreamweaver Mac version
Visual web development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software