Hbase的配置与使用

摘要:
xmlversion=“1.0”?˃˂!

Hbase的配置与使用

设置环境变量

vim /etc/profile
export HBASE_HOME=/usr/local/hbase
export PATH=$PATH:/usr/local/hbase/bin

Hbase的配置与使用第1张

source /etc/profile

设置Hbase的配置文件

cd /usr/local/hbase/conf
vim hbase-env.sh

Hbase的配置与使用第2张

cd /usr/local/hbase/conf
vim hbase-site.xml

Hbase的配置与使用第3张

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="http://t.zoukankan.com/configuration.xsl"?>
<!--
/**
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-->

<configuration>
        <property>
                <name>hbase.rootdir</name>
                <value>hdfs://localhost:9000/hbase</value>
        </property>
        <property>
                <name>hbase.cluster.distributed</name>
                <value>true</value>
        </property>
        <property>
                <name>hbase.master.info.port</name>
                <value>60010</value>
        </property>
</configuration>

启动Hbase

首先保证启动hadoop

start-all.sh

在hbase目录下执行bin/start-hbase.sh,用JPS检测

bin/start-hbase.sh

Hbase的配置与使用第4张

进入控制台

hbase shell

Hbase的配置与使用第5张

免责声明:文章转载自《Hbase的配置与使用》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Windows解决多版本python执行pip3时出错AttributeError: module 'enum' has no attribute 'IntFlag'?你应该知道的30个jQuery代码开发技巧下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

HDFS只支持文件append操作, 而依赖HDFS的HBase如何完成数据的增删改查

转:http://www.th7.cn/db/nosql/201510/135382.shtml 1. HDFS的文件append功能 早期版本的HDFS不支持任何的文件更新操作,一旦一个文件创建、写完数据、并关闭之后,这个文件就再也不能被改变了。为什么这么设计?是为了与MapReduce完美配合,MapReduce的工作模式是接受一系列输入文件,经过ma...

CDH5.4.5运行Phoenix导入CSV文件

1.安装phoenix 在界面上设置Phoenix的parcel包: http://52.11.56.155:7180/cmf/settings?groupKey=config.scm.parcel.display_group&groupParent= 添加一个Remote Parcel Repository URLsurl:http://arch...

HBase BulkLoad批量写入数据实战

1.概述 在进行数据传输中,批量加载数据到HBase集群有多种方式,比如通过HBase API进行批量写入数据、使用Sqoop工具批量导数到HBase集群、使用MapReduce批量导入等。这些方式,在导入数据的过程中,如果数据量过大,可能耗时会比较严重或者占用HBase集群资源较多(如磁盘IO、HBase Handler数等)。今天这篇博客笔者将为大家分...

【甘道夫】HBase(0.96以上版本号)过滤器Filter具体解释及实例代码

说明: 本文參考官方Ref Guide,Developer API和众多博客。并结合实測代码编写。具体总结HBase的Filter功能,并附上每类Filter的对应代码实现。 本文尽量遵从Ref Guide中“9.4. Client Request Filters”的行文顺序,便于读者对照查看,但内容比官方文档更加详实。 ***2014年7月18日...

Hbase和Phoenix部署-单机版

1. 说明内容: l Hbase单机版部署 l Phoenix单机版部署 l Hbase使用 l Phoenix使用 环境: l centos 7.2 l jdk 1.8.0  l hbase-1.2.0-bin.tar.gz l apache-phoenix-4.14.0-HBase-1.2-bin.tar.gz 1. Hbase部署 2.1解压 解...

Hbase关于Java常用API举例

1. HBase相关对Admin操作的的API封装在HBaseAdmin中,封装了HBase常用操作的API 使用方法: pom.xml <!-- https://mvnrepository.com/artifact/org.apache.hbase/hbase-client --> <dependency>...