[ 
https://issues.apache.org/jira/browse/HDFS-12916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16291834#comment-16291834
 ] 

Allen Wittenauer commented on HDFS-12916:
-----------------------------------------

bq. Ya admin commands will break with this, but hadoop tools commands should 
work as I have copied tools/lib folder and changed hadoop-layout.sh accordingly

In hadoop 3.x when HADOOP_OPTIONAL_TOOLS are loaded, they expect their 
dependencies from the other directories to already be in the classpath. I'd be 
greatly surprised if they find them from the shaded jar since I'm pretty sure 
we do class hiding.

bq. For backward compatibility we can have existing hdfs script as it is, and 
we can have 2 scripts 

-1 on having multiple entry points.  This is one the key reasons why the shell 
code in branch-2 was a disaster area. I absolutely refuse to let the shell code 
regress again.

But no matter what you do, everyone is already trained to use 'hadoop 
classpath'.  Until that gets changed, anything else that is done is moot. 


> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to