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 "Masatake Iwasaki (Jira)" <ji...@apache.org> on 2020/01/08 03:48:00 UTC

[jira] [Updated] (HDFS-15072) HDFS MiniCluster fails to start when run in directory path with a %

     [ https://issues.apache.org/jira/browse/HDFS-15072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Masatake Iwasaki updated HDFS-15072:
------------------------------------
    Fix Version/s: 3.3.0
     Hadoop Flags: Reviewed
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

Thanks for reviewing this, [~aajisaka].

> HDFS MiniCluster fails to start when run in directory path with a %
> -------------------------------------------------------------------
>
>                 Key: HDFS-15072
>                 URL: https://issues.apache.org/jira/browse/HDFS-15072
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.7.5, 3.3.0
>         Environment: I encountered this on a Mac while running an HBase minicluster that was using Hadoop 2.7.5. However, the code looks the same in trunk so it likely affects most or all current versions. 
>            Reporter: Geoffrey Jacoby
>            Assignee: Masatake Iwasaki
>            Priority: Minor
>             Fix For: 3.3.0
>
>
> FSVolumeImpl.initializeCacheExecutor calls Guava's ThreadPoolExecutorBuilder. setNameFormat, passing in the String representation of the parent File. Guava will take the String whole and pass it to String.format, which uses % as a special character. That means that if parent.toString() contains a percentage sign, followed by a character that's illegal to use as a formatter in String.format(), you'll get an exception that stops the MiniCluster from starting up. 
> I did not check to see if this would also happen on a normal DataNode daemon. 
> initializeCacheExecutor should escape the parent file name before passing it in. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org