You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "rstoughton (via GitHub)" <gi...@apache.org> on 2023/04/07 19:15:34 UTC

[I] Cannot run dockerized Drill in detached mode (drill)

rstoughton opened a new issue, #2790:
URL: https://github.com/apache/drill/issues/2790

   **Describe the bug**
   
   I am trying to run Drill in docker on my local machine in detached mode. The container keeps exiting about ~12 seconds after running the command specified in the documentation (https://drill.apache.org/docs/running-drill-on-docker/#running-the-drill-docker-container-in-detached-mode)
   
   **To Reproduce**
   
   ```
   docker run --name drill-detached \
       -p 8047:8047 \
       -p 31010:31010 \
       --detach apache/drill:1.21.0
   ```
   
   **Expected behavior**
   
   The container continues to run in the background.
   
   **Error detail, log output or screenshots**
   
   The container exits after roughly 12 seconds with the following output. Note the `%`.
   
   <img width="511" alt="Screen Shot 2023-04-07 at 2 14 21 PM" src="https://user-images.githubusercontent.com/98769863/230664559-d32e9b6c-cb29-4296-b968-7b8dda78c0af.png">
   
   **Drill version**
   
   `1.21.0`
   
   **Additional context**
   
   N/A


-- 
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: dev-unsubscribe@drill.apache.org.apache.org

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


Re: [I] Cannot run dockerized Drill in detached mode (drill)

Posted by "jnturton (via GitHub)" <gi...@apache.org>.
jnturton closed issue #2790: Cannot run dockerized Drill in detached mode
URL: https://github.com/apache/drill/issues/2790


-- 
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: dev-unsubscribe@drill.apache.org

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


Re: [I] Cannot run dockerized Drill in detached mode (drill)

Posted by "jnturton (via GitHub)" <gi...@apache.org>.
jnturton commented on issue #2790:
URL: https://github.com/apache/drill/issues/2790#issuecomment-1500890060

   Here's a relevant discussion from the Drill mailing list. Also consider a single-node Drill cluster (with a ZooKeeper) using [the distributed mode Docker Compose scripts here](https://github.com/apache/drill/tree/master/distribution/docker-cluster-mode).
   
   Subject:
   Re: Running drill in background in embedded mode
   From:
   James Turton <dz...@apache.org>
   Date:
   2022/07/19, 07:28
   To:
   user@drill.apache.org, Prabhakar Bhosale <bh...@gmail.com>
   
   Well if we're playing with hacks... 😄
   
   nohup drill-embedded -f <(sleep infinity) > /dev/null
   
   That needs a shell smart enough to do process substitution and avoids what I guess was busy wait loop in sqlline's input reader that you ran into.
   
   Back to being boring and responsible: are you sure you want to run Drill this way? It would be a lot more natural to launch a standalone Drillbit with drillbit.sh, having started a ZooKeeper somewhere beforehand.
   
   On 2022/07/19 05:30, Prabhakar Bhosale wrote:
   > Hi Luoc,
   > When I run the drill in embedded mode as foreground process, the %CPU does
   > not go beyond 1%.  for java process. Please let me know if you need any
   > additional information. thx
   >
   > Regards
   > Prabhakar
   >
   > On Tue, Jul 19, 2022 at 6:57 AM luoc <lu...@apache.org> wrote:
   >
   >> Hi,
   >>
   >> What is the cost of the CPU if you are running in a front process?
   >>
   >>> On Jul 18, 2022, at 14:51, Prabhakar Bhosale <bh...@gmail.com>
   >> wrote:
   >>> Hi Team,
   >>> I am trying to run drill in embedded mode as background process with
   >> below
   >>> command
   >>> nohup sh drill-embedded >/dev/null 2>&1 &
   >>>
   >>> My observation is that it takes too much CPU. After starting drill by
   >> above
   >>> command the output of top command against java process shows %CPU
   >> anything
   >>> between 150 to 175%.
   >>>
   >>> So any recommended way to run drill in embedded mode in background?
   >> thanks
   >>> REgards
   >>> Prabhakar
   >>


-- 
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: dev-unsubscribe@drill.apache.org

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