<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question java.io.FileNotFoundException:  (Is a directory) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-Is-a-directory/m-p/165753#M29532</link>
    <description>&lt;P&gt;HDP 2.4.2&lt;/P&gt;&lt;P&gt;Ambari 2.2.2&lt;/P&gt;&lt;P&gt;druid-0.9.0&lt;/P&gt;&lt;P&gt;I am following this &lt;A href="http://druid.io/docs/latest/tutorials/quickstart.html" target="_blank"&gt;http://druid.io/docs/latest/tutorials/quickstart.html&lt;/A&gt; and running &lt;/P&gt;&lt;P&gt;[root@nss03 druid-0.9.0]# curl -X 'POST' -H 'Content-Type:application/json' -d @Former Member/wikiticker-index.json &lt;A href="http://overlordnode:8090/druid/indexer/v1/task" target="_blank"&gt;http://overlordnode:8090/druid/indexer/v1/task&lt;/A&gt;&lt;/P&gt;&lt;P&gt;{"task":"index_hadoop_wikiticker_2016-05-24T11:38:51.681Z"}&lt;/P&gt;&lt;P&gt;[root@nss03 druid-0.9.0]# &lt;/P&gt;&lt;P&gt;I can see that job is submitted to the yarn queue. RM UI error details. &lt;/P&gt;&lt;PRE&gt;SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/hadoop/yarn/local/filecache/10/mapreduce.tar.gz/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/hadoop/yarn/local/filecache/130/log4j-slf4j-impl-2.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /hadoop/yarn/log/application_1464036814491_0009/container_e04_1464036814491_0009_01_000001 (Is a directory)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:213)
	at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:133)
	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
	at org.apache.hadoop.yarn.ContainerLogAppender.activateOptions(ContainerLogAppender.java:55)
	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
	at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
	at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
	at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
	at org.apache.log4j.LogManager.&amp;lt;clinit&amp;gt;(LogManager.java:127)
	at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:64)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:285)
	at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
	at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:657)
	at org.apache.hadoop.service.AbstractService.&amp;lt;clinit&amp;gt;(AbstractService.java:43)
May 24, 2016 4:39:11 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.mapreduce.v2.app.webapp.JAXBContextResolver as a provider class
May 24, 2016 4:39:11 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.yarn.webapp.GenericExceptionHandler as a provider class
May 24, 2016 4:39:11 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.mapreduce.v2.app.webapp.AMWebServices as a root resource class&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:21:39 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2022-09-16T10:21:39Z</dc:date>
    <item>
      <title>java.io.FileNotFoundException:  (Is a directory)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-Is-a-directory/m-p/165753#M29532</link>
      <description>&lt;P&gt;HDP 2.4.2&lt;/P&gt;&lt;P&gt;Ambari 2.2.2&lt;/P&gt;&lt;P&gt;druid-0.9.0&lt;/P&gt;&lt;P&gt;I am following this &lt;A href="http://druid.io/docs/latest/tutorials/quickstart.html" target="_blank"&gt;http://druid.io/docs/latest/tutorials/quickstart.html&lt;/A&gt; and running &lt;/P&gt;&lt;P&gt;[root@nss03 druid-0.9.0]# curl -X 'POST' -H 'Content-Type:application/json' -d @Former Member/wikiticker-index.json &lt;A href="http://overlordnode:8090/druid/indexer/v1/task" target="_blank"&gt;http://overlordnode:8090/druid/indexer/v1/task&lt;/A&gt;&lt;/P&gt;&lt;P&gt;{"task":"index_hadoop_wikiticker_2016-05-24T11:38:51.681Z"}&lt;/P&gt;&lt;P&gt;[root@nss03 druid-0.9.0]# &lt;/P&gt;&lt;P&gt;I can see that job is submitted to the yarn queue. RM UI error details. &lt;/P&gt;&lt;PRE&gt;SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/hadoop/yarn/local/filecache/10/mapreduce.tar.gz/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/hadoop/yarn/local/filecache/130/log4j-slf4j-impl-2.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /hadoop/yarn/log/application_1464036814491_0009/container_e04_1464036814491_0009_01_000001 (Is a directory)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:213)
	at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:133)
	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
	at org.apache.hadoop.yarn.ContainerLogAppender.activateOptions(ContainerLogAppender.java:55)
	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
	at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
	at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
	at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
	at org.apache.log4j.LogManager.&amp;lt;clinit&amp;gt;(LogManager.java:127)
	at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:64)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:285)
	at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
	at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:657)
	at org.apache.hadoop.service.AbstractService.&amp;lt;clinit&amp;gt;(AbstractService.java:43)
May 24, 2016 4:39:11 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.mapreduce.v2.app.webapp.JAXBContextResolver as a provider class
May 24, 2016 4:39:11 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.yarn.webapp.GenericExceptionHandler as a provider class
May 24, 2016 4:39:11 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.mapreduce.v2.app.webapp.AMWebServices as a root resource class&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:21:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-Is-a-directory/m-p/165753#M29532</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2022-09-16T10:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.FileNotFoundException:  (Is a directory)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-Is-a-directory/m-p/165754#M29533</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; possibly a yarn client version difference issue.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 23:19:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-Is-a-directory/m-p/165754#M29533</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-24T23:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.FileNotFoundException:  (Is a directory)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-Is-a-directory/m-p/165755#M29534</link>
      <description>&lt;P&gt;I was able to fix the above issue by adding hadoop jars in the class path while starting the components&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;Start Coordinator, Overlord  ns03
java `cat conf/druid/coordinator/jvm.config | xargs` -cp conf/druid/_common:conf/druid/coordinator:lib/*:/usr/hdp/2.4.2.0-258/hadoop/lib/*:/usr/hdp/2.4.2.0-258/hadoop-yarn/lib/*:/usr/hdp/2.4.2.0-258/hadoop-yarn/*:/usr/hdp/2.4.2.0-258/hadoop/client/*:/usr/hdp/2.4.2.0-258/hadoop-mapreduce/*:/usr/hdp/2.4.2.0-258/hadoop-mapreduce/lib/* io.druid.cli.Main server coordinator &amp;amp;
java `cat conf/druid/overlord/jvm.config | xargs` -cp conf/druid/_common:conf/druid/overlord:lib/*:/usr/hdp/2.4.2.0-258/hadoop/lib/*:/usr/hdp/2.4.2.0-258/hadoop-yarn/lib/*:/usr/hdp/2.4.2.0-258/hadoop-yarn/*:/usr/hdp/2.4.2.0-258/hadoop/client/*:/usr/hdp/2.4.2.0-258/hadoop-mapreduce/*:/usr/hdp/2.4.2.0-258/hadoop-mapreduce/lib/*  io.druid.cli.Main server overlord &amp;amp;
Start Historicals and MiddleManagers    ns02
java `cat conf/druid/historical/jvm.config | xargs` -cp conf/druid/_common:conf/druid/historical:lib/*:/usr/hdp/2.4.2.0-258/hadoop/lib/*:/usr/hdp/2.4.2.0-258/hadoop-yarn/lib/*:/usr/hdp/2.4.2.0-258/hadoop-yarn/*:/usr/hdp/2.4.2.0-258/hadoop/client/*:/usr/hdp/2.4.2.0-258/hadoop-mapreduce/*:/usr/hdp/2.4.2.0-258/hadoop-mapreduce/lib/*  io.druid.cli.Main server historical &amp;amp;
java `cat conf/druid/middleManager/jvm.config | xargs` -cp conf/druid/_common:conf/druid/middleManager:lib/*:/usr/hdp/2.4.2.0-258/hadoop/lib/*:/usr/hdp/2.4.2.0-258/hadoop-yarn/lib/*:/usr/hdp/2.4.2.0-258/hadoop-yarn/*:/usr/hdp/2.4.2.0-258/hadoop/client/*:/usr/hdp/2.4.2.0-258/hadoop-mapreduce/*:/usr/hdp/2.4.2.0-258/hadoop-mapreduce/lib/*  io.druid.cli.Main server middleManager &amp;amp;
Start Druid Broker
java `cat conf/druid/broker/jvm.config | xargs` -cp conf/druid/_common:conf/druid/broker:lib/*:/usr/hdp/2.4.2.0-258/hadoop/lib/*:/usr/hdp/2.4.2.0-258/hadoop-yarn/lib/*:/usr/hdp/2.4.2.0-258/hadoop-yarn/*:/usr/hdp/2.4.2.0-258/hadoop/client/*:/usr/hdp/2.4.2.0-258/hadoop-mapreduce/*:/usr/hdp/2.4.2.0-258/hadoop-mapreduce/lib/*  io.druid.cli.Main server broker &amp;amp;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 May 2016 18:36:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-Is-a-directory/m-p/165755#M29534</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-05-25T18:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.FileNotFoundException:  (Is a directory)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-Is-a-directory/m-p/165756#M29535</link>
      <description>&lt;P&gt;HDP 2.6 has native support to druid where you don't have to do all this classpath adding.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 08:58:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-Is-a-directory/m-p/165756#M29535</guid>
      <dc:creator>sbouguerra</dc:creator>
      <dc:date>2017-02-15T08:58:54Z</dc:date>
    </item>
  </channel>
</rss>

