This message was deleted.
# general
s
This message was deleted.
b
Have you tried start-druid instead of run-druid? I'm not sure of the differences (or why there are two commands), or whether it would work better for you.
o
start druid just seems to start all the services on a single node setup..
Copy code
$ /apache-druid/druid-26/bin/start-druid router
usage: start-druid [-h] [--memory MEMORY] [--services SERVICES]
                   [--config CONFIG] [--compute] [--verbose]
start-druid: error: unrecognized arguments: router
b
I'm still not sure of the different uses intended between the two, but I believe it can do more. See the examples in https://github.com/implydata/druid/blob/master/examples/bin/start-druid-main.py , eg.
Eg:
start-druid -m=100g -s=broker,router
Starts a broker and a router, using a total memory of 100GB.
o
i dont have these python scripts on the default 0.26 druid install. These are the only files available in bin:
Copy code
broker.sh
coordinator.sh
dsql
dsql-main
generate-example-metrics
greet
historical.sh
java-util
jconsole.sh
middleManager.sh
node.sh
overlord.sh
post-index-task
post-index-task-main
post-index-task-main3
run-druid
run-java
run-zk
service
start-cluster-data-server
start-cluster-master-no-zk-server
start-cluster-master-with-zk-server
start-cluster-query-server
start-druid
start-druid-main.py
start-micro-quickstart
start-nano-quickstart
start-single-server-large
start-single-server-medium
start-single-server-small
start-single-server-xlarge
supervise
verify-default-ports
verify-java
b
Which python scripts? I see start-druid in there, and start-druid-main.py. Sorry if I'm missing something.
But you might be right, it might only be intended for quickstarts, idk.
It's documented under "single-server" so it might not be intended for other uses.
I see what you mean though, there's broker.sh, coordinator.sh, but no router.sh. For background, I guess you can use
&
etc. So I guess I don't have an better answer to your questions, sorry.
o
Yeah… thats what i been doing just nohup with & but figured i would ask on here if there was a better solution 😞
a
@Oleg Yamin I do see the following scripts (shell and python) in what you posted above:
Copy code
start-druid
start-druid-main.py
I think what you’re missing is the
-s
argument to the shell script
start-druid
. Try:
Copy code
./apache-druid/druid-26/bin/start-druid -s router
s
start-druid
will look at available memory on the node where it starts (or the max you specify it can use) and split up the memory intelligently among the services you want to bring up. It tries to make the best use of the resources available to start the services you request.
o
only command that worked for me was run-druid router also, it seems to ignore $DRUID_CONF_DIR path, since even if i specify another dir, it still looks for config in /conf directory