Hadoop java.io.IOException: Mkdirs failed to create /some/path

后端 未结 8 1706
无人共我
无人共我 2020-11-28 04:49

When I try to run my Job I am getting the following exception:

Exception in thread \"main\" java.io.IOException: Mkdirs failed to create /some/path
    at or         


        
相关标签:
8条回答
  • 2020-11-28 05:45

    In my case below lines of code in pom.xml in Maven project worked on Mac.

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.0</version>
        <configuration>
          <shadedArtifactAttached>true</shadedArtifactAttached>
        </configuration>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
              <configuration>
                <filters>
                  <filter>
                    <artifact>*:*</artifact>
                    <excludes>
                      <exclude>META-INF/*.SF</exclude>
                      <exclude>META-INF/*.DSA</exclude>
                      <exclude>META-INF/*.RSA</exclude>
                      <exclude>META-INF/LICENSE*</exclude>
                      <exclude>license/*</exclude>
                    </excludes>
                  </filter>
                </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
    
    0 讨论(0)
  • 2020-11-28 05:46

    This is a file on the local disk that is being created (to unpack your job jar into), not in HDFS. Check you have permissions to mkdir this directory (try it from the command line)

    0 讨论(0)
提交回复
热议问题