hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-1978) All but first option in LIBHDFS_OPTS is ignored
Date Mon, 06 Jun 2011 11:24:02 GMT

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

Hudson commented on HDFS-1978:
------------------------------

Integrated in Hadoop-Hdfs-22-branch #61 (See [https://builds.apache.org/hudson/job/Hadoop-Hdfs-22-branch/61/])
    

> All but first option in LIBHDFS_OPTS is ignored
> -----------------------------------------------
>
>                 Key: HDFS-1978
>                 URL: https://issues.apache.org/jira/browse/HDFS-1978
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: libhdfs
>    Affects Versions: 0.21.0
>         Environment: RHEL 5.5
> JDK 1.6.0_24
>            Reporter: Brock Noland
>            Assignee: Eli Collins
>             Fix For: 0.22.0
>
>         Attachments: HDFS-1978.0.patch, hdfs-1978-1.patch
>
>
> In getJNIEnv, we go though LIBHDFS_OPTS with strok and count the number of args. Then
create an array of options based on that information. But when we actually setup the options
we only the first arg. I believe the fix is pasted inline.
> {noformat}
> Index: src/c++/libhdfs/hdfsJniHelper.c
> ===================================================================
> --- src/c++/libhdfs/hdfsJniHelper.c	(revision 1124544)
> +++ src/c++/libhdfs/hdfsJniHelper.c	(working copy)
> @@ -442,6 +442,7 @@
>              int argNum = 1;
>              for (;argNum < noArgs ; argNum++) {
>                  options[argNum].optionString = result; //optHadoopArg;
> +                result = strtok( NULL, jvmArgDelims);
>              }
>          }
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message