|
|
+
David Koch 2012-08-11, 15:38
+
Ioakim Perros 2012-08-11, 15:41
+
David Koch 2012-08-11, 16:26
+
Ioakim Perros 2012-08-11, 16:30
+
anil gupta 2012-08-11, 20:12
+
David Koch 2012-08-12, 11:52
+
Stack 2012-08-13, 08:15
-
Re: Printing integers in the Hbase shellJacques 2012-08-13, 16:08
I was thinking that an easier way might even be to just add the conversion
capability at the ruby shell level. Something like the following where you can give a third qualifier that describes how you want it interpreted. get|scan 'table1', {COLUMNS => ['fam:qual1:toInt', 'fam:qual2:toUTF8', 'fam:qual3:c(com.example.MySpecialConverter)']} Pushing the schema into the server side seems like a much bigger task... Jacques On Mon, Aug 13, 2012 at 1:15 AM, Stack <[EMAIL PROTECTED]> wrote: > On Sun, Aug 12, 2012 at 12:52 PM, David Koch <[EMAIL PROTECTED]> > wrote: > > Hi Anil, > > > > Thank you for your advice. > > > > We don't have a native column typing metadata facility in HBase > currently and so there is nothing for the shell to leverage undoing > the bytes returned in a scan. HBase in this case just does the > lowest common denominator toStringsBinary which will escape the > non-printables (An exception is what the shell does when you scan the > .META. Here the column types are 'known' and so they are interpreted > appropriately). > > We do have a metadata structure for a column family, > HColumnDescriptor. It has a Map into which arbitrary keyvalues can be > stuffed. It shouldn't be too hard coming up w/ a convention for > typing. The shell could consult the HColumnDescriptor before > outputting a cell value to see if the HCD had info on how to format > it. > > St.Ack > +
Stack 2012-08-13, 16:33
+
Stack 2012-08-15, 22:40
|