{{{ #!html
hadoop + Hbase + thrift + php
程式碼解析
}}} [[PageOutline]] = 零、前言 = * 程式安裝測試方法已紀錄於: [wiki:waue/2010/0401 安裝編譯及測試 ] * 因此目錄結構為 || hadoop || /opt/hadoop || || || hbase || /opt/hbase || || || 網頁根目錄 || /var/www/ || || || hbase 的php碼目錄 || /var/www/hbase || || || thrift php || /var/www/hbase/thrift || || * 測試程式之前,請先確定 * hbase , hadoop 都有正常運作中 * $ bin/hbase thrift start 尚在執行 = 一、php引用thrift lib = {{{ #!php setSendTimeout( 10000 ); // Ten seconds (too long for production, but this is just a demo ;) $socket->setRecvTimeout( 20000 ); // Twenty seconds $transport = new TBufferedTransport( $socket ); $protocol = new TBinaryProtocol( $transport ); $client = new HbaseClient( $protocol ); $transport->open(); ?> ........ 其他程式碼 ....... close(); ?> }}}