You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Lars Hofhansl (JIRA)" <ji...@apache.org> on 2012/06/29 01:12:43 UTC
[jira] [Commented] (HBASE-5955) Guava 11 drops MapEvictionListener
and Hadoop 2.0.0-alpha requires it
[ https://issues.apache.org/jira/browse/HBASE-5955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403565#comment-13403565 ]
Lars Hofhansl commented on HBASE-5955:
--------------------------------------
I find that I get runtime errors with Hadoop-2 (but not compile time errrors):
{code}
java.lang.NoSuchMethodError: com.google.common.collect.LinkedListMultimap.values()Ljava/util/List;
at org.apache.hadoop.hdfs.SocketCache.clear(SocketCache.java:131)
at org.apache.hadoop.hdfs.DFSClient.close(DFSClient.java:604)
at org.apache.hadoop.hdfs.DistributedFileSystem.close(DistributedFileSystem.java:506)
at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2237)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2215)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:302)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:158)
at org.apache.hadoop.hbase.fs.HFileSystem.<init>(HFileSystem.java:62)
at org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:974)
at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:672)
at java.lang.Thread.run(Thread.java:619)
{code}
The signature of LinkedListMultiMap.values() has changed to return a List rather than a collection. That would imply that switching out Guava would fail with the reverse problem in Hadoop-1 and before. Sigh.
So this would need to be profile dependent?
> Guava 11 drops MapEvictionListener and Hadoop 2.0.0-alpha requires it
> ---------------------------------------------------------------------
>
> Key: HBASE-5955
> URL: https://issues.apache.org/jira/browse/HBASE-5955
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.94.0
> Reporter: Andrew Purtell
> Assignee: Lars Hofhansl
> Fix For: 0.94.1
>
>
> Hadoop 2.0.0-alpha depends on Guava 11.0.2. Updating HBase dependencies to match produces the following compilation errors:
> {code}
> [ERROR] SingleSizeCache.java:[41,32] cannot find symbol
> [ERROR] symbol : class MapEvictionListener
> [ERROR] location: package com.google.common.collect
> [ERROR]
> [ERROR] SingleSizeCache.java:[94,4] cannot find symbol
> [ERROR] symbol : class MapEvictionListener
> [ERROR] location: class org.apache.hadoop.hbase.io.hfile.slab.SingleSizeCache
> [ERROR]
> [ERROR] SingleSizeCache.java:[94,69] cannot find symbol
> [ERROR] symbol : class MapEvictionListener
> [ERROR] location: class org.apache.hadoop.hbase.io.hfile.slab.SingleSizeCache
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira