You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Jim Brennan (JIRA)" <ji...@apache.org> on 2019/08/06 20:04:00 UTC

[jira] [Commented] (HDFS-12491) Support wildcard in CLASSPATH for libhdfs

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

Jim Brennan commented on HDFS-12491:
------------------------------------

The code looks good, but you should declare all of the new functions static as they are only used in jni_helper.c

LibHdfs.md should be updated to remove the warning about wildcards.

 

> 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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org