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

Steve Loughran commented on HADOOP-13743:
-----------------------------------------

Stringbuilder is way too much overkill; String.format() would work. But since 
all I'm doing here is removing one space, I don't think the effort is justified.

In other projects I've played with exceptions having an object taking an 
Object...args value and doing the format internally, e.g. "new 
MyException("Could not connect to host %s", hostname); the need to handle a 
nested exception complicates this a bit. Whatever SLF4J does should really be 
picked up. But again. overkill for this minor text cleanup

> error message in AzureNativeFileSystemStore.connectUsingAnonymousCredentials 
> has too many spaces
> ------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-13743
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13743
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/azure
>    Affects Versions: 2.8.0, 2.7.3
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Trivial
>         Attachments: HADOOP-13743-branch-2-001.patch, 
> HADOOP-14373-branch-2-002.patch
>
>
> The error message on a failed hadoop fs -ls command against an unauthed azure 
> container has an extra space in {{" them  in"}}
> {code}
> ls: org.apache.hadoop.fs.azure.AzureException: Unable to access container 
> demo in account example.blob.core.windows.net using anonymous credentials, 
> and no credentials found for them  in the configuration.
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to