[ https://issues.apache.org/jira/browse/HDFS-12916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16291849#comment-16291849 ]
Allen Wittenauer commented on HDFS-12916: ----------------------------------------- bq. I have included Hadoop tools lib folder, so which will be adequate to get all its dependencies. I think you've missed my point: not all of bits in tools are just Hadoop clients. They have other dependencies that are outside of both tools and the runtime jar. bq. I have just ran distcp for sample, need to run other commands to know more if they cause issue. distcp and a few others are literallly YARN clients. Try enabling something bigger like Azure or AWS. bq. if I override all home variables(like hdfs_home, mapred_home) to same client location in hadoop-layout.sh, it will have only shaded client jars. We haven't even talked about things that people run with 'hadoop jar'. At this point, I'm changing this to a new feature and moving it to HADOOP since it isn't HDFS-specific. It's not a bug. Everything is working as intended. > HDFS commands throws error, when only shaded clients in classpath > ----------------------------------------------------------------- > > Key: HDFS-12916 > URL: https://issues.apache.org/jira/browse/HDFS-12916 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Bharat Viswanadham > Assignee: Bharat Viswanadham > > [root@n001 hadoop]# bin/hdfs dfs -rm / > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/htrace/core/Tracer$Builder > at org.apache.hadoop.fs.FsShell.run(FsShell.java:303) > 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:389) > Caused by: java.lang.ClassNotFoundException: > org.apache.htrace.core.Tracer$Builder > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 4 more > cc [~busbey] -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org