You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Xiang Zhang (Jira)" <ji...@apache.org> on 2021/08/21 11:55:00 UTC

[jira] [Assigned] (HDDS-5651) Could not find or load main class

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

Xiang Zhang reassigned HDDS-5651:
---------------------------------

    Assignee: Xiang Zhang

> Could not find or load main class
> ---------------------------------
>
>                 Key: HDDS-5651
>                 URL: https://issues.apache.org/jira/browse/HDDS-5651
>             Project: Apache Ozone
>          Issue Type: Bug
>         Environment: mac big sur, intellij idea 2021.1.2
>            Reporter: Xiang Zhang
>            Assignee: Xiang Zhang
>            Priority: Major
>         Attachments: image-2021-08-21-19-30-34-661.png
>
>
> I am trying to run Ozone 1.1 from IDEA, following tutorial here: [https://cwiki.apache.org/confluence/display/OZONE/Run+Ozone+cluster+from+IDE,] 
> And execute following commands actually
> {code:java}
> git clone https://github.com/iamabug/ozone
> cd ozone
> git remote add apache https://github.com/apache/ozone
> git fetch apache ozone-1.1
> git checkout ozone-1.1
> mvn clean package -DskipTests=true
> ./hadoop-ozone/dev-support/intellij/install-runconfigs.sh
> {code}
> Then open IDEA and set JDK version to 8.
> After that I try to execute StorageContainerManagerInit, but error occurs:
> {code:java}
> Error: Could not find or load main class org.apache.hadoop.hdds.scm.server.StorageContainerManagerStarter
> {code}
> which makes sense since the complete command is as follows, which indeed does not include server-scm path.
> {code:java}
> /Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/bin/java -Dlog4j.configuration=file:hadoop-ozone/dev-support/intellij/log4j.properties -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=61409:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/lib/tools.jar:/Users/tanchenchi/.m2/repository/com/google/guava/guava/28.2-jre/guava-28.2-jre.jar:/Users/tanchenchi/.m2/repository/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar:/Users/tanchenchi/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/Users/tanchenchi/.m2/repository/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.jar:/Users/tanchenchi/.m2/repository/org/checkerframework/checker-qual/2.10.0/checker-qual-2.10.0.jar:/Users/tanchenchi/.m2/repository/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.jar:/Users/tanchenchi/.m2/repository/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar:/Users/tanchenchi/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar:/Users/tanchenchi/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/tanchenchi/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/tanchenchi/.m2/repository/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar:/Users/tanchenchi/.m2/repository/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.jar:/Users/tanchenchi/sources/ozone/hadoop-hdds/common/target/classes:/Users/tanchenchi/sources/ozone/hadoop-hdds/hadoop-dependency-client/target/classes:/Users/tanchenchi/.m2/repository/info/picocli/picocli/4.4.0/picocli-4.4.0.jar:/Users/tanchenchi/.m2/repository/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/Users/tanchenchi/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.12.1/jackson-annotations-2.12.1.jar:/Users/tanchenchi/sources/ozone/hadoop-hdds/config/target/classes:/Users/tanchenchi/.m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar:/Users/tanchenchi/.m2/repository/org/fusesource/leveldbjni/leveldbjni-all/1.8/leveldbjni-all-1.8.jar:/Users/tanchenchi/.m2/repository/org/apache/ratis/ratis-server/2.0.0/ratis-server-2.0.0.jar:/Users/tanchenchi/.m2/repository/org/apache/ratis/ratis-thirdparty-misc/0.6.0/ratis-thirdparty-misc-0.6.0.jar:/Users/tanchenchi/.m2/repository/org/apache/ratis/ratis-proto/2.0.0/ratis-proto-2.0.0.jar:/Users/tanchenchi/.m2/repository/org/apache/ratis/ratis-common/2.0.0/ratis-common-2.0.0.jar:/Users/tanchenchi/.m2/repository/org/apache/ratis/ratis-client/2.0.0/ratis-client-2.0.0.jar:/Users/tanchenchi/.m2/repository/org/apache/ratis/ratis-server-api/2.0.0/ratis-server-api-2.0.0.jar:/Users/tanchenchi/.m2/repository/org/apache/ratis/ratis-metrics/2.0.0/ratis-metrics-2.0.0.jar:/Users/tanchenchi/.m2/repository/org/apache/ratis/ratis-netty/2.0.0/ratis-netty-2.0.0.jar:/Users/tanchenchi/.m2/repository/org/apache/ratis/ratis-grpc/2.0.0/ratis-grpc-2.0.0.jar:/Users/tanchenchi/.m2/repository/org/apache/logging/log4j/log4j-api/2.13.3/log4j-api-2.13.3.jar:/Users/tanchenchi/.m2/repository/org/apache/logging/log4j/log4j-core/2.13.3/log4j-core-2.13.3.jar:/Users/tanchenchi/.m2/repository/com/lmax/disruptor/3.4.2/disruptor-3.4.2.jar:/Users/tanchenchi/.m2/repository/org/apache/commons/commons-pool2/2.6.0/commons-pool2-2.6.0.jar:/Users/tanchenchi/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.67/bcpkix-jdk15on-1.67.jar:/Users/tanchenchi/.m2/repository/commons-validator/commons-validator/1.6/commons-validator-1.6.jar:/Users/tanchenchi/.m2/repository/commons-beanutils/commons-beanutils/1.9.4/commons-beanutils-1.9.4.jar:/Users/tanchenchi/.m2/repository/commons-digester/commons-digester/1.8.1/commons-digester-1.8.1.jar:/Users/tanchenchi/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/Users/tanchenchi/.m2/repository/io/jaegertracing/jaeger-client/1.2.0/jaeger-client-1.2.0.jar:/Users/tanchenchi/.m2/repository/io/jaegertracing/jaeger-thrift/1.2.0/jaeger-thrift-1.2.0.jar:/Users/tanchenchi/.m2/repository/org/apache/thrift/libthrift/0.13.0/libthrift-0.13.0.jar:/Users/tanchenchi/.m2/repository/com/squareup/okhttp3/okhttp/4.2.2/okhttp-4.2.2.jar:/Users/tanchenchi/.m2/repository/com/squareup/okio/okio/2.2.2/okio-2.2.2.jar:/Users/tanchenchi/.m2/repository/io/jaegertracing/jaeger-core/1.2.0/jaeger-core-1.2.0.jar:/Users/tanchenchi/.m2/repository/io/jaegertracing/jaeger-tracerresolver/1.2.0/jaeger-tracerresolver-1.2.0.jar:/Users/tanchenchi/.m2/repository/io/opentracing/contrib/opentracing-tracerresolver/0.1.8/opentracing-tracerresolver-0.1.8.jar:/Users/tanchenchi/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.4.31/kotlin-stdlib-1.4.31.jar:/Users/tanchenchi/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.4.31/kotlin-stdlib-common-1.4.31.jar:/Users/tanchenchi/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar:/Users/tanchenchi/.m2/repository/io/opentracing/opentracing-util/0.33.0/opentracing-util-0.33.0.jar:/Users/tanchenchi/.m2/repository/io/opentracing/opentracing-api/0.33.0/opentracing-api-0.33.0.jar:/Users/tanchenchi/.m2/repository/io/opentracing/opentracing-noop/0.33.0/opentracing-noop-0.33.0.jar:/Users/tanchenchi/.m2/repository/org/yaml/snakeyaml/1.26/snakeyaml-1.26.jar:/Users/tanchenchi/.m2/repository/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar:/Users/tanchenchi/.m2/repository/org/tukaani/xz/1.0/xz-1.0.jar:/Users/tanchenchi/.m2/repository/commons-codec/commons-codec/1.11/commons-codec-1.11.jar:/Users/tanchenchi/.m2/repository/org/apache/hadoop/hadoop-annotations/3.2.2/hadoop-annotations-3.2.2.jar:/Users/tanchenchi/.m2/repository/org/apache/hadoop/hadoop-common/3.2.2/hadoop-common-3.2.2.jar:/Users/tanchenchi/.m2/repository/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar:/Users/tanchenchi/.m2/repository/org/apache/httpcomponents/httpcore/4.4.13/httpcore-4.4.13.jar:/Users/tanchenchi/.m2/repository/commons-net/commons-net/3.6/commons-net-3.6.jar:/Users/tanchenchi/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar:/Users/tanchenchi/.m2/repository/javax/activation/javax.activation-api/1.2.0/javax.activation-api-1.2.0.jar:/Users/tanchenchi/.m2/repository/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar:/Users/tanchenchi/.m2/repository/com/sun/jersey/jersey-core/1.19/jersey-core-1.19.jar:/Users/tanchenchi/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar:/Users/tanchenchi/.m2/repository/com/sun/jersey/jersey-servlet/1.19/jersey-servlet-1.19.jar:/Users/tanchenchi/.m2/repository/com/sun/jersey/jersey-server/1.19/jersey-server-1.19.jar:/Users/tanchenchi/.m2/repository/org/apache/commons/commons-configuration2/2.1.1/commons-configuration2-2.1.1.jar:/Users/tanchenchi/.m2/repository/org/apache/commons/commons-text/1.4/commons-text-1.4.jar:/Users/tanchenchi/.m2/repository/org/slf4j/slf4j-log4j12/1.7.30/slf4j-log4j12-1.7.30.jar:/Users/tanchenchi/.m2/repository/com/google/re2j/re2j/1.1/re2j-1.1.jar:/Users/tanchenchi/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/Users/tanchenchi/.m2/repository/org/apache/hadoop/hadoop-auth/3.2.2/hadoop-auth-3.2.2.jar:/Users/tanchenchi/.m2/repository/com/nimbusds/nimbus-jose-jwt/7.9/nimbus-jose-jwt-7.9.jar:/Users/tanchenchi/.m2/repository/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar:/Users/tanchenchi/.m2/repository/net/minidev/json-smart/2.3/json-smart-2.3.jar:/Users/tanchenchi/.m2/repository/net/minidev/accessors-smart/1.2/accessors-smart-1.2.jar:/Users/tanchenchi/.m2/repository/com/jcraft/jsch/0.1.54/jsch-0.1.54.jar:/Users/tanchenchi/.m2/repository/org/apache/htrace/htrace-core4/4.1.0-incubating/htrace-core4-4.1.0-incubating.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerb-simplekdc/1.0.1/kerb-simplekdc-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerb-client/1.0.1/kerb-client-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerby-config/1.0.1/kerby-config-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerb-core/1.0.1/kerb-core-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerby-pkix/1.0.1/kerby-pkix-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerby-asn1/1.0.1/kerby-asn1-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerby-util/1.0.1/kerby-util-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerb-common/1.0.1/kerb-common-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerb-crypto/1.0.1/kerb-crypto-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerb-util/1.0.1/kerb-util-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/token-provider/1.0.1/token-provider-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerb-admin/1.0.1/kerb-admin-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerb-server/1.0.1/kerb-server-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerb-identity/1.0.1/kerb-identity-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/apache/kerby/kerby-xdr/1.0.1/kerby-xdr-1.0.1.jar:/Users/tanchenchi/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar:/Users/tanchenchi/.m2/repository/com/fasterxml/woodstox/woodstox-core/5.0.3/woodstox-core-5.0.3.jar:/Users/tanchenchi/.m2/repository/dnsjava/dnsjava/2.1.7/dnsjava-2.1.7.jar:/Users/tanchenchi/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/tanchenchi/.m2/repository/org/apache/hadoop/hadoop-hdfs/3.2.2/hadoop-hdfs-3.2.2.jar:/Users/tanchenchi/.m2/repository/org/eclipse/jetty/jetty-util-ajax/9.4.35.v20201120/jetty-util-ajax-9.4.35.v20201120.jar:/Users/tanchenchi/.m2/repository/commons-daemon/commons-daemon/1.0.13/commons-daemon-1.0.13.jar:/Users/tanchenchi/sources/ozone/hadoop-hdds/framework/target/classes:/Users/tanchenchi/.m2/repository/org/eclipse/jetty/jetty-util/9.4.35.v20201120/jetty-util-9.4.35.v20201120.jar:/Users/tanchenchi/.m2/repository/org/eclipse/jetty/jetty-server/9.4.35.v20201120/jetty-server-9.4.35.v20201120.jar:/Users/tanchenchi/.m2/repository/org/eclipse/jetty/jetty-http/9.4.35.v20201120/jetty-http-9.4.35.v20201120.jar:/Users/tanchenchi/.m2/repository/org/eclipse/jetty/jetty-io/9.4.35.v20201120/jetty-io-9.4.35.v20201120.jar:/Users/tanchenchi/.m2/repository/org/eclipse/jetty/jetty-servlet/9.4.35.v20201120/jetty-servlet-9.4.35.v20201120.jar:/Users/tanchenchi/.m2/repository/org/eclipse/jetty/jetty-security/9.4.35.v20201120/jetty-security-9.4.35.v20201120.jar:/Users/tanchenchi/.m2/repository/org/eclipse/jetty/jetty-webapp/9.4.35.v20201120/jetty-webapp-9.4.35.v20201120.jar:/Users/tanchenchi/.m2/repository/org/eclipse/jetty/jetty-xml/9.4.35.v20201120/jetty-xml-9.4.35.v20201120.jar:/Users/tanchenchi/.m2/repository/org/rocksdb/rocksdbjni/6.8.1/rocksdbjni-6.8.1.jar:/Users/tanchenchi/.m2/repository/io/prometheus/simpleclient_dropwizard/0.7.0/simpleclient_dropwizard-0.7.0.jar:/Users/tanchenchi/.m2/repository/io/prometheus/simpleclient/0.7.0/simpleclient-0.7.0.jar:/Users/tanchenchi/.m2/repository/io/prometheus/simpleclient_common/0.7.0/simpleclient_common-0.7.0.jar:/Users/tanchenchi/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.12.1/jackson-datatype-jsr310-2.12.1.jar:/Users/tanchenchi/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.12.1/jackson-core-2.12.1.jar:/Users/tanchenchi/.m2/repository/io/dropwizard/metrics/metrics-core/3.2.4/metrics-core-3.2.4.jar:/Users/tanchenchi/.m2/repository/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar:/Users/tanchenchi/.m2/repository/org/apache/hadoop/hadoop-hdfs-client/3.2.2/hadoop-hdfs-client-3.2.2.jar:/Users/tanchenchi/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.12.1/jackson-databind-2.12.1.jar:/Users/tanchenchi/.m2/repository/org/apache/commons/commons-math3/3.1.1/commons-math3-3.1.1.jar:/Users/tanchenchi/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.67/bcprov-jdk15on-1.67.jar org.apache.hadoop.hdds.scm.server.StorageContainerManagerStarter -conf=hadoop-ozone/dev-support/intellij/ozone-site.xml --init
> {code}
> The same thing happens for every runner created by `hadoop-ozone/dev-support/intellij/install-runconfigs.sh`, not sure how it goes wrong cause I have run it before.
> !image-2021-08-21-19-30-34-661.png!



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org