apache / apache/bookkeeper

bin/bkctl cluster init fails with "java.lang.IllegalArgumentException: No service URI is provided"

Open
#2,504 4 comments 0 reactions 0 assignees View on GitHub
help wanted type/bug
Dominant language
Java
Stars
2k
Forks
976
Avg merge
6d 15h
Merged PRs (30d)
7

Description

**BUG REPORT**
I am trying to setup a StreamStorage Cluster, but the command to init the cluster is not working.

***Describe the bug***

If you run this command, there is no error and no way to understand what to do (without checking into BK code)

`bin/bkctl cluster init`

```
java.lang.IllegalArgumentException: No service URI is provided
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:142)
at org.apache.bookkeeper.stream.cli.commands.cluster.InitClusterCommand.apply(InitClusterCommand.java:114)
at org.apache.bookkeeper.stream.cli.commands.cluster.InitClusterCommand.apply(InitClusterCommand.java:53)
at org.apache.bookkeeper.tools.common.BKCommand.apply(BKCommand.java:94)
at org.apache.bookkeeper.tools.common.BKCommand.lambda$apply$0(BKCommand.java:49)
at org.apache.bookkeeper.tools.framework.Cli.run(Cli.java:224)
at org.apache.bookkeeper.tools.framework.Cli.runCli(Cli.java:244)
at org.apache.bookkeeper.tools.common.BKCommand.apply(BKCommand.java:51)
at org.apache.bookkeeper.tools.common.BKCommand.apply(BKCommand.java:39)
at org.apache.bookkeeper.tools.framework.Cli.run(Cli.java:232)
at org.apache.bookkeeper.tools.framework.Cli.runCli(Cli.java:244)
at org.apache.bookkeeper.tools.framework.CliCommandGroup.apply(CliCommandGroup.java:68)
at org.apache.bookkeeper.tools.framework.Cli.run(Cli.java:232)
at org.apache.bookkeeper.tools.framework.Cli.runCli(Cli.java:244)
at org.apache.bookkeeper.tools.cli.BKCtl.main(BKCtl.java:58)
Error : No service URI is provided

```

***Expected behavior***

The command succeedes

***Suggestions***
We should document how to start with the BK Stream Storage Service

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.