[ https://issues.apache.org/jira/browse/HDDS-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16617618#comment-16617618 ]
Elek, Marton commented on HDDS-481: ----------------------------------- I think the problem is in the shading definition in hadoop-ozone/ozonefs/pom.xml {code} <include>com.google.guava:guava:jar</include> <include>org.slf4j:slf4j-api:jar</include> <include>com.google.protobuf:protobuf-java</include> <include>com.nimbusds:nimbus-jose-jwt:jar</include> <include>com.github.stephenc.jcip:jcip-annotations</include> <include>com.google.code.findbugs:jsr305:jar</include> <include>org.apache.hadoop:hadoop-ozone-client</include> <include>org.apache.hadoop:hadoop-hdds-client</include> <include>org.apache.hadoop:hadoop-hdds-common</include> <include>org.fusesource.leveldbjni:leveldbjni-all</include> <include>org.apache.ratis:ratis-server</include> <include>org.apache.ratis:ratis-proto-shaded:jar</include> <include>com.google.auto.value:auto-value-annotations</include> <include>com.squareup:javapoet:jar</include> <include>org.jctools:jctools-core</include> <include>org.apache.ratis:ratis-common</include> <include>org.apache.ratis:ratis-client</include> <include>org.apache.ratis:ratis-netty</include> <include>org.apache.ratis:ratis-grpc</include> <include>org.rocksdb:rocksdbjni</include> <include>org.apache.hadoop:hadoop-ozone-common</include> {code} the pattern of the lines is groupid:artifactId or groupid:artifactid:jar:* (AFAIK). I think it will work with removing the ':jar' part from the lines. > Classes are missing from the shaded ozonefs jar > ----------------------------------------------- > > Key: HDDS-481 > URL: https://issues.apache.org/jira/browse/HDDS-481 > Project: Hadoop Distributed Data Store > Issue Type: Bug > Components: Ozone Filesystem > Reporter: Elek, Marton > Assignee: Bharat Viswanadham > Priority: Critical > > Ozonefs acceptance test contains only one simple command which is executed on > an *ozone* node with ozone fs. > Unfortunately the hdfs fs command doesn't work with ozone fs due to a missing > class file. > To test: > {code} > cd hadoop-dist/target/ozone-0.2.1-SNAPSHOT/compose/ozonefs > docker-compose exec scm ozone sh volume create --user hadoop /vol1 > docker-compose exec scm ozone sh bucket create /vol1/bucket > docker-compose exec hadooplast hdfs dfs -ls o3://bucket.vol1/ > {code} > The result is: > {code} > 2018-09-17 13:48:08 INFO Configuration:3204 - Removed undeclared tags: > 2018-09-17 13:48:08 INFO Configuration:3204 - Removed undeclared tags: > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/ratis/shaded/proto/RaftProtos$ReplicationLevel > at > org.apache.hadoop.hdds.scm.ScmConfigKeys.<clinit>(ScmConfigKeys.java:64) > at > org.apache.hadoop.ozone.OzoneConfigKeys.<clinit>(OzoneConfigKeys.java:221) > at > org.apache.hadoop.ozone.client.OzoneBucket.<init>(OzoneBucket.java:116) > at > org.apache.hadoop.ozone.client.rpc.RpcClient.getBucketDetails(RpcClient.java:420) > at > org.apache.hadoop.ozone.client.OzoneVolume.getBucket(OzoneVolume.java:199) > at > org.apache.hadoop.fs.ozone.OzoneFileSystem.initialize(OzoneFileSystem.java:122) > at > org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3354) > at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:124) > at > org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3403) > at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3371) > at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:477) > at org.apache.hadoop.fs.Path.getFileSystem(Path.java:361) > at org.apache.hadoop.fs.shell.PathData.expandAsGlob(PathData.java:325) > at org.apache.hadoop.fs.shell.Command.expandArgument(Command.java:249) > at org.apache.hadoop.fs.shell.Command.expandArguments(Command.java:232) > at > org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:104) > at org.apache.hadoop.fs.shell.Command.run(Command.java:176) > at org.apache.hadoop.fs.FsShell.run(FsShell.java:328) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90) > at org.apache.hadoop.fs.FsShell.main(FsShell.java:391) > Caused by: java.lang.ClassNotFoundException: > org.apache.ratis.shaded.proto.RaftProtos$ReplicationLevel > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 21 more > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org