Skip to content

Commit 93b630e

Browse files
committed
向量数据库
1 parent ba1cc65 commit 93b630e

File tree

197 files changed

+957
-620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+957
-620
lines changed

database/apache-hbase/hbase.conf.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<a xmlns="" href="http://cn.linkedin.com/in/netkiller/">Linkedin</a> |
1515
<a xmlns="" href="https://www.youtube.com/user/bg7nyt/videos">Youtube</a> |
1616
<a xmlns="" href="//www.netkiller.cn/home/donations.html">打赏(Donations)</a> |
17-
<a xmlns="" href="//www.netkiller.cn/home/about.html">About</a><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">16.2. 配置 Apache Hbase</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="index.html">上一页</a> </td><th width="60%" align="center">第 16 章 Apache Hbase</th><td width="20%" align="right"> <a accesskey="n" href="hbase.shell.html">下一页</a></td></tr></table><hr /></div><table xmlns=""><tr><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=watch&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=fork&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;type=follow&amp;count=true&amp;size=large" height="30" width="240" frameborder="0" scrolling="0" style="width:240px; height: 30px;" allowTransparency="true"></iframe></td><td></td><td><a href="https://zhuanlan.zhihu.com/netkiller"><img src="/images/logo/zhihu-card-default.svg" height="25" /></a></td><td valign="middle"><a href="https://zhuanlan.zhihu.com/netkiller">知乎专栏</a><a href="https://www.zhihu.com/club/1241768772601950208">多维度架构</a></td><td></td><td></td><td></td><td></td></tr></table><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="hbase.conf"></a>16.2. 配置 Apache Hbase</h2></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm219672125152"></a>16.2.1. hbase-env.sh</h3></div></div></div><p>环境变量配置文件</p><p>HBASE_MANAGES_ZK=true 仅用于单机运行,true表示不使用 Zookeeper</p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm219672124096"></a>16.2.2. hbase-site.xml</h3></div></div></div><p>分布式模式的开启与关闭 hbase.cluster.distributed</p><pre class="screen">
17+
<a xmlns="" href="//www.netkiller.cn/home/about.html">About</a><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">16.2. 配置 Apache Hbase</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="index.html">上一页</a> </td><th width="60%" align="center">第 16 章 Apache Hbase</th><td width="20%" align="right"> <a accesskey="n" href="hbase.shell.html">下一页</a></td></tr></table><hr /></div><table xmlns=""><tr><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=watch&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=fork&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;type=follow&amp;count=true&amp;size=large" height="30" width="240" frameborder="0" scrolling="0" style="width:240px; height: 30px;" allowTransparency="true"></iframe></td><td></td><td><a href="https://zhuanlan.zhihu.com/netkiller"><img src="/images/logo/zhihu-card-default.svg" height="25" /></a></td><td valign="middle"><a href="https://zhuanlan.zhihu.com/netkiller">知乎专栏</a><a href="https://www.zhihu.com/club/1241768772601950208">多维度架构</a></td><td></td><td></td><td></td><td></td></tr></table><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="hbase.conf"></a>16.2. 配置 Apache Hbase</h2></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm254476690288"></a>16.2.1. hbase-env.sh</h3></div></div></div><p>环境变量配置文件</p><p>HBASE_MANAGES_ZK=true 仅用于单机运行,true表示不使用 Zookeeper</p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm254476689232"></a>16.2.2. hbase-site.xml</h3></div></div></div><p>分布式模式的开启与关闭 hbase.cluster.distributed</p><pre class="screen">
1818

1919
&lt;property&gt;
2020
&lt;name&gt;hbase.cluster.distributed&lt;/name&gt;

database/apache-hbase/hbase.faq.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
<a xmlns="" href="http://cn.linkedin.com/in/netkiller/">Linkedin</a> |
1515
<a xmlns="" href="https://www.youtube.com/user/bg7nyt/videos">Youtube</a> |
1616
<a xmlns="" href="//www.netkiller.cn/home/donations.html">打赏(Donations)</a> |
17-
<a xmlns="" href="//www.netkiller.cn/home/about.html">About</a><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">16.6. FAQ</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="phoenix/index.html">上一页</a> </td><th width="60%" align="center">第 16 章 Apache Hbase</th><td width="20%" align="right"> <a accesskey="n" href="../apache-hive/index.html">下一页</a></td></tr></table><hr /></div><table xmlns=""><tr><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=watch&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=fork&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;type=follow&amp;count=true&amp;size=large" height="30" width="240" frameborder="0" scrolling="0" style="width:240px; height: 30px;" allowTransparency="true"></iframe></td><td></td><td><a href="https://zhuanlan.zhihu.com/netkiller"><img src="/images/logo/zhihu-card-default.svg" height="25" /></a></td><td valign="middle"><a href="https://zhuanlan.zhihu.com/netkiller">知乎专栏</a><a href="https://www.zhihu.com/club/1241768772601950208">多维度架构</a></td><td></td><td></td><td></td><td></td></tr></table><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="hbase.faq"></a>16.6. FAQ</h2></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm219672101568"></a>16.6.1. HBaseConfTool : Unsupported major.minor version 51.0</h3></div></div></div><p>错误提示</p><pre class="screen">
17+
<a xmlns="" href="//www.netkiller.cn/home/about.html">About</a><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">16.6. FAQ</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="phoenix/index.html">上一页</a> </td><th width="60%" align="center">第 16 章 Apache Hbase</th><td width="20%" align="right"> <a accesskey="n" href="../apache-hive/index.html">下一页</a></td></tr></table><hr /></div><table xmlns=""><tr><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=watch&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=fork&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;type=follow&amp;count=true&amp;size=large" height="30" width="240" frameborder="0" scrolling="0" style="width:240px; height: 30px;" allowTransparency="true"></iframe></td><td></td><td><a href="https://zhuanlan.zhihu.com/netkiller"><img src="/images/logo/zhihu-card-default.svg" height="25" /></a></td><td valign="middle"><a href="https://zhuanlan.zhihu.com/netkiller">知乎专栏</a><a href="https://www.zhihu.com/club/1241768772601950208">多维度架构</a></td><td></td><td></td><td></td><td></td></tr></table><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="hbase.faq"></a>16.6. FAQ</h2></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm254558494400"></a>16.6.1. HBaseConfTool : Unsupported major.minor version 51.0</h3></div></div></div><p>错误提示</p><pre class="screen">
1818
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/hadoop/hbase/util/HBaseConfTool : Unsupported major.minor version 51.0
19-
</pre><p>解决方案,Hbase 不支持 OpenJDK 更换 Oracle Server JRE 后可以解决。</p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm219672100160"></a>16.6.2. ignoring option PermSize=128m; support was removed in 8.0</h3></div></div></div><p>jvm 1.8 之后不再支持PermSize和MaxPermSize选项</p><pre class="screen">
19+
</pre><p>解决方案,Hbase 不支持 OpenJDK 更换 Oracle Server JRE 后可以解决。</p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm254558034000"></a>16.6.2. ignoring option PermSize=128m; support was removed in 8.0</h3></div></div></div><p>jvm 1.8 之后不再支持PermSize和MaxPermSize选项</p><pre class="screen">
2020
[neo@netkiller hbase]$ bin/start-hbase.sh
2121
starting master, logging to /srv/hbase/bin/../logs/hbase-root-master-localhost.localdomain.out
2222
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0

database/apache-hbase/hbase.shell.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
hbase(main):038:0&gt; exit
3030
[neo@netkiller bin]$
3131

32-
</pre><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm219672119664"></a>16.3.1. 表操作</h3></div></div></div><p>首先我们做几个基本操作,例如创建表,写入数据,读取数据等等,你会发现Hbase被神话了,操作其实没有那么复杂,远没有关系型数据库复杂。</p><p>创建一个名为 t1 的表,使用默认命名空间 namespace=default,这个表有一个列族名(column family) 为 f1。后面会解释什么是 column family,这里你只要对着操作就可以了。</p><pre class="screen">
32+
</pre><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm254476684736"></a>16.3.1. 表操作</h3></div></div></div><p>首先我们做几个基本操作,例如创建表,写入数据,读取数据等等,你会发现Hbase被神话了,操作其实没有那么复杂,远没有关系型数据库复杂。</p><p>创建一个名为 t1 的表,使用默认命名空间 namespace=default,这个表有一个列族名(column family) 为 f1。后面会解释什么是 column family,这里你只要对着操作就可以了。</p><pre class="screen">
3333

3434
hbase(main):002:0&gt; create 't1', 'f1'
3535
0 row(s) in 1.2190 seconds

0 commit comments

Comments
 (0)