• Hbase标准配置文件 + 增删改查 -- zkui Zookeeper可视化工具


    0.https://www.cnblogs.com/cheyunhua/p/9776627.html  zkui它提供了一个管理界面,可以针对zookeepr的节点值进行CRUD操作,同时也提供了安全认证。

    1.可用配置文件

    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="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://do4/hbase</value>
       </property>
         <!--启用分布式集群-->
       <property>
         <name>hbase.cluster.distributed</name>
         <value>true</value>
       </property>
          <!--默认HMaster HTTP访问端口-->
         <property>
          <name>hbase.master.info.port</name>
          <value>16010</value>
         </property>
          <!--默认HRegionServer HTTP访问端口-->
        <property>
           <name>hbase.regionserver.info.port</name>
           <value>16030</value>
        </property>
        <property>
          <name>hbase.zookeeper.quorum</name>
          <value>do9cloud01:2181,do8cloud02:2181,do7cloud03:2181</value>
        </property>
       <property>
          <name>hbase.coprocessor.abortonerror</name>
         <value>false</value>
        </property>
    <property>
            <name>hbase.tmp.dir</name>
            <value>/do2cloud/hbase-2.0.5/tmp</value>
            <description>Temporary directory on the local filesystem.</description>
    </property>
    <property>
    <name>hbase.unsafe.stream.capability.enforce</name>
    <value>false</value>
    </property>
     </configuration>

    2.error: KeeperErrorCode = NoNode for /hbase/master

    参考这篇文档

    https://www.cnblogs.com/yanghuahui/p/3317682.html

    ----------------------------------------------------------------------------------------------------------

    1.查询方式

    1、全表查询:scan tableName
    
    2、基于rowkey的单行查询:get tableName,'1'
    
    3、基于rowkey的范围扫描:scan tableName, {STARTROW=>'1',STOPROW=>'2'}
    https://zhuanlan.zhihu.com/p/75454915
  • 相关阅读:
    Python 字符串处理大全.
    图形化翻译助手
    爬虫详解
    Python 模块.
    定制序列
    Python 的property的实现 .
    Python的魔法方法 .
    通过类的装饰器以及各种单例模式(修复版本)。
    是时候写一下Python装饰器了。
    %E2%80%8C的字符串问题,卡住三个小时。
  • 原文地址:https://www.cnblogs.com/hixiaowei/p/11460187.html
走看看 - 开发者的网上家园