• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

HBase Thrift 0.5.0 + PHP 五 安裝設定

php 搞代码 4年前 (2022-01-24) 21次浏览 已收录 0个评论

HBase Thrift 0.5.0 + PHP 5 安裝設定

原文地址:

http://blog.kfchph.com/20-hbase-thrift-050-php5/

系統環境與套件版本

  • 作業系統環境: Ubuntu 9.04 Server x2
  • Hadoop 0.20.2 Fully-distributed modes
  • HBase 0.89.20100621 Fully-distributed modes
  • Thrift 0.5.0

1. 下載 Thrift 0.5.0

1wgetftp://ftp.stu.edu.tw/Unix/Web/apache//incubator/thrift/0.5.0-incubating/thrift-0.5.0.tar.gz

2. 安裝 Thrift 相依套件

Thrift 需要 C++ 的 libboost 函式庫, 以及 flex, libtool 方能運作

1$?sudo?apt-get?install?libboost-dev automake libtool flex bison g++

3. 安裝需要的程式語言, 這裡安裝 Python & PHP

注意, 不能裝 php5, 不然會沒有設定檔

1$?sudo?apt-get?install?python python-all-dev
2$?sudo?apt-get?install?php5-dev

4. 於 Thrift 目錄執行環境設定檢測

1$?cd?thrift0.5.0/
2$ ./configure

正常應輸出:

01thrift 0.5.0
02?
03Building code generators ..... : cpp java as3 csharp py rb perl php erl cocoa st ocaml hs xsd html js javame
04?
background-image: none !important; background-color: #1b2426 !important; text-align: left !impo


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:HBase Thrift 0.5.0 + PHP 五 安裝設定
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址