php thrift for HBase
来源:互联网 发布:ubuntu arm 版本 编辑:程序博客网 时间:2024/06/06 00:49
1. Download thrift
wget -O thrift.tgz “http://gitweb.thrift-rpc.org/?p=thrift.git;a=snapshot;h=HEAD;sf=tgz”
tar -xzf thrift.tgz
cd thrift2. Install thrift
./boostrap.sh
./configure
make
sudo make install3. Make php API for HBase
You have to instll HBase in advance.
cp -r /usr/local/hbase/src/java/org/apache/hadoop/hbase/thrift ~/thrift_src
cd ~/thrift_src
thrift -php Hbase.thrift
cp -r ~/thrift_src/lib/php/src /opt/lampp/htdocs/thrift
mkdir /opt/lampp/htdocs/thrift/packages
cp -r ~/thrift_src/gen_php /opt/lampp/htdocs/thrift/packages/Hbase
4. Start HBase thrift server
/usr/local/hbase/bin/hbase thrift start5. Test to access HBase
cp /usr/local/hbase/src/examples/thrift/DemoClient.php /opt/lampp/htdocs/DemoClient.phpYou have to change the THRIFT_ROOT variable in DemoClient.php to the match your thrift root.
eg:
$GLOBALS['THRIFT_ROOT'] = ‘/root/thrift-0.6.1/lib/php/src’;php DemoClient.php
6. Attention
Lf you use clouder CDH to install thrift. You can just:
yum install hadoop-hbase-thrift -yBut you still have to do the above thing in order to get the thrift php API for HBase.
- php thrift for HBase
- PHP通过Thrift操作Hbase
- PHP通过Thrift操作Hbase
- php通过thrift操作hbase
- PHP通过Thrift操作Hbase
- PHP操作HBASE(通过thrift)
- 搭建HBase+thrift+php环境
- php通过thrift操作hbase
- php通过thrift操作hbase
- PHP通过Thrift操作Hbase
- 编译Hbase-thrift-php客户端
- 搭建HBase+thrift+php环境
- 通过thrift使用PHP访问Hbase
- php通过thrift 0.9.0操作HBase
- HBase Thrift
- PHP用thrift操作Hbase的简明教程
- php 通过 thrift-0.8.0 连接hbase 以及函数使用
- ubuntu使用thrift来连接PHP和HBase
- vim
- Android模拟器大小分类
- CDH3 Install Guide
- Hadoop Tricks
- GIT和SVN之间的五个基本区别
- php thrift for HBase
- android的HttpGet和HttpPost
- 项目启发
- FastDB 应用开发指南
- git 和repo常用命令
- SQL FullIndex Contains 用法
- ThinkPHP的CURD方法及查询方法一览
- 京东买书后
- JAVA JDBC方式连接字符串的基本步骤