Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running oozie integration test #79

Open
christopinka opened this issue Nov 13, 2022 · 5 comments
Open

Error running oozie integration test #79

christopinka opened this issue Nov 13, 2022 · 5 comments

Comments

@christopinka
Copy link

Running https://github.com/sakserv/hadoop-mini-clusters/blob/master/hadoop-mini-clusters-oozie/src/test/java/com/github/sakserv/minicluster/impl/OozieLocalServerIntegrationTest.java

getting

java.lang.NoSuchMethodError: org.apache.hadoop.security.authentication.util.KerberosUtil.hasKerberosTicket(Ljavax/security/auth/Subject;)Z

My pom dependencies ends up looking like

 <dependencies>
        <!-- https://mvnrepository.com/artifact/org.apache.oozie/oozie-client -->
        <dependency>
            <groupId>org.apache.oozie</groupId>
            <artifactId>oozie-client</artifactId>
            <version>5.2.1</version>
            <scope>test</scope>
        </dependency>


        <!-- https://mvnrepository.com/artifact/com.github.sakserv/hadoop-mini-clusters-oozie -->
        <dependency>
            <groupId>com.github.sakserv</groupId>
            <artifactId>hadoop-mini-clusters-oozie</artifactId>
            <version>0.1.16</version>
            <scope>test</scope>
        </dependency>

        <!-- HDFS Mini Cluster -->
        <dependency>
            <groupId>com.github.sakserv</groupId>
            <artifactId>hadoop-mini-clusters-hdfs</artifactId>
            <version>0.1.16</version>
            <scope>test</scope>
        </dependency>

        <!-- MR Mini Cluster -->
        <dependency>
            <groupId>com.github.sakserv</groupId>
            <artifactId>hadoop-mini-clusters-mapreduce</artifactId>
            <version>0.1.16</version>
            <scope>test</scope>
        </dependency>
    </dependencies>


@christopinka
Copy link
Author

Adding below fixes this issue

  <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-auth -->
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-auth</artifactId>
            <version>3.3.4</version>
            <scope>test</scope>
        </dependency>

@christopinka
Copy link
Author

But still difficulties in setting up a test that passes. More missing from pom like

java.lang.NoClassDefFoundError: org/apache/hadoop/hdfs/server/blockmanagement/BlockInfoContiguous


@christopinka
Copy link
Author

and...

java.lang.NoSuchMethodError: org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.setMiniClusterMode(Z)V

I'll try again tomorrow. I'll clone the project and see how that goes. Thanks!

@christopinka
Copy link
Author

christopinka commented Nov 13, 2022

Was hoping to just be able to bring the dependency like in the readme example and maybe junit.

 <dependency>
            <groupId>com.github.sakserv</groupId>
            <artifactId>hadoop-mini-clusters-oozie</artifactId>
            <version>0.1.16</version>
            <scope>test</scope>
        </dependency>

@christopinka
Copy link
Author

Doesn't seem to resolve anymore against hortonworks...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant