thrift api 使用: HTML
在這一篇文章中, 我們將介紹如何使用HTML透過PHP讀取hbase, 我們安裝的目錄結構為: hadoop /opt/hadoop hbase /opt/hbase 網頁根目錄 /var/www/ hbase的php目錄 /var/www/hbase thrift php /var/www/hbase/thrift php存放目錄 /var/www/php 測試程式之前,請先確定hbase , hadoop 都有正常運作中 $ bin/hbase thrift start 尚在執行 以下是我們的範例程式(example.php): <!DOCTYPE html> <html> <meta charset="utf-8"> <head> <script> function getUser() { if(window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); if(xmlhttp != null) ...