hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-5963) ClassCastException: FileSystem$Cache$ClientFinalizer cannot be cast to Thread
Date Wed, 09 May 2012 00:27:49 GMT

     [ https://issues.apache.org/jira/browse/HBASE-5963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Purtell updated HBASE-5963:
----------------------------------

    Attachment: HBASE-5963.patch

Latest patch seems to do the right thing according to unit tests without breaking older functionality.

However, what we are doing here is yanking the HDFS client finalizer Runnable away from the
Hadoop 2.x ShutdownHookManager and adding it -- wrapped with our existing strategy here --
to the Runtime shutdown hook list, to perhaps run concurrently with the rest of the ShutdownHookManager
registered Runnables. I don't think this less problematic than the rest of this horrible code.
The solution is, someday, to leave Hadoop 1.x behind and transition to using the 2.x ShutdownHookManager.
                
> ClassCastException: FileSystem$Cache$ClientFinalizer cannot be cast to Thread
> -----------------------------------------------------------------------------
>
>                 Key: HBASE-5963
>                 URL: https://issues.apache.org/jira/browse/HBASE-5963
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.94.0, 0.96.0
>         Environment: Bigtop 0.4.0-incubating-SNAPSHOT, Hadoop 2.0.0-alpha-SNAPSHOT, HBase
0.94.0-SNAPSHOT
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>         Attachments: HBASE-5963.patch, HBASE-5963.patch
>
>
> {code}
> 12/05/08 19:49:26 INFO regionserver.HRegionServer: STOPPED: Failed initialization
> Exception in thread "main" java.lang.ClassCastException: org.apache.hadoop.fs.FileSystem$Cache$ClientFinalizer
cannot be cast to java.lang.Thread
> 	at org.apache.hadoop.hbase.regionserver.ShutdownHook.suppressHdfsShutdownHook(ShutdownHook.java:181)
> 	at org.apache.hadoop.hbase.regionserver.ShutdownHook.install(ShutdownHook.java:82)
> 	at org.apache.hadoop.hbase.regionserver.HRegionServer.startRegionServer(HRegionServer.java:3601)
> 	at org.apache.hadoop.hbase.regionserver.HRegionServer.startRegionServer(HRegionServer.java:3585)
> 	at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:61)
> 	at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:75)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> 	at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
> 	at org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:3645)
> {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

        

Mime
View raw message