Hi StAck, Thanks for your reply.
ulimit is set to 65535 and xcievers to 4096. I dont see related exceptions in the log. We require the collation from MR, so I cannot put the persist logic in Map. How ever I did do hashing on the key, so that hadoop sorts in a different way than hbase, which should distribute the load... Even then the key ranges are so narrow, I have noticed most of the requests ending up on one region server,and eventually that one crashes. I couldn't prove that there was double allocation for the region. Latest import I tried with hadoop-0.20-append branch, It sustained little longer than with previous branch. This time it is again the region server which is taking the load is crashing. The stack trace is as below. 2011-01-19 17:41:39,405 FATAL org.apache.hadoop.hbase.regionserver.MemStoreFlusher: Replay of hlog required. Forcing server shutdown org.apache.hadoop.hbase.DroppedSnapshotException: region: webtable, http://www.ask.com/local?qsrc=&o=0&l=dir&what=recreation+%26+sporting+goods+in+Moraga%2C+CA+in+Oakland+CA+in+Oakland+CA+in+Amsterdam+NH+in+Oakland+CA+in+Oakland+CA+in+Oakland+CA+in+Oakland+CA&where=Oakland+CA,1295487470890 at org.apache.hadoop.hbase.regionserver.HRegion.internalFlushcache(HRegion.java:1041) at org.apache.hadoop.hbase.regionserver.HRegion.flushcache(HRegion.java:896) at org.apache.hadoop.hbase.regionserver.MemStoreFlusher.flushRegion(MemStoreFlusher.java:258) at org.apache.hadoop.hbase.regionserver.MemStoreFlusher.flushRegion(MemStoreFlusher.java:231) at org.apache.hadoop.hbase.regionserver.MemStoreFlusher.run(MemStoreFlusher.java:154) Caused by: org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException: No lease on /hbase/webtable/685194390/c/4071023759080531376 File does not exist. [Lease. Holder: DFSClient_-354478469, pendingcreates: 2] at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease(FSNamesystem.java:1431) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease(FSNamesystem.java:1422) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.completeFileInternal(FSNamesystem.java:1477) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.completeFile(FSNamesystem.java:1465) at org.apache.hadoop.hdfs.server.namenode.NameNode.complete(NameNode.java:471) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:955) at org.apache.hadoop.ipc.Client.call(Client.java:740) at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220) at $Proxy1.complete(Unknown Source) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82) at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59) at $Proxy1.complete(Unknown Source) at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.closeInternal(DFSClient.java:3458) at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.close(DFSClient.java:3382) at org.apache.hadoop.fs.FSDataOutputStream$PositionCache.close(FSDataOutputStream.java:61) at org.apache.hadoop.fs.FSDataOutputStream.close(FSDataOutputStream.java:86) at org.apache.hadoop.hbase.io.hfile.HFile$Writer.close(HFile.java:620) at org.apache.hadoop.hbase.regionserver.Store.internalFlushCache(Store.java:554) at org.apache.hadoop.hbase.regionserver.Store.flushCache(Store.java:516) at org.apache.hadoop.hbase.regionserver.Store.access$100(Store.java:88) at org.apache.hadoop.hbase.regionserver.Store$StoreFlusherImpl.flushCache(Store.java:1597) at org.apache.hadoop.hbase.regionserver.HRegion.internalFlushcache(HRegion.java:1000) ... 4 more Please advise. I am not sure, if it matters, but I am testing with hbase-0.90 to see, if it makes any difference. Thanks, Charan On Sat, Jan 15, 2011 at 5:36 PM, Stack <[email protected]> wrote: > On Fri, Jan 14, 2011 at 11:36 AM, charan kumar <[email protected]> > wrote: > > Could this be an effect of hotspotting? Since I am persisting millions of > > keys through MR (which are URLS) and they are already sorted. > > > > I don't think so. HBase usually buckles first. For sure you've upped > ulimit and xceivers as per HBase requirements? Confirm HBase is > seeing your upped ulimit setting. Its first thing logged when HBase > starts up. See these two sections: > > http://people.apache.org/~stack/hbase-0.90.0-candidate-3/docs/notsoquick.html#ulimit<http://people.apache.org/%7Estack/hbase-0.90.0-candidate-3/docs/notsoquick.html#ulimit> > > > > Should I consider some normalization on the Key (hashing, prefix, reverse > > the url chars) ? I > > > > If your inserts are pre-sorted, then your load is probably not well > distributed over the cluster (you can check your Master UI -- see > where the requests are going... I'd guess all are being fielded by one > server, then another, and so on rather than all taking even load). > Are your keys sorted because they came out of a MR reduce? If so, > could you back up and in your Map insert into HBase? Then the keys > would not be sorted and load better likely better distributed (There > is a little on this topic in this section on HBase+MapReduce if you've > not seen it already: > > http://people.apache.org/~stack/hbase-0.90.0-candidate-3/docs/apidocs/org/apache/hadoop/hbase/mapreduce/package-summary.html#package_description<http://people.apache.org/%7Estack/hbase-0.90.0-candidate-3/docs/apidocs/org/apache/hadoop/hbase/mapreduce/package-summary.html#package_description> > ). > > St.Ack > > > St.Ack >
