| 57 | 7. 建立 HBase 的 Thrift PHP 目錄 |
| 58 | {{{ |
| 59 | jazz@precise:~/thrift-0.8.0/hbase_thrift_src$ sudo mkdir -p /var/www/hbase |
| 60 | jazz@precise:~/thrift-0.8.0/hbase_thrift_src$ sudo cp -r ~/thrift-0.8.0/lib/php/src /var/www/hbase/thrift |
| 61 | jazz@precise:~/thrift-0.8.0/hbase_thrift_src$ sudo chown -R $USER:$USER /var/www/hbase/ |
| 62 | jazz@precise:~/thrift-0.8.0/hbase_thrift_src$ mkdir -p /var/www/hbase/thrift/packages |
| 63 | jazz@precise:~/thrift-0.8.0/hbase_thrift_src$ cp -r gen-php/* /var/www/hbase/thrift/packages/ |
| 64 | }}} |
| 65 | 8. 測試 |
| 66 | {{{ |
| 67 | jazz@precise:~/thrift-0.8.0/hbase_thrift_src$ cp /opt/hbase/src/examples/thrift/DemoClient.php /var/www/hbase/DemoClient.php |
| 68 | jazz@precise:~/thrift-0.8.0/hbase_thrift_src$ /opt/hbase/bin/hbase-daemon.sh start thrift -nonblocking |
| 69 | }}} |