简体   繁体   中英

How to Set In-Memory in HBase

I've HBase 0.94.0 up and running on top my HDFS 0.20.0. I'm doing my homework where i have to put my column families in In-Memory I have two column families No and Subject.

After setting them to In-Memory

new HColumnDescriptor("No").setInMemory(true);
new HColumnDescriptor("Subject").setInMemory(true);

When i check my localhost:60010 , the table details still shows IN_MEMORY => 'false' Why is this happening? Do i have to more than setting just .setInMemory(true)

HTableDescriptor descriptor = new HTableDescriptor("Student92");
    HColumnDescriptor col1=new HColumnDescriptor("No".getBytes());
    HColumnDescriptor col2=new HColumnDescriptor("Subject".getBytes());
    col1.setInMemory(true);
    col2.setInMemory(true);

This worked !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM