Apache HBase配置介绍
2016-10-16 11:04
260 查看
原文地址:https://hbase.apache.org/book.html#_configuration_files
Prerequisites to ensure that your HBase testing and deployment goes smoothly, and prevent data loss. Familiarize yourself withSupport and Testing Expectations as well.
3. Configuration Files
Apache HBase uses the same configuration system as Apache Hadoop. All configuration files are located in theconf/ directory, which needs to be kept in sync for each node on your cluster.
HBase Configuration File Descriptions
Contains only commented-out examples by default.
guidance.
also view the entire effective configuration for your cluster (defaults and overrides) in the HBase Configuration tab of the HBase Web UI.
of hostnames or IP addresses, one per line, and should only containlocalhost if each node in your cluster will run a RegionServer on itslocalhost interface.
Apache HBase Configuration
This chapter expands upon the Getting Started chapter to further explain configuration of Apache HBase. Please read this chapter carefully, especially theBasicPrerequisites to ensure that your HBase testing and deployment goes smoothly, and prevent data loss. Familiarize yourself withSupport and Testing Expectations as well.
3. Configuration Files
Apache HBase uses the same configuration system as Apache Hadoop. All configuration files are located in theconf/ directory, which needs to be kept in sync for each node on your cluster.
HBase Configuration File Descriptions
backup-masters
Not present by default. A plain-text file which lists hosts on which the Master should start a backup Master process, one host per line.hadoop-metrics2-hbase.properties
Used to connect HBase Hadoop’s Metrics2 framework. See theHadoop Wiki entry for more information on Metrics2.Contains only commented-out examples by default.
hbase-env.cmd and hbase-env.sh
Script for Windows and Linux / Unix environments to set up the working environment for HBase, including the location of Java, Java options, and other environment variables. The file contains many commented-out examples to provideguidance.
hbase-policy.xml
The default policy configuration file used by RPC servers to make authorization decisions on client requests. Only used if HBasesecurity is enabled.hbase-site.xml
The main HBase configuration file. This file specifies configuration options which override HBase’s default configuration. You can view (but do not edit) the default configuration file atdocs/hbase-default.xml. You canalso view the entire effective configuration for your cluster (defaults and overrides) in the HBase Configuration tab of the HBase Web UI.
log4j.properties
Configuration file for HBase logging via log4j.regionservers
A plain-text file containing a list of hosts which should run a RegionServer in your HBase cluster. By default this file contains the single entrylocalhost. It should contain a listof hostnames or IP addresses, one per line, and should only containlocalhost if each node in your cluster will run a RegionServer on itslocalhost interface.
Checking XML ValidityWhen you edit XML, it is a good idea to use an XML-aware editor to be sure that your syntax is correct and your XML is well-formed. You can also use thexmllint utility to check thatyour XML is well-formed. By default,xmllint re-flows and prints the XML to standard output. To check for well-formedness and only print output if errors exist, use the commandxmllint -noout filename.xml. |
Keep Configuration In Sync Across the ClusterWhen running in distributed mode, after you make an edit to an HBase configuration, make sure you copy the content of theconf/ directory to all nodes of the cluster. HBase will not do this for you. Usersync,scp,or another secure mechanism for copying the configuration files to your nodes. For most configuration, a restart is needed for servers to pick up changes An exception is dynamic configuration. to be described later below. |
相关文章推荐
- 详细介绍:Apache+PHP+MySQL配置攻略
- 关于Apache mod_rewrite的中文配置、使用和语法介绍(实现URL重写和防盗链功能)
- 关于Apache的几种配置介绍
- apache-DBCP基本配置介绍
- Apache源码包安装和子配置文件介绍--update.2014-12-5
- 【推荐】Apache图形用户界面配置工具介绍
- Hbase 配置问题(ERROR: org.apache.hadoop.hbase.PleaseHoldException: org.apache.hadoop.hbase.PleaseHoldEx)
- 关于Apache的几种配置介绍 推荐
- Linux网络服务-Web Service之【apache的功能、安装、配置文件介绍以及实验实例】(三)
- Apache James邮件服务器介绍及配置发送外网邮件
- apache-DBCP基本配置介绍
- 关于Apache mod_rewrite的中文配置、使用和语法介绍
- linux环境apache多端口配置虚拟主机的方法深入介绍
- 关于Apache mod_rewrite的中文配置、使用和语法介绍(实现URL重写和防盗链功能)
- Apache mod_rewrite的中文配置、使用和语法介绍
- Tomcat、Apache、IIS的配置(无虚拟主机介绍)
- Linux chkconfig 详细介绍 (附:Linux Enterprise5 下自动启动 Mysql 和Apache的配置)
- apache配置--源码包安装的子配置文件介绍
- Apache James邮件服务器介绍及配置发送外网邮件(转)