hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Why hbase doesn't remove the empty region
Date Fri, 18 Nov 2016 02:45:06 GMT
You would be able to find in region server log(s).

Can you do quick inspection of the hfiles using:

http://hbase.apache.org/book.html#hfile_tool

BTW you're still on old release of 0.98.x, right ?

On Thu, Nov 17, 2016 at 6:40 PM, Xi Yang <alex.xi.yang@gmail.com> wrote:

> Thank you for reply.
>
> Yes. There are many regions have this problem. And those regions were
> created several years ago.
> hbase.hregion.majorcompaction of our cluster is 7 days.
> Where can I see the last major compaction time?
>
> Thanks,
> Alex
>
> 2016-11-17 18:22 GMT-08:00 Ted Yu <yuzhihong@gmail.com>:
>
> > When was the last time major compaction was performed on this region ?
> >
> > Were you referring to the store files by 'them' in your question ?
> >
> > Cheers
> >
> > On Thu, Nov 17, 2016 at 6:18 PM, Xi Yang <alex.xi.yang@gmail.com> wrote:
> >
> > > I have some regions are empty. But HBase doesn't remove them, why?
> > >
> > > You can see the storeFileSize is only 549. But I use hbase shell to
> scan
> > > this region, the result is empty
> > >
> > >     "Namespace_default_table_java_app_logs_region_
> > > 3854912733f1acaaa8a255abd6b7b1ec_metric_storeFileCount"
> > > : 1,
> > >     "Namespace_default_table_java_app_logs_region_
> > > 3854912733f1acaaa8a255abd6b7b1ec_metric_memStoreSize"
> > > : 424,
> > >     "Namespace_default_table_java_app_logs_region_
> > > 3854912733f1acaaa8a255abd6b7b1ec_metric_storeFileSize"
> > > : 549,
> > >     "Namespace_default_table_java_app_logs_region_
> > > 3854912733f1acaaa8a255abd6b7b1ec_metric_compactionsCompletedCount"
> > > : 4,
> > >     "Namespace_default_table_java_app_logs_region_
> > > 3854912733f1acaaa8a255abd6b7b1ec_metric_numBytesCompactedCount"
> > > : 8503271111,
> > >     "Namespace_default_table_java_app_logs_region_
> > > 3854912733f1acaaa8a255abd6b7b1ec_metric_numFilesCompactedCount"
> > > : 4,
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message