Sunday, April 12, 2015

Kite flying at subic

It's their first time :)




Friday, March 6, 2015

RSPEC - Run a local fake thrift server

On Mac OSX...

Run a local thrift server to catch ThriftClient::NoServersAvailable and mock all other response (may require password to install admin privilege)
  1. brew update
  2. brew install Caskroom/cask/java
  3. brew install hbase
Then run:

    start-hbase.sh

Then thrift:

    hbase thrift -b 127.0.0.1 start

I needed to do this to ensure we're not communicating with production thrift server during tests. Once I set hostname to 127.0.0.1:9090, it gave back ThriftClient::NoServersAvailable exception. Then once thrift is running, it gives back 'Socket: Timed out reading 4 bytes from 127.0.0.1:9090', that means we're hitting the local server, and of course it doesn't know how to respond to requests.