open-falcon hbase服务配置

2023-12-15 04:18
文章标签 配置 服务 open hbase falcon

本文主要是介绍open-falcon hbase服务配置,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

目的

安装 hbase

需求

zookeeper
hadoop

参考

软件下载

hbase 官方下载地址

hbase 安装

环境变量

java (/etc/profile)

JAVA_HOME=/apps/svr/java
JRE_HOME=$JAVA_HOME/jre
CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib/rt.jar
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export  JAVA_HOME JRE_HOME CLASS_PATH  PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL

hbase 环境 (/etc/profile)

HBASE_HOME=/apps/svr/hbase
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$ZOOKEEPER_HOME/bin:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$HBASE_HOME/bin

hbase 启动环境

grep -v "#" /apps/svr/hbase/conf/hbase-env.sh  | grep -v ^$
export JAVA_HOME=/apps/svr/java
export HBASE_OPTS="$HBASE_OPTS -XX:+UseConcMarkSweepGC"
export HBASE_MANAGES_ZK=false

解压与目录

解压 hbase

tar xf hbase-2.2.5-bin.tar.gz -C /apps/svr/
cd /apps/svr/
ln -s hbase-2.2.5 hbase

创建 temp 目录

mkdir /apps/svr/hbase/tmp

确认 hadoop 环境

[root@ns-yun-020022 conf]# jps
155507 DataNode
155927 NodeManager
144379 QuorumPeerMain
6239 Jps
155741 JournalNode[root@ns-yun-020023 conf]# jps
176242 DataNode
176550 JournalNode
56663 Jps
175832 DFSZKFailoverController
176424 NameNode
177209 ResourceManager
166153 QuorumPeerMain
176829 NodeManager[root@ns-yun-020024 hbase]# jps
37233 Jps
8531 NodeManager
8036 JournalNode
7720 NameNode
6683 DFSZKFailoverController
9851 JobHistoryServer
3324 QuorumPeerMain
7388 DataNode
8399 ResourceManager

配置 hbase

每台 habase 都据需要下面配置
/apps/svr/hbase/conf/hbase-site.xml

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration><property><name>hbase.cluster.distributed</name><value>true</value></property><property><name>hbase.rootdir</name><value>hdfs://ha01/vipfalcon</value></property><property><name>hbase.tmp.dir</name><value>/apps/svr/hbase/tmp</value></property><property><name>zookeeper.znode.parent</name><value>/vipfalcon</value></property><property><name>hbase.zookeeper.quorum</name><value>ns-yun-020022.133.com:2181,ns-yun-020023.133.com:2181,ns-yun-020024.133.com:2181</value></property><property><name>hbase.unsafe.stream.capability.enforce</name><value>false</value></property>
</configuration>

/apps/svr/hbase/conf/regionservers

ns-yun-020022.133.com
ns-yun-020023.133.com
ns-yun-020024.133.com

复制 hadoop 配置至 hbase

cp /apps/svr/hadoop/etc/hadoop/core-site.xml  /apps/svr/hadoop/etc/hadoop/hdfs-site.xml /apps/svr/hbase/conf/

启动 hbase

只需要在其中一台 hbase上启动

[root@ns-yun-020022 apps]# start-hbase.sh
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/apps/svr/hadoop-2.10.0/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/apps/svr/hbase-2.2.5/lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
running master, logging to /apps/svr/hbase/bin/../logs/hbase-root-master-ns-yun-020022.133.com.out
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/apps/svr/hadoop-2.10.0/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/apps/svr/hbase-2.2.5/lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
ns-yun-020022.133.com: running regionserver, logging to /apps/svr/hbase/bin/../logs/hbase-root-regionserver-ns-yun-020022.133.com.out
ns-yun-020023.133.com: running regionserver, logging to /apps/svr/hbase/bin/../logs/hbase-root-regionserver-ns-yun-020023.133.com.out
ns-yun-020024.133.com: running regionserver, logging to /apps/svr/hbase/bin/../logs/hbase-root-regionserver-ns-yun-020024.133.com.out[root@ns-yun-020022 apps]# start-hbase.sh
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/apps/svr/hadoop-2.10.0/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/apps/svr/hbase-2.2.5/lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
running master, logging to /apps/svr/hbase/bin/../logs/hbase-root-master-ns-yun-020022.133.com.out
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/apps/svr/hadoop-2.10.0/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/apps/svr/hbase-2.2.5/lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
ns-yun-020022.133.com: running regionserver, logging to /apps/svr/hbase/bin/../logs/hbase-root-regionserver-ns-yun-020022.133.com.out
ns-yun-020023.133.com: running regionserver, logging to /apps/svr/hbase/bin/../logs/hbase-root-regionserver-ns-yun-020023.133.com.out
ns-yun-020024.133.com: running regionserver, logging to /apps/svr/hbase/bin/../logs/hbase-root-regionserver-ns-yun-020024.133.com.out

留意日志, 已启动 master 及 regionserver

验证 hbase 启动

[root@ns-yun-020022 apps]# jps
155507 DataNode
155927 NodeManager
6792 HRegionServer             <- hbaseregionserver
144379 QuorumPeerMain
8091 Jps
6607 HMaster                    <- hbase master 
155741 JournalNode[root@ns-yun-020023 conf]# jps
176242 DataNode
176550 JournalNode
56836 HRegionServer             <- hbaseregionserver
57703 Jps
175832 DFSZKFailoverController
57210 HMaster
176424 NameNode
177209 ResourceManager
166153 QuorumPeerMain
176829 NodeManager[root@ns-yun-020024 hbase]# jps
8531 NodeManager
8036 JournalNode
38276 Jps
7720 NameNode
37914 HMaster
37498 HRegionServer             <- hbaseregionserver
6683 DFSZKFailoverController
9851 JobHistoryServer
3324 QuorumPeerMain
7388 DataNode
8399 ResourceManager

手动启动

假如进程有问题,可以通过下面方法进行手动启动

hbase-daemon.sh start master
hbase-daemon.sh start regionserver 

这篇关于open-falcon hbase服务配置的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/495083

相关文章

IDEA中配置Tomcat全过程

《IDEA中配置Tomcat全过程》文章介绍了在IDEA中配置Tomcat的六步流程,包括添加服务器、配置部署选项、设置应用服务器及启动,并提及Maven依赖可能因约定大于配置导致问题,需检查依赖版本... 目录第一步第二步第三步第四步第五步第六步总结第一步选择这个方框第二步选择+号,找到Tomca

Win10安装Maven与环境变量配置过程

《Win10安装Maven与环境变量配置过程》本文介绍Maven的安装与配置方法,涵盖下载、环境变量设置、本地仓库及镜像配置,指导如何在IDEA中正确配置Maven,适用于Java及其他语言项目的构建... 目录Maven 是什么?一、下载二、安装三、配置环境四、验证测试五、配置本地仓库六、配置国内镜像地址

SpringBoot多环境配置数据读取方式

《SpringBoot多环境配置数据读取方式》SpringBoot通过环境隔离机制,支持properties/yaml/yml多格式配置,结合@Value、Environment和@Configura... 目录一、多环境配置的核心思路二、3种配置文件格式详解2.1 properties格式(传统格式)1.

Debian系和Redhat系防火墙配置方式

《Debian系和Redhat系防火墙配置方式》文章对比了Debian系UFW和Redhat系Firewalld防火墙的安装、启用禁用、端口管理、规则查看及注意事项,强调SSH端口需开放、规则持久化,... 目录Debian系UFW防火墙1. 安装2. 启用与禁用3. 基本命令4. 注意事项5. 示例配置R

PyCharm中配置PyQt的实现步骤

《PyCharm中配置PyQt的实现步骤》PyCharm是JetBrains推出的一款强大的PythonIDE,结合PyQt可以进行pythion高效开发桌面GUI应用程序,本文就来介绍一下PyCha... 目录1. 安装China编程PyQt1.PyQt 核心组件2. 基础 PyQt 应用程序结构3. 使用 Q

Redis MCP 安装与配置指南

《RedisMCP安装与配置指南》本文将详细介绍如何安装和配置RedisMCP,包括快速启动、源码安装、Docker安装、以及相关的配置参数和环境变量设置,感兴趣的朋友一起看看吧... 目录一、Redis MCP 简介二、安www.chinasem.cn装 Redis MCP 服务2.1 快速启动(推荐)2.

Spring Boot配置和使用两个数据源的实现步骤

《SpringBoot配置和使用两个数据源的实现步骤》本文详解SpringBoot配置双数据源方法,包含配置文件设置、Bean创建、事务管理器配置及@Qualifier注解使用,强调主数据源标记、代... 目录Spring Boot配置和使用两个数据源技术背景实现步骤1. 配置数据源信息2. 创建数据源Be

Spring Boot 与微服务入门实战详细总结

《SpringBoot与微服务入门实战详细总结》本文讲解SpringBoot框架的核心特性如快速构建、自动配置、零XML与微服务架构的定义、演进及优缺点,涵盖开发环境准备和HelloWorld实战... 目录一、Spring Boot 核心概述二、微服务架构详解1. 微服务的定义与演进2. 微服务的优缺点三

Spring Boot Maven 插件如何构建可执行 JAR 的核心配置

《SpringBootMaven插件如何构建可执行JAR的核心配置》SpringBoot核心Maven插件,用于生成可执行JAR/WAR,内置服务器简化部署,支持热部署、多环境配置及依赖管理... 目录前言一、插件的核心功能与目标1.1 插件的定位1.2 插件的 Goals(目标)1.3 插件定位1.4 核

RabbitMQ消息总线方式刷新配置服务全过程

《RabbitMQ消息总线方式刷新配置服务全过程》SpringCloudBus通过消息总线与MQ实现微服务配置统一刷新,结合GitWebhooks自动触发更新,避免手动重启,提升效率与可靠性,适用于配... 目录前言介绍环境准备代码示例测试验证总结前言介绍在微服务架构中,为了更方便的向微服务实例广播消息,