[ https://issues.apache.org/jira/browse/HDDS-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16822347#comment-16822347 ]
Jitendra Nath Pandey commented on HDDS-1305: -------------------------------------------- [~Sandeep Nemuri], what is the 'hadoop' version being used? It could be an older version getting linked at runtime. > Robot test containers: hadoop client can't access o3fs > ------------------------------------------------------ > > Key: HDDS-1305 > URL: https://issues.apache.org/jira/browse/HDDS-1305 > Project: Hadoop Distributed Data Store > Issue Type: Bug > Affects Versions: 0.5.0 > Reporter: Sandeep Nemuri > Assignee: Anu Engineer > Priority: Major > Attachments: run.log > > > Run the robot test using: > {code:java} > ./test.sh --keep --env ozonefs > {code} > login to OM container and check if we have desired volume/bucket/key got > created with robot tests. > {code:java} > [root@o3new ~]$ docker exec -it ozonefs_om_1 /bin/bash > bash-4.2$ ozone fs -ls o3fs://bucket1.fstest/ > Found 3 items > -rw-rw-rw- 1 hadoop hadoop 22990 2019-03-15 17:28 > o3fs://bucket1.fstest/KEY.txt > drwxrwxrwx - hadoop hadoop 0 1970-01-01 00:00 > o3fs://bucket1.fstest/testdir > drwxrwxrwx - hadoop hadoop 0 2019-03-15 17:27 > o3fs://bucket1.fstest/testdir1 > {code} > {code:java} > [root@o3new ~]$ docker exec -it ozonefs_hadoop3_1 /bin/bash > bash-4.4$ hadoop classpath > /opt/hadoop/etc/hadoop:/opt/hadoop/share/hadoop/common/lib/*:/opt/hadoop/share/hadoop/common/*:/opt/hadoop/share/hadoop/hdfs:/opt/hadoop/share/hadoop/hdfs/lib/*:/opt/hadoop/share/hadoop/hdfs/*:/opt/hadoop/share/hadoop/mapreduce/*:/opt/hadoop/share/hadoop/yarn:/opt/hadoop/share/hadoop/yarn/lib/*:/opt/hadoop/share/hadoop/yarn/*:/opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current-0.5.0-SNAPSHOT.jar > bash-4.4$ hadoop fs -ls o3fs://bucket1.fstest/ > 2019-03-18 19:12:42 INFO Configuration:3204 - Removed undeclared tags: > 2019-03-18 19:12:42 ERROR OzoneClientFactory:294 - Couldn't create protocol > class org.apache.hadoop.ozone.client.rpc.RpcClient exception: > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:423) > at > org.apache.hadoop.ozone.client.OzoneClientFactory.getClientProtocol(OzoneClientFactory.java:291) > at > org.apache.hadoop.ozone.client.OzoneClientFactory.getRpcClient(OzoneClientFactory.java:169) > at > org.apache.hadoop.fs.ozone.OzoneClientAdapterImpl.<init>(OzoneClientAdapterImpl.java:127) > at > org.apache.hadoop.fs.ozone.OzoneFileSystem.initialize(OzoneFileSystem.java:189) > 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.VerifyError: Cannot inherit from final class > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:763) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) > at java.net.URLClassLoader.access$100(URLClassLoader.java:73) > at java.net.URLClassLoader$1.run(URLClassLoader.java:368) > at java.net.URLClassLoader$1.run(URLClassLoader.java:362) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:361) > 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) > at > org.apache.hadoop.ozone.om.protocolPB.OzoneManagerProtocolClientSideTranslatorPB.<init>(OzoneManagerProtocolClientSideTranslatorPB.java:169) > at > org.apache.hadoop.ozone.client.rpc.RpcClient.<init>(RpcClient.java:142) > ... 23 more > ls: Couldn't create protocol class > org.apache.hadoop.ozone.client.rpc.RpcClient > 2019-03-18 19:12:42 INFO Configuration:3204 - Removed undeclared tags: > bash-4.4$ > {code} > Full log: [^run.log] -- 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