hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Liochon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-9667) NullOutputStream removed from Guava 15
Date Tue, 01 Oct 2013 08:18:30 GMT

    [ https://issues.apache.org/jira/browse/HBASE-9667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13782713#comment-13782713
] 

Nicolas Liochon commented on HBASE-9667:
----------------------------------------

The issue is that the javadoc says for nullOutputStream : Since 14.0 (since 1.0 as com.google.common.io.NullOutputStream)
So we would have to upgrade to guava 14 and people will be able to use guava 15, but then
people using version 11 will have to upgrade, upgrade their third parties that depends on
that old version.

For 0.94 it seems to be an issue. For 0.96 it is possible, if it doesn't mess with hadoop
common who uses guava as well.
Note that the issue may be less critical in 0.96: the code using NullOutputStream is in hbase-server,
not hbase client, so upgrading guava would work.

The other option being to stop using both NullOutputStream and nullOutputStream. This would
work in 0.94 as well.

btw, [~mdgreenfield], what's the version of HBase you're using? I don't see NullOutputStream
 referenced in HFileWriterV2 in 0.94 head.

> NullOutputStream removed from Guava 15
> --------------------------------------
>
>                 Key: HBASE-9667
>                 URL: https://issues.apache.org/jira/browse/HBASE-9667
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.98.0, 0.94.12, 0.96.1
>            Reporter: Matt Greenfield
>            Priority: Minor
>
> {{com.google.common.io.NullOutputStream}} was dropped in Guava 15.0 in favor of {{com.google.common.io.ByteStreams.nullOutputStream()}}
which prevents projects on this artifact from upgrading from Guava 14 to Guava 15.
> {noformat}
> ERROR 2013-09-26 17:46:12,229 [hbase.master.MasterFileSystem] bootstrap
> org.apache.hadoop.hbase.DroppedSnapshotException: region: -ROOT-,,0
>         at org.apache.hadoop.hbase.regionserver.HRegion.internalFlushcache(HRegion.java:1608)
>         at org.apache.hadoop.hbase.regionserver.HRegion.internalFlushcache(HRegion.java:1482)
>         at org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:1011)
>         at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:959)
>         at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:930)
>         at org.apache.hadoop.hbase.master.MasterFileSystem.bootstrap(MasterFileSystem.java:447)
>         at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:387)
>         at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:134)
>         at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:119)
>         at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:536)
>         at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:395)
>         at java.lang.Thread.run(Thread.java:680)
> Caused by: java.lang.NoClassDefFoundError: com/google/common/io/NullOutputStream
>         at org.apache.hadoop.hbase.io.hfile.HFileWriterV2.close(HFileWriterV2.java:374)
>         at org.apache.hadoop.hbase.regionserver.StoreFile$Writer.close(StoreFile.java:1283)
>         at org.apache.hadoop.hbase.regionserver.Store.internalFlushCache(Store.java:836)
>         at org.apache.hadoop.hbase.regionserver.Store.flushCache(Store.java:747)
>         at org.apache.hadoop.hbase.regionserver.Store$StoreFlusherImpl.flushCache(Store.java:2229)
>         at org.apache.hadoop.hbase.regionserver.HRegion.internalFlushcache(HRegion.java:1583)
>         ... 11 more
> Caused by: java.lang.ClassNotFoundException: com.google.common.io.NullOutputStream
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>         ... 17 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message