« Posts tagged php

Ganglia IOStat Disk Metrics

When using Ganglia to monitor your cluster you might miss the possibility to measure disk metrics.
Luckily Ganglia allows to measure user defined metrics with the command line tool gmetric.

Combined with the disk monitor tool iostat, gmetric allows to measure disk metrics.

So i wrote I small PHP script which puts the iostat data to gmetric and is called periodically by a cronjob.

Using Ganglia Web 2 the outcome is pretty candy

PHP Curl Proxy

If you want to use random anonymous proxies for your curl connections, but TOR is not available use the PHP function below.
It uses the CURL proxy option with a random chosen proxy from proxylist.net.
Simple but very effective and it also supports POST data, cookies and retries.

HBase and Hive Thrift PHP Client

Due to my newest project I built a php client to access the HBase and Hive services within a hadoop cluster.

Those services are accessible via thrift a high performance protocol for back end services.

As building a client with thrift is not that easy I decided to put my HBase and Hive php thrift client packages online for others.

Links:
Hadoop

Hive
HBase
Thrift

How it works

Start the HBase and Hive Thrift server via shell:

 

Download HBase and Thrift php client package and write your own client:

 

iSearch – Meta Search Engine

Regular expression pattern based meta search with  an editor that is able to auto create patterns based on html code.

Download source code