Re: how to use HBase Shell formatter?

2013-06-02 Thread Demai Ni
Ted, Thanks for pointing me the direction. I will looking into the enhancement Demai on the run On Jun 2, 2013, at 1:43 PM, Ted Yu wrote: > Looking at the following from formatter.rb: >col1width = (not widths or widths.length == 0) ? @max_width / 4 > : @max_width * widths[0] / 100

Re: how to use HBase Shell formatter?

2013-06-02 Thread Ted Yu
Looking at the following from formatter.rb: col1width = (not widths or widths.length == 0) ? @max_width / 4 : @max_width * widths[0] / 100 col2width = (not widths or widths.length < 2) ? @max_width - col1width - 2 : @max_width * widths[1] / 100 - 2 It seems the widths argum

how to use HBase Shell formatter?

2013-06-02 Thread N Dm
hi, folks, Can someone point me to a sample about how to use 'formatter.rb' inside hbase ruby code? The version I am using is 94.3 I am trying to implement a 'list_replicated_table' command on hbase shell, and leveraging 'formatter" to lay out the output. The code segement is like: forma