You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/05/10 14:15:15 UTC

[jira] [Commented] (CAMEL-6348) SecurityException in HDFS producer/consumer when no security configuration is present

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

Claus Ibsen commented on CAMEL-6348:
------------------------------------

Are you working on a patch?
                
> SecurityException in HDFS producer/consumer when no security configuration is present
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6348
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6348
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-hdfs
>    Affects Versions: 2.11.0
>            Reporter: David Arthur
>
> In the HdfsProducer and HdfsConsumer classes, there are calls to get the current security configuration
> {code}
> Configuration auth = Configuration.getConfiguration();
> {code}
>  
> in order to later reset them after HDFS tramples the system with its own config. However, if no security configuration was set, this throws a SecurityException like:
> {code}
> Exception in thread "main" org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: Endpoint[hdfs://localhost:50001/tmp/camel/?splitStrategy=MESSAGES%3A4]. Reason: java.lang.SecurityException: Unable to locate a login configuration
> {code}
> My current workaround is to set the system property "java.security.auth.login.config" to an empty file. 
> It seems like the code should check if a configuration exists before fetching it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira