You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/09/08 15:18:50 UTC

[GitHub] [druid] FrankChen021 opened a new issue, #13057: Ingestion task can't be launched in docker

FrankChen021 opened a new issue, #13057:
URL: https://github.com/apache/druid/issues/13057

   #12839 introduces a script `run-java` to start the peon tasks, and this script requires bash to execute it.
   
   However, the busybox that docker images installs does not ship bash but sh, so when a task is launched by middle manager, following exception is thrown.
   
   ```bash
   middlemanager    | java.io.IOException: Cannot run program "bin/run-java": error=2, No such file or directory
   middlemanager    |      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1128) ~[?:?]
   middlemanager    |      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) ~[?:?]
   middlemanager    |      at org.apache.druid.indexing.overlord.ForkingTaskRunner.runTaskProcess(ForkingTaskRunner.java:491) ~[druid-indexing-service-25.0.0-SNAPSHOT.jar:25.0.0-SNAPSHOT]
   middlemanager    |      at org.apache.druid.indexing.overlord.ForkingTaskRunner$1.call(ForkingTaskRunner.java:390) ~[druid-indexing-service-25.0.0-SNAPSHOT.jar:25.0.0-SNAPSHOT]
   middlemanager    |      at org.apache.druid.indexing.overlord.ForkingTaskRunner$1.call(ForkingTaskRunner.java:153) ~[druid-indexing-service-25.0.0-SNAPSHOT.jar:25.0.0-SNAPSHOT]
   middlemanager    |      at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
   middlemanager    |      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
   middlemanager    |      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
   middlemanager    |      at java.lang.Thread.run(Thread.java:829) ~[?:?]
   middlemanager    | Caused by: java.io.IOException: error=2, No such file or directory
   middlemanager    |      at java.lang.ProcessImpl.forkAndExec(Native Method) ~[?:?]
   middlemanager    |      at java.lang.ProcessImpl.<init>(ProcessImpl.java:340) ~[?:?]
   middlemanager    |      at java.lang.ProcessImpl.start(ProcessImpl.java:271) ~[?:?]
   middlemanager    |      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1107) ~[?:?]
   ```
   
   
   The solution is:
   1. replace the directive of `#!/bin/bash -eu` of `run-java` file to `#!/bin/sh`
   2. Or install bash to docker
   
   I think the 2nd alternative is better.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] FrankChen021 closed issue #13057: Ingestion task can't be launched in docker

Posted by GitBox <gi...@apache.org>.
FrankChen021 closed issue #13057: Ingestion task can't be launched in docker
URL: https://github.com/apache/druid/issues/13057


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] FrankChen021 commented on issue #13057: Ingestion task can't be launched in docker

Posted by GitBox <gi...@apache.org>.
FrankChen021 commented on issue #13057:
URL: https://github.com/apache/druid/issues/13057#issuecomment-1240880480

   Actually, the startup script `druid.sh` in docker is declared using `sh`
   
   https://github.com/apache/druid/blob/99fd22c79be85763d48b1caf3ec67767a0c5f9ad/distribution/docker/druid.sh#L1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] FrankChen021 commented on issue #13057: Ingestion task can't be launched in docker

Posted by GitBox <gi...@apache.org>.
FrankChen021 commented on issue #13057:
URL: https://github.com/apache/druid/issues/13057#issuecomment-1240864562

   24.0.0 is also affected


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org