v = data.getValues(XP_PHONE);
for (int i = 0; i < v.length; i++) {
put.add(COLFAM, COL_PHONE, i, Bytes.toBytes(v[i].trim()));
}
This is the code I used, the phone numbers should be 8 or more, but after the put has been submitted, I only can view the latest 3 version result in hbase shell. Why? and how to fix it?
When a table is created the max number of versions that can be stored is set. The default for max versions is 3:
http://hbase.apache.org/book/schema.versions.html
You can alter an existing table to change the max number of versions.
Using hshell: