Hi Mike, The values are Base64 encoded, so you need to use a decoder. HBase ships with one in the REST package that you can use for example.
Lars On Wed, Feb 23, 2011 at 7:22 PM, Mike <[email protected]> wrote: > I'm having some issues converting the results of a restful call through > stargate. I'm returning the data as a json representation which appears to > work > fine as it returns the desired fields: > > JsonRepresentation jr = new > JsonRepresentation(resource.get(MediaType.APPLICATION_JSON)); > > When I parse through the Json I can break down the values and print them out: > > time: 1298398387275, Value: MTEzMzQz, Column: ZGF0YTpjaWQ= > time: 1298398387275, Value: > NTUwIGFubmRhdmlzQGVhcnRobGluay5uZXQuLi5Vc2VyIGFjY291bnQgaXMgdW5hdmFpbGFibGU=, > Column: ZGF0YTpkZXRhaWxz > time: 1298398387275, Value: ZWFydGhsaW5rLm5ldA==, Column: ZGF0YTpkb21haW4= > time: 1298398387275, Value: MTMwNjA2Mg==, Column: ZGF0YTptaWQ= > > But I cannot seem to convert the values to a string. I've tried using the > Bytes.toString and recieve the following Error: > > xception in thread "main" java.lang.NoClassDefFoundError: > org/apache/hadoop/io/RawComparator > > Any help is appreciated. > >
