hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Rawson <ryano...@gmail.com>
Subject Re: NullPointerException in .20 trunk
Date Wed, 06 May 2009 02:14:10 GMT
One other thought, one thing you should ensure is both the master and the
regionservers are running the same code...


On Tue, May 5, 2009 at 7:12 PM, Bradford Stephens <
bradfordstephens@gmail.com> wrote:

> Haha, ok, thanks :)
>
> On Tue, May 5, 2009 at 7:09 PM, Ryan Rawson <ryanobjc@gmail.com> wrote:
> > Hey, please disregard this patch, it doesnt apply and isn't the source of
> > your problems.
> >
> >
> >
> > On Tue, May 5, 2009 at 6:35 PM, Ryan Rawson <ryanobjc@gmail.com> wrote:
> >
> >> Try this patch with patch -p1:
> >>
> >> diff --git
> >> a/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
> >> b/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
> >> index 60c9dd3..670780c 100644
> >> --- a/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
> >> +++ b/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
> >> @@ -1013,12 +1013,14 @@ public class HRegionServer implements
> HConstants,
> >> HRegionInterface,
> >>
> >>
> this.metrics.storefileIndexSizeMB.set((int)(storefileIndexSize/(1024*1024)));
> >>
> >>      LruBlockCache lruBlockCache =
> >> (LruBlockCache)StoreFile.getBlockCache(conf);
> >> -    this.metrics.blockCacheCount.set(lruBlockCache.size());
> >> -    this.metrics.blockCacheFree.set(lruBlockCache.getMemFree());
> >> -    this.metrics.blockCacheSize.set(lruBlockCache.getMemUsed());
> >> -    double ratio = lruBlockCache.getHitRatio();
> >> -    int percent = (int) (ratio * 100);
> >> -    this.metrics.blockCacheHitRatio.set(percent);
> >> +    if (lruBlockCache != null) {
> >> +      this.metrics.blockCacheCount.set(lruBlockCache.size());
> >> +      this.metrics.blockCacheFree.set(lruBlockCache.getMemFree());
> >> +      this.metrics.blockCacheSize.set(lruBlockCache.getMemUsed());
> >> +      double ratio = lruBlockCache.getHitRatio();
> >> +      int percent = (int) (ratio * 100);
> >> +      this.metrics.blockCacheHitRatio.set(percent);
> >> +    }
> >>    }
> >>
> >>    /**
> >>
> >>
> >> On Tue, May 5, 2009 at 6:30 PM, Bradford Stephens <
> >> bradfordstephens@gmail.com> wrote:
> >>
> >>> Hey there,
> >>>
> >>> I'm trying to start up a new HBase instance running against Hadoop
> >>> .20. Hadoop has been running for a week, and I just built the latest
> >>> checkout from trunk. This is the error I'm getting. Any ideas?
> >>>
> >>> 2009-05-05 18:15:22,787 INFO
> >>> org.apache.hadoop.hbase.regionserver.HRegionServer: Telling master at
> >>> 192.168.18.46:60000 that we are up
> >>> 2009-05-05 18:15:22,788 FATAL
> >>> org.apache.hadoop.hbase.regionserver.HRegionServer: Unhandled
> >>> exception. Aborting...
> >>> java.lang.NullPointerException
> >>>        at
> >>>
> org.apache.hadoop.hbase.ipc.HBaseClient$Connection.sendParam(HBaseClient.java:467)
> >>>        at
> >>> org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:708)
> >>>        at
> >>> org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
> >>>        at $Proxy0.getProtocolVersion(Unknown Source)
> >>>        at
> org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:468)
> >>>        at
> org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:444)
> >>>        at
> org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:491)
> >>>        at
> >>> org.apache.hadoop.hbase.ipc.HBaseRPC.waitForProxy(HBaseRPC.java:408)
> >>>        at
> >>>
> org.apache.hadoop.hbase.regionserver.HRegionServer.getMaster(HRegionServer.java:1181)
> >>>        at
> >>>
> org.apache.hadoop.hbase.regionserver.HRegionServer.reportForDuty(HRegionServer.java:1199)
> >>>        at
> >>>
> org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:355)
> >>>        at java.lang.Thread.run(Thread.java:619)
> >>>
> >>
> >>
> >
>

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