Functionality of all the Administrative class as below HBaseAdmin - main administrative class HTableDescriptor - contains name of table and its column families HColumnDescriptor - defines the attributes for a column family
Question :
Which of the following is the functionality of the HBaseAdmin class
Question : Select the correct statement from following 1. HBaseAdmin , createTable() method is used to create the table 2. HTableDescriptor used to assign a table name 3. Access Mostly Uused Products by 50000+ Subscribers 4. All 1,2 and 3 are correct 5. Only 3 is correct
HBaseAdmin creates admin object base upon config instance createTable() method is used to create the table HTableDescriptor used to assign a table name HColumnDescriptor defines each column family - addFamily method is called once per column family - Other settings can be specified as well - E.g., compression options, max version, TTL, etc.
HBaseAdmin admin = new HBaseAdmin(conf); HTableDescriptor t = new HTableDescriptor("newtable"); HColumnDescriptor fam = new HColumnDescriptor("colfam"); t.addFamily(fam); admin.createTable(t);
Select the wrong statement about the various commands 1. major_compact : cause a major compaction of a table 2. flush : cause the RegionServers to flush the memstore for a table 3. split : cause a table to split each Region 4. All of the avove are correct