hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elek, Marton (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDDS-481) Classes are missing from the shaded ozonefs jar
Date Mon, 17 Sep 2018 13:49:00 GMT
Elek, Marton created HDDS-481:
---------------------------------

             Summary: 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: Elek, Marton


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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org


Mime
View raw message