Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> HBaseAdmin.enableTable not responding


Copy link to this message
-
RE: HBaseAdmin.enableTable not responding
Hi Benjamin

Can you post some logs.  Can you see if you get any msg in logs of master
saying regions are in transition or something.

Regards
Ram

> -----Original Message-----
> From: Ben Kim [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 14, 2012 6:00 PM
> To: [EMAIL PROTECTED]
> Subject: HBaseAdmin.enableTable not responding
>
> Hello
> I'm sort of running out of time, so I'll just throw this problem to
> yall
> and come back later
>
> HTable table = new HTable(conf, "tablename");
> HTableDescriptor desc = new
> HTableDescriptor(table.getTableDescriptor());
>
> desc.addFamily(new HColumnDescriptor("family1"));
> desc.addFamily(new HColumnDescriptor("family2"));
>
> admin.disableTable("tablename");
> admin.modifyTable(Bytes.toBytes("tablename"), desc);
> admin.enableTable("tablename");
>
> admin.close();
> table.close();
>
> It successfully disables, modifies, and re-enables the table. The
> problem
> is that the HBaseAdmin.enableTable() is running forever.
>
> I'm using HBase 0.92.0, Hadoop 1.0.3
>
>
> --
>
> *Benjamin Kim*
> *benkimkimben at gmail*