java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory

JIRA | max putilov | 4 years ago
  1. 0

    Hi! I'm trying to build hadoop-ubuntu with ./sbt package. But have the following error: Using /home/baio/.sbt/0.12.0-RC1 as sbt dir, -sbt-dir to override. java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at java.lang.Runtime.exec(Runtime.java:610) at java.lang.Runtime.exec(Runtime.java:483) at jline.UnixTerminal.exec(UnixTerminal.java:292) at jline.UnixTerminal.stty(UnixTerminal.java:268) at jline.UnixTerminal.initializeTerminal(UnixTerminal.java:71) at jline.Terminal.setupTerminal(Terminal.java:75) at jline.Terminal.getTerminal(Terminal.java:26) at sbt.ConsoleLogger$.ansiSupported(ConsoleLogger.scala:39) at sbt.ConsoleLogger$.<init>(ConsoleLogger.scala:34) at sbt.ConsoleLogger$.<clinit>(ConsoleLogger.scala) at sbt.GlobalLogging$.initial(GlobalLogging.scala:24) at sbt.StandardMain$.initialGlobalLogging(Main.scala:57) at sbt.StandardMain$.initialState(Main.scala:54) at sbt.xMain.run(Main.scala:26) at xsbt.boot.Launch$.run(Launch.scala:55) at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45) at xsbt.boot.Launch$.launch(Launch.scala:69) at xsbt.boot.Launch$.apply(Launch.scala:16) at xsbt.boot.Boot$.runImpl(Boot.scala:31) at xsbt.boot.Boot$.main(Boot.scala:20) at xsbt.boot.Boot.main(Boot.scala) Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 21 more [info] Loading project definition from /home/baio/dev/java/mongo-hadoop/project *** Adding Pig Dependency for Version '0.9.2' *** Adding Hadoop Dependencies for Hadoop '1.0.3' [info] Set current project to mongo-hadoop (in build file:/home/baio/dev/java/mongo-hadoop/) [info] Compiling 27 Java sources to /home/baio/dev/java/mongo-hadoop/core/target/classes... [info] Compiling 2 Java sources to /home/baio/dev/java/mongo-hadoop/flume/target/classes... [trace] Stack trace suppressed: run last mongo-flume/compile:compile for the full output. [trace] Stack trace suppressed: run last mongo-hadoop-core/compile:compile for the full output. [error] (mongo-flume/compile:compile) java.io.IOException: Cannot run program "javac": java.io.IOException: error=12, Cannot allocate memory [error] (mongo-hadoop-core/compile:compile) java.io.IOException: Cannot run program "javac": java.io.IOException: error=12, Cannot allocate memory [error] Total time: 1 s, completed Aug 4, 2012 9:05:47 PM Where could be problem here& BTW is there some already compiled version? Thanks

    JIRA | 4 years ago | max putilov
    java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory
  2. 0

    Hi! I'm trying to build hadoop-ubuntu with ./sbt package. But have the following error: Using /home/baio/.sbt/0.12.0-RC1 as sbt dir, -sbt-dir to override. java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at java.lang.Runtime.exec(Runtime.java:610) at java.lang.Runtime.exec(Runtime.java:483) at jline.UnixTerminal.exec(UnixTerminal.java:292) at jline.UnixTerminal.stty(UnixTerminal.java:268) at jline.UnixTerminal.initializeTerminal(UnixTerminal.java:71) at jline.Terminal.setupTerminal(Terminal.java:75) at jline.Terminal.getTerminal(Terminal.java:26) at sbt.ConsoleLogger$.ansiSupported(ConsoleLogger.scala:39) at sbt.ConsoleLogger$.<init>(ConsoleLogger.scala:34) at sbt.ConsoleLogger$.<clinit>(ConsoleLogger.scala) at sbt.GlobalLogging$.initial(GlobalLogging.scala:24) at sbt.StandardMain$.initialGlobalLogging(Main.scala:57) at sbt.StandardMain$.initialState(Main.scala:54) at sbt.xMain.run(Main.scala:26) at xsbt.boot.Launch$.run(Launch.scala:55) at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45) at xsbt.boot.Launch$.launch(Launch.scala:69) at xsbt.boot.Launch$.apply(Launch.scala:16) at xsbt.boot.Boot$.runImpl(Boot.scala:31) at xsbt.boot.Boot$.main(Boot.scala:20) at xsbt.boot.Boot.main(Boot.scala) Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 21 more [info] Loading project definition from /home/baio/dev/java/mongo-hadoop/project *** Adding Pig Dependency for Version '0.9.2' *** Adding Hadoop Dependencies for Hadoop '1.0.3' [info] Set current project to mongo-hadoop (in build file:/home/baio/dev/java/mongo-hadoop/) [info] Compiling 27 Java sources to /home/baio/dev/java/mongo-hadoop/core/target/classes... [info] Compiling 2 Java sources to /home/baio/dev/java/mongo-hadoop/flume/target/classes... [trace] Stack trace suppressed: run last mongo-flume/compile:compile for the full output. [trace] Stack trace suppressed: run last mongo-hadoop-core/compile:compile for the full output. [error] (mongo-flume/compile:compile) java.io.IOException: Cannot run program "javac": java.io.IOException: error=12, Cannot allocate memory [error] (mongo-hadoop-core/compile:compile) java.io.IOException: Cannot run program "javac": java.io.IOException: error=12, Cannot allocate memory [error] Total time: 1 s, completed Aug 4, 2012 9:05:47 PM Where could be problem here& BTW is there some already compiled version? Thanks

    JIRA | 4 years ago | max putilov
    java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory
  3. 0

    [Help] "error=12, Cannot allocate memory"

    linuxquestions.org | 1 year ago
    java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    LinuxQuestions.org - [Help] "error=12, Cannot allocate memory"

    linuxquestions.org | 1 year ago
    java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory
  6. 0

    Cannot run program "/usr/local/cuda/bin/nvcc"[..]Cannot allocate memory

    GitHub | 3 years ago | ender7
    java.io.IOException: Cannot run program "/usr/local/cuda/bin/nvcc" (in directory "."): java.io.IOException: error=12, Cannot allocate memory

  1. serious2monkeys 1 times, last 1 week ago
  2. Handemelindo 6 times, last 1 month ago
  3. kid 5 times, last 1 month ago
  4. rp 2 times, last 2 months ago
  5. jk 1 times, last 5 months ago
3 more registered users
75 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    java.io.IOException: error=12, Cannot allocate memory

    at java.lang.UNIXProcess.<init>()
  2. Java RT
    Runtime.exec
    1. java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
    2. java.lang.ProcessImpl.start(ProcessImpl.java:81)
    3. java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
    4. java.lang.Runtime.exec(Runtime.java:610)
    5. java.lang.Runtime.exec(Runtime.java:483)
    5 frames
  3. SBT
    xMain.run
    1. jline.UnixTerminal.exec(UnixTerminal.java:292)
    2. jline.UnixTerminal.stty(UnixTerminal.java:268)
    3. jline.UnixTerminal.initializeTerminal(UnixTerminal.java:71)
    4. jline.Terminal.setupTerminal(Terminal.java:75)
    5. jline.Terminal.getTerminal(Terminal.java:26)
    6. sbt.ConsoleLogger$.ansiSupported(ConsoleLogger.scala:39)
    7. sbt.ConsoleLogger$.<init>(ConsoleLogger.scala:34)
    8. sbt.ConsoleLogger$.<clinit>(ConsoleLogger.scala)
    9. sbt.GlobalLogging$.initial(GlobalLogging.scala:24)
    10. sbt.StandardMain$.initialGlobalLogging(Main.scala:57)
    11. sbt.StandardMain$.initialState(Main.scala:54)
    12. sbt.xMain.run(Main.scala:26)
    12 frames
  4. SBT Launcher
    Boot.main
    1. xsbt.boot.Launch$.run(Launch.scala:55)
    2. xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45)
    3. xsbt.boot.Launch$.launch(Launch.scala:69)
    4. xsbt.boot.Launch$.apply(Launch.scala:16)
    5. xsbt.boot.Boot$.runImpl(Boot.scala:31)
    6. xsbt.boot.Boot$.main(Boot.scala:20)
    7. xsbt.boot.Boot.main(Boot.scala)
    7 frames