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

Claus Ibsen resolved CAMEL-8445.
--------------------------------
    Resolution: Unresolved

> camel-hdfs2 - Does not work on windows
> --------------------------------------
>
>                 Key: CAMEL-8445
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8445
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-hdfs
>    Affects Versions: 2.15.0
>         Environment: windows, java8
>            Reporter: Claus Ibsen
>            Assignee: Grzegorz Grzybek
>             Fix For: 2.16.0
>
>
> Seems like a bug in hadoop trying to set some permission on windows causing a 
> NPE in Java code
> {code}
> org.apache.camel.FailedToCreateProducerException: Failed to create Producer 
> for endpoint: Endpoint[hdfs2:////E:/workspa
> e/camel/components/camel-hdfs2/target/test/test-camel1?fileSystemType=LOCAL&fileType=SEQUENCE_FILE&valueType=TEXT].
>  Rea
> on: java.lang.NullPointerException
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:1012)
>         at org.apache.hadoop.util.Shell.runCommand(Shell.java:445)
>         at org.apache.hadoop.util.Shell.run(Shell.java:418)
>         at 
> org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:650)
>         at org.apache.hadoop.util.Shell.execCommand(Shell.java:739)
>         at org.apache.hadoop.util.Shell.execCommand(Shell.java:722)
>         at 
> org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:631)
>         at 
> org.apache.hadoop.fs.FilterFileSystem.setPermission(FilterFileSystem.java:468)
>         at 
> org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:456)
>         at 
> org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:424)
>         at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:907)
>         at 
> org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:1071)
>         at 
> org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:270)
>         at 
> org.apache.camel.component.hdfs2.HdfsFileType$2.createOutputStream(HdfsFileType.java:212)
>         at 
> org.apache.camel.component.hdfs2.HdfsOutputStream.createOutputStream(HdfsOutputStream.java:69)
>         at 
> org.apache.camel.component.hdfs2.HdfsProducer.setupHdfs(HdfsProducer.java:143)
>         at 
> org.apache.camel.component.hdfs2.HdfsProducer.doStart(HdfsProducer.java:104)
>         at 
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
>         at 
> org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:2869)
>         at 
> org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1097)
>         at 
> org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1058)
>         at 
> org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:405)
>         at 
> org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:123)
>         at 
> org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:219)
>         at 
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
>         at 
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
>         at 
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
>         at 
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
>         at 
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
>         at 
> org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1272)
>         at 
> org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
>         at 
> org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
>         at 
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
>         at 
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
>         at 
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
>         at 
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
>         at 
> org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:153)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to