Hi Krishnaprasad 1. I meant "did you checked the table was empty, before the execution of the put, not the get" 2. Just by curiosity: in your code you have once: "demo-hadoop1" and "192.168.150.203" 3. The key you use in your program is 3001 and the one you use in the shell is 3000, so are you sure you check the same stuff??
Mikael.S On Tue, Feb 28, 2012 at 9:01 AM, krishnaprasad <[email protected]>wrote: > Hi Mikael, > I checked that the row is empty or not and it is obviously not empty, > because I have put value into column family 'CREATIVE_GROUP' just before > 'get'. > The HBase shell responds correctly, > -------------------------------------------- > Shell output:- > > hbase(main):002:0> get 'STATE_STORE','3000','CREATIVE_GROUP' > COLUMN CELL > CREATIVE_GROUP:STATE > timestamp=1330353883796, value=\xFF > 1 row(s) in 0.0220 seconds > > hbase(main):003:0> get 'STATE_STORE','3000','CREATIVE' > COLUMN CELL > 0 row(s) in 0.0130 seconds > > -------------------------------------------- > > I also checked for the existence of column 'STATE' in column-family > 'CREATIVE' but it returns true. > ---------- > boolean b = res.containsColumn(Bytes.toBytes("CREATIVE"), > Bytes.toBytes("STATE")); > result is 'true'. > ---------- > I created the column, 'STATE', only for column family 'CREATIVE_GROUP', > then > why the above code returns true ? > I think it refers to the same column 'STATE' of the family > 'CREATIVE_GROUP'. > How can I fix this issue with out changing the column name ? > > Regards, > Krishnaprasad > > > -- > View this message in context: > http://apache-hbase.679495.n3.nabble.com/While-putting-value-in-one-column-family-results-getting-the-same-value-from-every-column-family-of--tp3781052p3783187.html > Sent from the HBase - Developer mailing list archive at Nabble.com. > -- Mikael.S
