You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2021/05/11 09:19:00 UTC

[jira] [Commented] (OOZIE-3621) Make TestECPolicyDisabler work with Hadoop 3

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

Chia-Ping Tsai commented on OOZIE-3621:
---------------------------------------

run `mvn clean install -DskipTests -Dhadoop.version=3.1.0 -Dhadoop.majorversion=3 -Phadoop-3` and it works on my local.

> Make TestECPolicyDisabler work with Hadoop 3
> --------------------------------------------
>
>                 Key: OOZIE-3621
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3621
>             Project: Oozie
>          Issue Type: Improvement
>            Reporter: Chia-Ping Tsai
>            Priority: Major
>         Attachments: OOZIE-3621.v0.patch
>
>
> TestECPolicyDisabler is not compatible with hadoop 3. The following error messages are produced by command `mvn clean install -DskipTests -Dhadoop.version=3.1.0 -Dhadoop.majorversion=3 -Phadoop-3`
> {quote}
> [ERROR] COMPILATION ERROR : 
> [INFO] -------------------------------------------------------------
> [ERROR] /home/chia7712/oozie/tools/src/test/java/org/apache/oozie/tools/TestECPolicyDisabler.java:[50,71] getErasureCodingPolicy(org.apache.hadoop.fs.Path) in org.apache.oozie.tools.TestECPolicyDisabler.MockDistributedFileSystem cannot override getErasureCodingPolicy(org.apache.hadoop.fs.Path) in org.apache.hadoop.hdfs.DistributedFileSystem
>   return type org.apache.hadoop.hdfs.protocol.SystemErasureCodingPolicies.ReplicationPolicy is not compatible with org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy
> {quote}
> The root cause is the method `getErasureCodingPolicy` was introduced in hadoop 3 and the method signature is different to mock fs of TestECPolicyDisabler. Fortunately, all we want to test is the static method 'ECPolicyDisabler#check' so we can add a new argument to make it be able to check another method.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)