<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Hbase 集群安装和部署]]></title><description><![CDATA[<p dir="auto">1.配置免密登录<br />
参考http://an.forum.genostack.com/topic/256/hdfs-%E5%AE%89%E8%A3%85%E5%92%8C%E9%83%A8%E7%BD%B2/8</p>
<p dir="auto">2.下载安装 下载最新的stable版本<br />
HBASE依赖HDFS 需要先安装和配置HDFS<br />
wget <a href="https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/stable/hbase-2.3.4-bin.tar.gz" rel="nofollow ugc">https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/stable/hbase-2.3.4-bin.tar.gz</a><br />
sudo tar -zxvf hbase-2.3.4-bin.tar.gz<br />
cd hbase-2.3.4<br />
whereis java<br />
修改conf/hbase-env.sh　配置java目录<br />
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/</p>
<p dir="auto">3.配置<br />
vi conf/regionservers<br />
master<br />
slave1</p>
<p dir="auto">zookeeper conf/hbase-site.xml<br />
&lt;property&gt;<br />
&lt;name&gt;hbase.cluster.distributed&lt;/name&gt;<br />
&lt;value&gt;true&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;property&gt;<br />
&lt;name&gt;hbase.rootdir&lt;/name&gt;<br />
&lt;value&gt;hdfs://master:7000/hbase&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;property&gt;<br />
&lt;name&gt;hbase.zookeeper.quorum&lt;/name&gt;<br />
&lt;value&gt;master,slave1&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;property&gt;<br />
&lt;name&gt;hbase.zookeeper.property.dataDir&lt;/name&gt;<br />
&lt;value&gt;/opt/hadoop/zookeeper_dir&lt;/value&gt;<br />
&lt;/property&gt;</p>
<p dir="auto">4.启动<br />
bin/start-hbase.sh<br />
sudo jps 检查 Hmaster HRegionServer HQuorumPeer是否正常<br />
50497 SecondaryNameNode<br />
37969 Jps<br />
50018 DataNode<br />
36676 HMaster<br />
37270 HRegionServer<br />
49724 NameNode<br />
36350 HQuorumPeer</p>
]]></description><link>http://an.forum.genostack.com/topic/259/hbase-集群安装和部署</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 11:28:49 GMT</lastBuildDate><atom:link href="http://an.forum.genostack.com/topic/259.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Mar 2021 07:21:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hbase 集群安装和部署 on Tue, 06 Apr 2021 07:12:54 GMT]]></title><description><![CDATA[<p dir="auto">final 字段的含义<br />
Configuration parameters may be declared final. Once a resource declares a value final, no subsequently-loaded resource can alter that value</p>
]]></description><link>http://an.forum.genostack.com/post/544</link><guid isPermaLink="true">http://an.forum.genostack.com/post/544</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Tue, 06 Apr 2021 07:12:54 GMT</pubDate></item><item><title><![CDATA[Reply to Hbase 集群安装和部署 on Tue, 06 Apr 2021 06:29:00 GMT]]></title><description><![CDATA[<p dir="auto">web地址：<br />
<a href="http://103.114.101.5:16010" rel="nofollow ugc">http://103.114.101.5:16010</a><br />
可以查看系统信息</p>
]]></description><link>http://an.forum.genostack.com/post/543</link><guid isPermaLink="true">http://an.forum.genostack.com/post/543</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Tue, 06 Apr 2021 06:29:00 GMT</pubDate></item><item><title><![CDATA[Reply to Hbase 集群安装和部署 on Wed, 31 Mar 2021 08:57:36 GMT]]></title><description><![CDATA[<p dir="auto">启动rest服务</p>
<h1>Foreground</h1>
<p dir="auto">$ bin/hbase rest start -p 7777</p>
<h1>Background, logging to a file in $HBASE_LOGS_DIR</h1>
<p dir="auto">$ bin/hbase-daemon.sh start rest -p 7777</p>
<p dir="auto">$ bin/hbase-daemon.sh stop rest<br />
以下示例使用占位符服务器http://example.com:8000，并且可以使用curl或wget命令运行以下命令。您可以通过不为纯文本添加头信息来请求纯文本(默认)，XML或JSON输出，或者为XML添加头信息“Accept：text / xml”，为JSON添加“Accept：application / json”或为协议缓冲区添加“Accept: application/x-protobuf”。<br />
curl -vi -X GET -H "Accept:application / json"　"<a href="http://192.168.1.2:7777/nt/schema%E2%80%9C" rel="nofollow ugc">http://192.168.1.2:7777/nt/schema“</a></p>
]]></description><link>http://an.forum.genostack.com/post/528</link><guid isPermaLink="true">http://an.forum.genostack.com/post/528</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Wed, 31 Mar 2021 08:57:36 GMT</pubDate></item><item><title><![CDATA[Reply to Hbase 集群安装和部署 on Thu, 25 Mar 2021 08:23:29 GMT]]></title><description><![CDATA[<p dir="auto">基本操作</p>
<p dir="auto">Connect to HBase.</p>
<p dir="auto">Connect to your running instance of HBase using the hbase shell command, located in the bin/ directory of your HBase install. In this example, some usage and version information that is printed when you start HBase Shell has been omitted. The HBase Shell prompt ends with a &gt; character.</p>
<p dir="auto">$ ./bin/hbase shell<br />
hbase(main):001:0&gt;<br />
Display HBase Shell Help Text.</p>
<p dir="auto">Type help and press Enter, to display some basic usage information for HBase Shell, as well as several example commands. Notice that table names, rows, columns all must be enclosed in quote characters.</p>
<p dir="auto">Create a table.</p>
<p dir="auto">Use the create command to create a new table. You must specify the table name and the ColumnFamily name.</p>
<pre><code>hbase(main):001:0&gt; create 'test', 'cf'
0 row(s) in 0.4170 seconds
</code></pre>
<p dir="auto">=&gt; Hbase::Table - test<br />
List Information About your Table</p>
<p dir="auto">Use the list command to confirm your table exists</p>
<pre><code>hbase(main):002:0&gt; list 'test'
TABLE
test
1 row(s) in 0.0180 seconds
</code></pre>
<p dir="auto">=&gt; ["test"]<br />
Now use the describe command to see details, including configuration defaults</p>
<pre><code>hbase(main):003:0&gt; describe 'test'
Table test is ENABLED
test
COLUMN FAMILIES DESCRIPTION
{NAME =&gt; 'cf', VERSIONS =&gt; '1', EVICT_BLOCKS_ON_CLOSE =&gt; 'false', NEW_VERSION_BEHAVIOR =&gt; 'false', KEEP_DELETED_CELLS =&gt; 'FALSE', CACHE_DATA_ON_WRITE =&gt;
'false', DATA_BLOCK_ENCODING =&gt; 'NONE', TTL =&gt; 'FOREVER', MIN_VERSIONS =&gt; '0', REPLICATION_SCOPE =&gt; '0', BLOOMFILTER =&gt; 'ROW', CACHE_INDEX_ON_WRITE =&gt; 'f
alse', IN_MEMORY =&gt; 'false', CACHE_BLOOMS_ON_WRITE =&gt; 'false', PREFETCH_BLOCKS_ON_OPEN =&gt; 'false', COMPRESSION =&gt; 'NONE', BLOCKCACHE =&gt; 'true', BLOCKSIZE
 =&gt; '65536'}
1 row(s)
Took 0.9998 seconds
</code></pre>
<p dir="auto">Put data into your table.</p>
<p dir="auto">To put data into your table, use the put command.</p>
<pre><code>hbase(main):003:0&gt; put 'test', 'row1', 'cf:a', 'value1'
0 row(s) in 0.0850 seconds

hbase(main):004:0&gt; put 'test', 'row2', 'cf:b', 'value2'
0 row(s) in 0.0110 seconds

hbase(main):005:0&gt; put 'test', 'row3', 'cf:c', 'value3'
0 row(s) in 0.0100 seconds
</code></pre>
<p dir="auto">Here, we insert three values, one at a time. The first insert is at row1, column cf:a, with a value of value1. Columns in HBase are comprised of a column family prefix, cf in this example, followed by a colon and then a column qualifier suffix, a in this case.</p>
<p dir="auto">Scan the table for all data at once.</p>
<p dir="auto">One of the ways to get data from HBase is to scan. Use the scan command to scan the table for data. You can limit your scan, but for now, all data is fetched.</p>
<pre><code>hbase(main):006:0&gt; scan 'test'
ROW                                      COLUMN+CELL
 row1                                    column=cf:a, timestamp=1421762485768, value=value1
 row2                                    column=cf:b, timestamp=1421762491785, value=value2
 row3                                    column=cf:c, timestamp=1421762496210, value=value3
3 row(s) in 0.0230 seconds
</code></pre>
<p dir="auto">Get a single row of data.</p>
<p dir="auto">To get a single row of data at a time, use the get command.</p>
<pre><code>hbase(main):007:0&gt; get 'test', 'row1'
COLUMN                                   CELL
 cf:a                                    timestamp=1421762485768, value=value1
1 row(s) in 0.0350 seconds
Disable a table.
</code></pre>
<p dir="auto">If you want to delete a table or change its settings, as well as in some other situations, you need to disable the table first, using the disable command. You can re-enable it using the enable command.</p>
<pre><code>hbase(main):008:0&gt; disable 'test'
0 row(s) in 1.1820 seconds
</code></pre>
<pre><code>hbase(main):009:0&gt; enable 'test'
0 row(s) in 0.1770 seconds
</code></pre>
<p dir="auto">Disable the table again if you tested the enable command above:</p>
<pre><code>hbase(main):010:0&gt; disable 'test'
0 row(s) in 1.1820 seconds
</code></pre>
<p dir="auto">Drop the table.</p>
<p dir="auto">To drop (delete) a table, use the drop command.</p>
<pre><code>hbase(main):011:0&gt; drop 'test'
0 row(s) in 0.1370 seconds
</code></pre>
<p dir="auto">Exit the HBase Shell.</p>
<p dir="auto">To exit the HBase Shell and disconnect from your cluster, use the quit command. HBase is still running in the background.</p>
]]></description><link>http://an.forum.genostack.com/post/506</link><guid isPermaLink="true">http://an.forum.genostack.com/post/506</guid><dc:creator><![CDATA[anneng]]></dc:creator><pubDate>Thu, 25 Mar 2021 08:23:29 GMT</pubDate></item></channel></rss>