---
title: "Hypertable 的安装与整合KFS"
author: "wangwei3"
date: "2011-02-17T17:01:45Z"
tags: []
categories: ["互联网"]
slug: "hypertable-kfs"
draft: false
lastmod: "2011-02-18T13:57:31Z"
id: 909096
url: "https://wangwei3.iteye.com/blog/909096"
---

<span style="color:red">**原创文章：转载请注明出处 http://wangwei3.iteye.com/admin/blogs/909096**</span>

**安装Hypertable**

下载安装包（http://www.hypertable.com/download/）
hypertable-0.9.4.3-linux-i386.deb 55MB Debian, Complete
hypertable-0.9.4.3-linux-i386.rpm 59MB Redhat, Complete
hypertable-0.9.4.3-linux-i386.tar.bz2 53MB bzip2 "tar" archive, Complete
hypertable-thriftbroker-0.9.4.3-linux-i386.deb 30MB Debian, Thrift broker only
hypertable-thriftbroker-0.9.4.3-linux-i386.rpm 29MB Redhat, Thrift broker only
hypertable-thriftbroker-0.9.4.3-linux-i386.tar.bz2 28MB bzip2 "tar" archive, Thrift broker only
下载安装包的时候要根据自己的系统来选择是32位的还是64位的

Debian installation 
dpkg --install <package>.deb
RPM installation 
rpm -i <package>.rpm
Bzipped archive installation 
tar jxvf <package>.tar.bz2

<span style="color:red">然后再opt下面就可以看到hypertable了</span>

**整合KFS**
修改conf/hypertable.cfg文件，加入以下内容：
#kfs meta server
Kfs.MetaServer.Name=192.168.1.188
Kfs.MetaServer.Port=20000
Kfs.Broker.Workers=20
启动kfs的metaserver chunkserver
启动Hypertable
./bin/start-all-servers.sh kfs
关闭Hypertable
./bin/stop-servers.sh


**如果启动hypertable 有问题**
<span style="color:red">1.ssh不通
2.hostname或者hosts配置域名绑定有问题
3.已有过配置启动的需要删除一下文件夹下的内容
hypertable下删除
/opt/hypertable/0.9.4.3/run
/opt/hypertable/0.9.4.3/hyperspace
/opt/hypertable/0.9.4.3/fs

KFS下删除
/mnt/kfs/meta/bin/kfscp
/mnt/kfs/meta/bin/kfslog
重启kfs和hypertable</span>

进入hypertable shell
bin/ht shell