Is a region that is never modified still compacted every 24 hrs? If not, given that data is typically read more often than written, is there a possibility that the region may never become "local"?
On Wed, Jan 12, 2011 at 10:22 AM, Jean-Daniel Cryans <[email protected]>wrote: > The region server knows nothing about the file locality. The magic > happens between the DFSClient and the Namenode; in HDFS, new files > will have one block on the local datanode when it's possible, but > existing ones won't be moved. One thing though is that the region > server compacts files as new ones get flushed, so those rewritten > files will be local. Also there's one major compaction per day (if > needed), so after roughly 24h the files served by the region server > should have one block each on the local datanode. > > J-D > > On Wed, Jan 12, 2011 at 10:17 AM, Peter Haidinyak <[email protected]> > wrote: > > Thanks, I had thought I had a data node running on that machine but I > didn't. If I setup a data node on the machine will HBase automagically move > its files into Hadoop? (hope, hope). > > > > Thanks again. > > > > -Pete > > > > -----Original Message----- > > From: [email protected] [mailto:[email protected]] On Behalf Of > Jean-Daniel Cryans > > Sent: Wednesday, January 12, 2011 10:12 AM > > To: [email protected] > > Subject: Re: Region Server on Data Node > > > > You don't have to, but it's best to do it. This will help you > > understanding why: > > http://www.larsgeorge.com/2010/05/hbase-file-locality-in-hdfs.html > > > > J-D > > > > On Wed, Jan 12, 2011 at 10:04 AM, Peter Haidinyak <[email protected]> > wrote: > >> Hi, > >> This might be a really dumb question but do you need to run a region > server on a machine that is being used as a Hadoop data node. If not, what > are the performance penalties? > >> > >> Thanks > >> > >> -Pete > >> > > >
