楼主: jieforest

分布式数据库Hypertable 0.9.7.6发布

[复制链接]
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
51#
 楼主| 发表于 2013-6-11 09:15 | 只看该作者
STEP 10 - START HYPERTABLETOP

The following commands should be run from the directory containing the Capfile. To start all of the Hypertable servers:
  1. $ cap start
复制代码
If you want to launch the service using a different config file than the default (e.g. /home/chris/alternate.cfg):
  1. $ cap -S config=/home/chris/alternate.cfg start
复制代码
You'll need to specify the same config file when running Hypertable commands such as the command shell, for example:
  1. $ /opt/hypertable/current/bin/ht shell --config=/home/chris/alternate.cfg
复制代码

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
52#
 楼主| 发表于 2013-6-11 09:16 | 只看该作者
STEP 11 - VERIFY INSTALLATIONTOP

Create a table.
  1. echo "USE '/'; CREATE TABLE foo ( c1, c2 ); GET LISTING;" \
  2.     | /opt/hypertable/current/bin/ht shell --batch
复制代码
The output of this command should look like:
  1. foo
  2. sys (namespace)
复制代码

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
53#
 楼主| 发表于 2013-6-15 10:06 | 只看该作者
Load some data.
  1. echo "USE '/'; INSERT INTO foo VALUES('001', 'c1', 'very'), \
  2.     ('000', 'c1', 'Hypertable'), ('001', 'c2', 'easy'), ('000', 'c2', 'is');" \
  3.     | /opt/hypertable/current/bin/ht shell --batch
复制代码
Dump the table.
  1. echo "USE '/'; SELECT * FROM foo;" \
  2.     | /opt/hypertable/current/bin/ht shell --batch
复制代码
The output of this command should look like:
  1. 000        c1        Hypertable
  2. 000        c2        is
  3. 001        c1        very
  4. 001        c2        easy
复制代码

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
54#
 楼主| 发表于 2013-6-15 10:06 | 只看该作者
STEP 12 - STOP HYPERTABLETOP

To stop the service, shutting down all servers:
  1. $ cap stop
复制代码
If you want to wipe your database clean, removing all namespaces and tables:
  1. $ cap cleandb
复制代码

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
55#
 楼主| 发表于 2013-6-15 10:06 | 只看该作者
WHAT NEXT?TOP

Congratulations!  Now that you have successfully installed Hypertable, we recommend that you walk through the HQL Tutorial to get familiar with using the system.

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
56#
 楼主| 发表于 2013-6-15 10:07 | 只看该作者
HOW TO CHANGE HADOOP DISTROTOP

Hypertable can run on most modern distributions of Hadoop.  The Hypertable packages currently have built-in support for the Cloudera distribtion (we will be adding support for the Hortonworks distribution soon).  CDH3 is the distribution that is configured by default.  To switch to the CDH4 distribution, edit the default_distro variable at the top of your Capfile:
  1. set :default_distro, "cdh4"
复制代码
and then run the following command:
  1. cap set_distro
复制代码

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
57#
 楼主| 发表于 2013-6-15 10:07 | 只看该作者
Other (non-Cloudera) distributions

If you would like to run Hypertable on top of a distribution other than Cloudera, you'll need to deposit the distribution jar files in the lib/java directory (e.g. /opt/hypertable/current/lib/java).  You'll also need to copy the corresponding Hypertable jar files into that directory as well.  For Hadoop 1 distributions, use the hypertable jar files located in lib/java/cd3 directory (e.g. /opt/hypertable/current/lib/java/cdh3), for Hadoop 2 distributions, use the Hypertable jar files located in the lib/java/cd4 directory (e.g. /opt/hypertable/current/lib/java/cdh4). Be sure to first remove any existing hadoop jar files, for example:
  1. cap shell
  2. cap> rm -f /opt/hypertable/current/lib/java/hadoop-*
复制代码
Then deposit the Hadoop jar files for your distribution under /opt/hypertab/current/lib/java and then distribute them to all machines in the cluster with the following command:
  1. cap dist
复制代码

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
58#
 楼主| 发表于 2013-6-15 10:08 | 只看该作者
over.

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表