Hadoop Common
  1. Hadoop Common
  2. HADOOP-9909

org.apache.hadoop.fs.Stat should permit other LANG

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0, 2.3.0
    • Component/s: fs
    • Labels:
      None
    • Environment:

      CentOS 6.4 / LANG=ja_JP.UTF-8

    • Target Version/s:

      Description

      I executed "hdfs dfs -put" command and displayed following warning message. And "hdfs dfs -put" command was success.
      This is because Stat.parseExecResult() check a message of stat command from only English.

      [hadoop@trunk ~]$ hdfs dfs -put fugafuga.txt .
      13/08/27 16:24:36 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      13/08/27 16:24:37 WARN fs.FSInputChecker: Problem opening checksum file: file:/home/hadoop/fugafuga.txt.  Ignoring exception:
      java.io.IOException: Unexpected stat output: stat: cannot stat `/home/hadoop/.fugafuga.txt.crc': そのようなファイルやディレクトリはありません
              at org.apache.hadoop.fs.Stat.parseExecResult(Stat.java:163)
              at org.apache.hadoop.util.Shell.runCommand(Shell.java:489)
              at org.apache.hadoop.util.Shell.run(Shell.java:417)
              at org.apache.hadoop.fs.Stat.getFileStatus(Stat.java:68)
              at org.apache.hadoop.fs.RawLocalFileSystem.getNativeFileLinkStatus(RawLocalFileSystem.java:806)
              at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:738)
              at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:523)
              at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1397)
              at org.apache.hadoop.fs.RawLocalFileSystem.open(RawLocalFileSystem.java:210)
              at org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSInputChecker.<init>(ChecksumFileSystem.java:143)
              at org.apache.hadoop.fs.ChecksumFileSystem.open(ChecksumFileSystem.java:339)
              at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:763)
              at org.apache.hadoop.fs.shell.CommandWithDestination.copyFileToTarget(CommandWithDestination.java:239)
              at org.apache.hadoop.fs.shell.CommandWithDestination.processPath(CommandWithDestination.java:183)
              at org.apache.hadoop.fs.shell.CommandWithDestination.processPath(CommandWithDestination.java:168)
              at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:310)
              at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:282)
              at org.apache.hadoop.fs.shell.CommandWithDestination.processPathArgument(CommandWithDestination.java:163)
              at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:264)
              at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:248)
              at org.apache.hadoop.fs.shell.CommandWithDestination.processArguments(CommandWithDestination.java:140)
              at org.apache.hadoop.fs.shell.CopyCommands$Put.processArguments(CopyCommands.java:224)
              at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:194)
              at org.apache.hadoop.fs.shell.Command.run(Command.java:155)
              at org.apache.hadoop.fs.FsShell.run(FsShell.java:255)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
              at org.apache.hadoop.fs.FsShell.main(FsShell.java:308)
      Caused by: java.lang.NumberFormatException: For input string: "stat: cannot stat `/home/hadoop/.fugafuga.txt.crc': そのようなファイルやディレクトリはありません"
              at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
              at java.lang.Long.parseLong(Long.java:441)
              at java.lang.Long.parseLong(Long.java:483)
              at org.apache.hadoop.fs.Stat.parseExecResult(Stat.java:128)
              ... 27 more
      
      1. HADOOP-9909.patch
        1 kB
        Shinichi Yamashita
      2. HADOOP-9909.patch
        1 kB
        Shinichi Yamashita
      3. HADOOP-9909.patch
        3 kB
        Shinichi Yamashita
      4. HADOOP-9909.patch
        3 kB
        Shinichi Yamashita
      5. HADOOP-9909.patch
        3 kB
        Shinichi Yamashita
      6. console.log
        9 kB
        Akira AJISAKA

        Activity

        Hide
        Hudson added a comment -

        FAILURE: Integrated in Hadoop-Mapreduce-trunk #1534 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1534/)
        HADOOP-9909. org.apache.hadoop.fs.Stat should permit other LANG. (Shinichi Yamashita via Andrew Wang) (wang: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1518862)

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Stat.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestStat.java
        Show
        Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #1534 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1534/ ) HADOOP-9909 . org.apache.hadoop.fs.Stat should permit other LANG. (Shinichi Yamashita via Andrew Wang) (wang: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1518862 ) /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Stat.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestStat.java
        Hide
        Hudson added a comment -

        FAILURE: Integrated in Hadoop-Hdfs-trunk #1507 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1507/)
        HADOOP-9909. org.apache.hadoop.fs.Stat should permit other LANG. (Shinichi Yamashita via Andrew Wang) (wang: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1518862)

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Stat.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestStat.java
        Show
        Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #1507 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1507/ ) HADOOP-9909 . org.apache.hadoop.fs.Stat should permit other LANG. (Shinichi Yamashita via Andrew Wang) (wang: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1518862 ) /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Stat.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestStat.java
        Hide
        Hudson added a comment -

        SUCCESS: Integrated in Hadoop-Yarn-trunk #317 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/317/)
        HADOOP-9909. org.apache.hadoop.fs.Stat should permit other LANG. (Shinichi Yamashita via Andrew Wang) (wang: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1518862)

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Stat.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestStat.java
        Show
        Hudson added a comment - SUCCESS: Integrated in Hadoop-Yarn-trunk #317 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/317/ ) HADOOP-9909 . org.apache.hadoop.fs.Stat should permit other LANG. (Shinichi Yamashita via Andrew Wang) (wang: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1518862 ) /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Stat.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestStat.java
        Hide
        Hudson added a comment -

        SUCCESS: Integrated in Hadoop-trunk-Commit #4349 (See https://builds.apache.org/job/Hadoop-trunk-Commit/4349/)
        HADOOP-9909. org.apache.hadoop.fs.Stat should permit other LANG. (Shinichi Yamashita via Andrew Wang) (wang: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1518862)

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Stat.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestStat.java
        Show
        Hudson added a comment - SUCCESS: Integrated in Hadoop-trunk-Commit #4349 (See https://builds.apache.org/job/Hadoop-trunk-Commit/4349/ ) HADOOP-9909 . org.apache.hadoop.fs.Stat should permit other LANG. (Shinichi Yamashita via Andrew Wang) (wang: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1518862 ) /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Stat.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestStat.java
        Hide
        Andrew Wang added a comment -

        Thanks Shinichi for the contribution and Akira for further testing. Committed to trunk and branch-2.

        Show
        Andrew Wang added a comment - Thanks Shinichi for the contribution and Akira for further testing. Committed to trunk and branch-2.
        Hide
        Hadoop QA added a comment -

        +1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12600685/HADOOP-9909.patch
        against trunk revision .

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

        +1 tests included. The patch appears to include 1 new or modified test files.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 javadoc. The javadoc tool did not generate any warning messages.

        +1 eclipse:eclipse. The patch built with eclipse:eclipse.

        +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed unit tests in hadoop-common-project/hadoop-common.

        +1 contrib tests. The patch passed contrib unit tests.

        Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/3039//testReport/
        Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/3039//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - +1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12600685/HADOOP-9909.patch against trunk revision . +1 @author . The patch does not contain any @author tags. +1 tests included . The patch appears to include 1 new or modified test files. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 javadoc . The javadoc tool did not generate any warning messages. +1 eclipse:eclipse . The patch built with eclipse:eclipse. +1 findbugs . The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. +1 core tests . The patch passed unit tests in hadoop-common-project/hadoop-common. +1 contrib tests . The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/3039//testReport/ Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/3039//console This message is automatically generated.
        Hide
        Akira AJISAKA added a comment -

        +1, I applied the patch and ran sample pi job successful with "LANG=jp_JP.UTF-8".

        Show
        Akira AJISAKA added a comment - +1, I applied the patch and ran sample pi job successful with "LANG=jp_JP.UTF-8".
        Hide
        Andrew Wang added a comment -

        +1 pending Jenkins. Akira AJISAKA do you mind testing with this patch to make sure it fixes your issue? The test case doesn't set an incorrect LANG first, so it doesn't give positive confirmation.

        Show
        Andrew Wang added a comment - +1 pending Jenkins. Akira AJISAKA do you mind testing with this patch to make sure it fixes your issue? The test case doesn't set an incorrect LANG first, so it doesn't give positive confirmation.
        Hide
        Shinichi Yamashita added a comment -

        Thank you for comment. I attach a patch which reflected comment.

        Show
        Shinichi Yamashita added a comment - Thank you for comment. I attach a patch which reflected comment.
        Hide
        Hadoop QA added a comment -

        +1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12600665/HADOOP-9909.patch
        against trunk revision .

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

        +1 tests included. The patch appears to include 1 new or modified test files.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 javadoc. The javadoc tool did not generate any warning messages.

        +1 eclipse:eclipse. The patch built with eclipse:eclipse.

        +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed unit tests in hadoop-common-project/hadoop-common.

        +1 contrib tests. The patch passed contrib unit tests.

        Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/3038//testReport/
        Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/3038//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - +1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12600665/HADOOP-9909.patch against trunk revision . +1 @author . The patch does not contain any @author tags. +1 tests included . The patch appears to include 1 new or modified test files. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 javadoc . The javadoc tool did not generate any warning messages. +1 eclipse:eclipse . The patch built with eclipse:eclipse. +1 findbugs . The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. +1 core tests . The patch passed unit tests in hadoop-common-project/hadoop-common. +1 contrib tests . The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/3038//testReport/ Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/3038//console This message is automatically generated.
        Hide
        Andrew Wang added a comment -

        Looks pretty good, just a few comments:

        +  /** get the environment variable
        +   * @return the environment variable of the command
        +   */
        

        Our Javadoc style looks more like this, with another newline and capitalization. It's also okay to skip the @return if it's not adding any information.

        +  /**
        +   * Get the environment variable
        +   */
        

        I'd also rather Map getEnvironment() be String getEnvironment(String), so we're not exposing the entire map (which can be modified).

        Show
        Andrew Wang added a comment - Looks pretty good, just a few comments: + /** get the environment variable + * @ return the environment variable of the command + */ Our Javadoc style looks more like this, with another newline and capitalization. It's also okay to skip the @return if it's not adding any information. + /** + * Get the environment variable + */ I'd also rather Map getEnvironment() be String getEnvironment(String) , so we're not exposing the entire map (which can be modified).
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12600661/console.log
        against trunk revision .

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

        Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/3037//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12600661/console.log against trunk revision . -1 patch . The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/3037//console This message is automatically generated.
        Hide
        Akira AJISAKA added a comment -

        Console log of sample pi job (LANG=jp_JP.UTF-8)

        Show
        Akira AJISAKA added a comment - Console log of sample pi job (LANG=jp_JP.UTF-8)
        Hide
        Akira AJISAKA added a comment -

        I reproduced this issue by setting LANG=ja_JP.UTF-8 and I also found this issue causes mapreduce job fails.
        After I set LANG=C and rebooted hadoop daemons, sample pi job succeeded.

        Show
        Akira AJISAKA added a comment - I reproduced this issue by setting LANG=ja_JP.UTF-8 and I also found this issue causes mapreduce job fails. After I set LANG=C and rebooted hadoop daemons, sample pi job succeeded.
        Hide
        Shinichi Yamashita added a comment -

        I attach a patch which I added the test code of environment variable.

        Show
        Shinichi Yamashita added a comment - I attach a patch which I added the test code of environment variable.
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12600519/HADOOP-9909.patch
        against trunk revision .

        +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 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 javadoc. The javadoc tool did not generate any warning messages.

        +1 eclipse:eclipse. The patch built with eclipse:eclipse.

        +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed unit tests in hadoop-common-project/hadoop-common.

        +1 contrib tests. The patch passed contrib unit tests.

        Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/3031//testReport/
        Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/3031//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12600519/HADOOP-9909.patch against trunk revision . +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 javac . The applied patch does not increase the total number of javac compiler warnings. +1 javadoc . The javadoc tool did not generate any warning messages. +1 eclipse:eclipse . The patch built with eclipse:eclipse. +1 findbugs . The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. +1 core tests . The patch passed unit tests in hadoop-common-project/hadoop-common. +1 contrib tests . The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/3031//testReport/ Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/3031//console This message is automatically generated.
        Hide
        Shinichi Yamashita added a comment -

        I attach a patch. I think that the additional test cord is unnecessary.

        Show
        Shinichi Yamashita added a comment - I attach a patch. I think that the additional test cord is unnecessary.
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12600494/HADOOP-9909.patch
        against trunk revision .

        +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 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 javadoc. The javadoc tool did not generate any warning messages.

        +1 eclipse:eclipse. The patch built with eclipse:eclipse.

        -1 findbugs. The patch appears to introduce 1 new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed unit tests in hadoop-common-project/hadoop-common.

        +1 contrib tests. The patch passed contrib unit tests.

        Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/3030//testReport/
        Findbugs warnings: https://builds.apache.org/job/PreCommit-HADOOP-Build/3030//artifact/trunk/patchprocess/newPatchFindbugsWarningshadoop-common.html
        Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/3030//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12600494/HADOOP-9909.patch against trunk revision . +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 javac . The applied patch does not increase the total number of javac compiler warnings. +1 javadoc . The javadoc tool did not generate any warning messages. +1 eclipse:eclipse . The patch built with eclipse:eclipse. -1 findbugs . The patch appears to introduce 1 new Findbugs (version 1.3.9) warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. +1 core tests . The patch passed unit tests in hadoop-common-project/hadoop-common. +1 contrib tests . The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/3030//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-HADOOP-Build/3030//artifact/trunk/patchprocess/newPatchFindbugsWarningshadoop-common.html Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/3030//console This message is automatically generated.
        Hide
        Shinichi Yamashita added a comment -

        I executed that stat command of the CentOS 6.4. Then the result was displayed as follows. This is the same as a command to execute in Stat class.

        [hadoop@trunk ~]$ stat /home/hadoop/.fugafuga.txt.crc
        stat: cannot stat `/home/hadoop/.fugafuga.txt.crc': そのようなファイルやディレクトリはありません
        

        Therefore I apply environment variable LANG to stat command. Then it follows that I expected it.

        [hadoop@trunk ~]$ LANG=C stat /home/hadoop/.fugafuga.txt.crc
        stat: cannot stat `/home/hadoop/.fugafuga.txt.crc': No such file or directory
        

        I attach a patch applying LANG to the Stat class.

        Show
        Shinichi Yamashita added a comment - I executed that stat command of the CentOS 6.4. Then the result was displayed as follows. This is the same as a command to execute in Stat class. [hadoop@trunk ~]$ stat /home/hadoop/.fugafuga.txt.crc stat: cannot stat `/home/hadoop/.fugafuga.txt.crc': そのようなファイルやディレクトリはありません Therefore I apply environment variable LANG to stat command. Then it follows that I expected it. [hadoop@trunk ~]$ LANG=C stat /home/hadoop/.fugafuga.txt.crc stat: cannot stat `/home/hadoop/.fugafuga.txt.crc': No such file or directory I attach a patch applying LANG to the Stat class.

          People

          • Assignee:
            Unassigned
            Reporter:
            Shinichi Yamashita
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development