I want to insert data in Hbase database using apache MetaModel. I have got the HbaseConfiguration object using host and port number. After that, how to insert data?
Asked
Active
Viewed 121 times
1 Answers
0
Unfortunately, MetaModel does not implement write capabilities for HBase at the moment. Only querying the data is possible.

TomaszGuzialek
- 861
- 1
- 8
- 15
-
But datacontext does not have executeupdate method. Updatabledatacontext has this method. – Santanu Jun 24 '16 at 06:38
-
My bad. HBaseDataContext does not implement UpdateableDataContext, which means you can use HBase via MetaModel only in read-only mode. I should edit my original answer. – TomaszGuzialek Jun 25 '16 at 09:36
-
Glad I could help. Please consider marking the answer as correct. – TomaszGuzialek Jun 27 '16 at 17:37
-
I am facing some issues in case of select operation.using metamodel api ,i can only able to fetch columns name not values or some values that is not understandable .But i want to fetch column + cell values that i can understand .Can u help.. – Santanu Jun 29 '16 at 04:45
-
HBase saves data in a binary form, so that not understandable data is just a steam of bytes. Try converting these bytes to the type that you expect for given column. – TomaszGuzialek Jun 29 '16 at 19:43