Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting scheduler with docker-compose on main throws error: Error: An unknown argument '--config-backend' was specified. #719

Closed
paolorechia opened this issue Mar 25, 2023 · 1 comment · Fixed by #720
Labels
bug Something isn't working

Comments

@paolorechia
Copy link
Contributor

Describe the bug
Starting the deployment in the main branch with the docker-compose option ttriggers this error:

arrow-ballista-ballista-scheduler-1  | Starting nginx to serve Ballista Scheduler web UI on port 80
arrow-ballista-ballista-scheduler-1  | Error: An unknown argument '--config-backend' was specified.

To Reproduce
Execute docker-compose up --build from main branch.

Expected behavior
Expected services to execute successfully.

Additional context
When looking at the source code, specifically ballista/scheduler/src/bin/main.rs I could not find the relevant etcd options.

Changing the docker-compose.yml line 29 from

    command: "--config-backend etcd --etcd-urls etcd:2379 --bind-host 0.0.0.0"

To

    command: " --bind-host 0.0.0.0"

Fixes the error and deploys successfully the containers. It does not seem like a proper solution here, as we're not effectively using the etcd service. Is there an unfinished feature in main branch?

@paolorechia paolorechia added the bug Something isn't working label Mar 25, 2023
@paolorechia
Copy link
Contributor Author

I seem to have found the proper cause of the error. In the file ballista/scheduler/scheduler_config_spec.toml I found this block:

[[param]]
abbr = "b"
name = "cluster_backend"
type = "ballista_scheduler::cluster::ClusterStorage"
doc = "The configuration backend for the scheduler cluster state, possible values: etcd, memory, sled. Default: sled"
default = "ballista_scheduler::cluster::ClusterStorage::Sled"

Thus changing the config in docker-compose to:

    command: "--cluster-backend etcd --etcd-urls etcd:2379 --bind-host 0.0.0.0"

Seems to work. I might create a follow-up PR here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant