[
https://issues.apache.org/jira/browse/HDFS-12491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16886187#comment-16886187
]
Muhammad Samir Khan commented on HDFS-12491:
--------------------------------------------
testWildCard.sh uses following java code to test the output of the wildcard
classpath expansion in the patch vs the one done by java launcher:
{code:java}
public class PrintClasspath {
public static void main(String[] args) {
System.out.println(System.getProperty(\"java.class.path\"));
}
}{code}
The test cases are in the shell script. Can add more test cases as well.
> Support wildcard in CLASSPATH for libhdfs
> -----------------------------------------
>
> Key: HDFS-12491
> URL: https://issues.apache.org/jira/browse/HDFS-12491
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: libhdfs
> Affects Versions: 2.8.0
> Reporter: John Zhuge
> Assignee: Muhammad Samir Khan
> Priority: Major
> Attachments: HDFS-12491.001.patch, testWildCard.sh
>
>
> According to libhdfs doc, wildcard in CLASSPATH is not support:
> bq. The most common problem is the CLASSPATH is not set properly when calling
> a program that uses libhdfs. Make sure you set it to all the Hadoop jars
> needed to run Hadoop itself as well as the right configuration directory
> containing hdfs-site.xml. It is not valid to use wildcard syntax for
> specifying multiple jars. It may be useful to run hadoop classpath --glob or
> hadoop classpath --jar <path> to generate the correct classpath for your
> deployment.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]