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

Arpit Agarwal commented on HDFS-7591:
-------------------------------------

Hi Chris,

Should the following check be {{if [[ "$#" -gt 0 ]]}}?

i.e we echo $CLASSPATH if the number of arguments is zero, else we launch 
_Classpath_. I think I missed the same issue when code reviewing HADOOP-10903 
(my apologies!) for _hadoop classpath_.

{code}
+    if [[ "$#" -eq 1 ]]; then
+      CLASS=org.apache.hadoop.util.Classpath
+    else
+      hadoop_finalize
+      echo "${CLASSPATH}"
+      exit 0
{code}

> hdfs classpath command should support same options as hadoop classpath.
> -----------------------------------------------------------------------
>
>                 Key: HDFS-7591
>                 URL: https://issues.apache.org/jira/browse/HDFS-7591
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: scripts
>            Reporter: Chris Nauroth
>            Assignee: Varun Saxena
>            Priority: Minor
>         Attachments: HDFS-7591.001.patch
>
>
> HADOOP-10903 enhanced the {{hadoop classpath}} command to support optional 
> expansion of the wildcards and bundling the classpath into a jar file 
> containing a manifest with the Class-Path attribute.  The other classpath 
> commands should do the same for consistency.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to