hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhihong Yu (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-5514) Minor fixes to compile against Hadoop 0.24-SNAPSHOT: replace deprecated Syncable.sync()
Date Sat, 03 Mar 2012 05:04:03 GMT

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

Zhihong Yu commented on HBASE-5514:
-----------------------------------

@Mingjie:
I am afraid you need to use reflection.
Compiling against hadoop 1.0 I saw:
{code}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile
(default-testCompile) on project hbase: Compilation failure: Compilation failure:
[ERROR] /Users/zhihyu/trunk-hbase/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java:[207,7]
cannot find symbol
[ERROR] symbol  : method hflush()
[ERROR] location: class org.apache.hadoop.fs.FSDataOutputStream
[ERROR] 
[ERROR] /Users/zhihyu/trunk-hbase/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLogSplit.java:[1269,9]
cannot find symbol
[ERROR] symbol  : method hflush()
[ERROR] location: class org.apache.hadoop.fs.FSDataOutputStream
{code}
This is because Syncable interface is different between hadoop 1.0 and hadoop 0.22/0.23
                
> Minor fixes to compile against Hadoop 0.24-SNAPSHOT: replace deprecated Syncable.sync()
> ---------------------------------------------------------------------------------------
>
>                 Key: HBASE-5514
>                 URL: https://issues.apache.org/jira/browse/HBASE-5514
>             Project: HBase
>          Issue Type: Bug
>          Components: build, test
>    Affects Versions: 0.92.0, 0.94.0
>            Reporter: Mingjie Lai
>            Assignee: Mingjie Lai
>            Priority: Minor
>             Fix For: 0.94.0
>
>         Attachments: HBASE-5514-2.patch, HBASE-5514.patch
>
>
> HADOOP-8124 removed deprecated Syncable.sync(). It brings compile errors for hbase against
hadoop trunk(0.24). TestHLogSplit and TestHLog still call the deprecated sync(). Need to replace
it with hflush() so the compilation can pass. 

--
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