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:

Then thrift:

    hbase thrift -b start

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