lucasmarshall/Petrel — pull request #1 by fourk (2014-05-15 01:02:11+00:00)
Title: Update petrel status to work with Storm 0.9

Running `petrel status` fails on Storm 0.9.0.1 due to a change in the thrift structures.

Test output when running against storm 0.9.0.1:

```
user@host:~$ petrel status localhost
id,uptime,host,port,component,emitted,transferred,acked,failed,num_errors
__acker, 17953, localhost, 6700, __acker, 0, 0, 0, 0, 0
__acker, 17953, localhost, 6700, __acker, 0, 0, 0, 0, 0
__acker, 17953, localhost, 6700, __acker, 0, 0, 0, 0, 0
__acker, 17953, localhost, 6700, __acker, 0, 0, 0, 0, 0
__acker, 17953, localhost, 6700, __acker, 0, 0, 0, 0, 0
some-spout, 17953, localhost, 6700, some-spout, -, -, -, -, 1
Error #1 (2014/05/14 19:52:01)

java.lang.RuntimeException: Pipe to subprocess seems to be broken! No output read.
Shell Process Exception:

at backtype.storm.utils.ShellProcess.readString(ShellProcess.java:118)
at backtype.storm.utils.ShellProcess.readMessage(ShellProcess.java:64)
at backtype.storm.utils.ShellProcess.launch(ShellProcess.java:45)
at backtype.storm.spout.ShellSpout.open(ShellSpout.java:36)
at backtype.storm.daemon.executor$fn__3430$fn__3445.invoke(executor.clj:504)
at backtype.storm.util$async_loop$fn__444.invoke(util.clj:401)
at clojure.lang.AFn.run(AFn.java:24)
at java.lang.Thread.run(Thread.java:745)

data-inserter-bolt, 17953, localhost, 6700, data-inserter-bolt, -, -, -, -, 0
ingester-live-bolt, 17953, localhost, 6700, ingester-live-bolt, -, -, -, -, 0
live-aggregator-bolt, 17953, localhost, 6700, live-aggregator-bolt, -, -, -, -, 0
```

W/rt the repeated __acker lines, I'm unfamiliar with what the output looked like for Storm version < 0.9, so I don't know how it handled all the separate ackers previously. Potentially it happened in the same way. The only difference between the separate ackers in the actual thrift response is in the form of `executor.executor_info` which has task_start and task_end attributes. When testing, task_start == task_end with values between 1-5 inclusive.