hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-411) parameter dfs.replication is not reflected when put file into hadoop with fuse-dfs
Date Wed, 22 Dec 2010 04:32:02 GMT

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

Hadoop QA commented on HDFS-411:
--------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12397226/HADOOP-4877.txt.trunk
  against trunk revision 1051669.

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    -1 patch.  The patch command could not apply the patch.

Console output: https://hudson.apache.org/hudson/job/PreCommit-HDFS-Build/37//console

This message is automatically generated.

> parameter dfs.replication is not reflected when put file into hadoop with fuse-dfs
> ----------------------------------------------------------------------------------
>
>                 Key: HDFS-411
>                 URL: https://issues.apache.org/jira/browse/HDFS-411
>             Project: Hadoop HDFS
>          Issue Type: Bug
>         Environment: os:centos5.2
> cpu:amd64
> hadoop0.19.0
>            Reporter: zhu weimin
>         Attachments: HADOOP-4877.txt.0.19, HADOOP-4877.txt.trunk
>
>
> the $HADOOP_CONF_DIR is exist in the $CLASSPATH
> and the dfs.replication is set to 3 with the following in hadoop-site.xml
> <property>
>   <name>dfs.replication</name>
>   <value>1</value>
> </property>
> The file's replication is 3 when it be put into hadoop.
> I think the reason is :
> there is a hardcoding in the src\contrib\fuse-dfs\src\fuse_dfs.c 
> line 1337
> if ((fh->hdfsFH = (hdfsFile)hdfsOpenFile(fh->fs, path, flags,  0, 3, 0)) == NULL)
{
> line 1591
> if ((file = (hdfsFile)hdfsOpenFile(userFS, path, flags,  0, 3, 0)) == NULL) {
> the fifth parameter is a hardcoding when call the function of hdfsOpenFile.
> It is should set to 0. It is as follows.
> line 1337
> if ((fh->hdfsFH = (hdfsFile)hdfsOpenFile(fh->fs, path, flags,  0, 0, 0)) == NULL)
{
> line 1591
> if ((file = (hdfsFile)hdfsOpenFile(userFS, path, flags,  0, 0, 0)) == NULL) {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message