hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Surendra Singh Lilhore (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-15608) File expansion should be disable in hadoop-functions.sh when iterate over HADOOP_CLASSPATH
Date Thu, 09 Aug 2018 07:27:00 GMT

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

Surendra Singh Lilhore commented on HADOOP-15608:
-------------------------------------------------

[~aw], Pls can you review once..

> File expansion should be disable in hadoop-functions.sh when iterate over HADOOP_CLASSPATH
> ------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-15608
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15608
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Surendra Singh Lilhore
>            Assignee: Surendra Singh Lilhore
>            Priority: Major
>         Attachments: HADOOP-15608.01.patch
>
>
>  When the HADOOP_CLASSPATH set from outside and it use "wildcard characters" then forloop
in hadoop-funtions.sh expand it. This will case "Argument list too long" exception for JVM.
> Example:
> Suppose HADOOP_CLASSPATH value is "/lib/*:/opt/example.jar"
> Now this code 
> {code}
>     for idx in $(echo "${HADOOP_CLASSPATH}" | tr : '\n'); do
>       array[${c}]=${idx}
>       ((c=c+1))
>     done
> {code}
> it will expand /lib/* directory and add all the jars inside /lib in classpath. This should
not append.
> CC : [~aw]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message