apache / kvrocks-controller

Apache Kvrocks Controller is a cluster management tool for Apache Kvrocks.
https://kvrocks.apache.org/
Apache License 2.0
78 stars 42 forks source link

Create namespace error #154

Closed pangtujun closed 3 months ago

pangtujun commented 3 months ago

First: I want to create a namespace,but i find the created namespace is error

create namespace abv Error: parse "x.x.x.x:9379/api/v1/namespaces": first path segment in URL cannot contain colon create abv Error: wrong arguments

second: I create the namespace by API,it ok,but I can not get namespace wiht /opt/kvrocks-controller/_build/kvctl-client -e x.x.x.x:9379 cd

Error:

cd test-ns Error: parse "x.x.x.x:9379/api/v1/namespaces/test-ns": first path segment in URL cannot contain colon

config.yaml:

Licensed to the Apache Software Foundation (ASF) under one

or more contributor license agreements. See the NOTICE file

distributed with this work for additional information

regarding copyright ownership. The ASF licenses this file

to you under the Apache License, Version 2.0 (the

"License"); you may not use this file except in compliance

with the License. You may obtain a copy of the License at

#

http://www.apache.org/licenses/LICENSE-2.0

#

Unless required by applicable law or agreed to in writing,

software distributed under the License is distributed on an

"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

KIND, either express or implied. See the License for the

specific language governing permissions and limitations

under the License.

#

addr: "x.x.x.x:9379"

Which storage engine should be used by controller

options: etcd, zookeeper

default: etcd

storage_type: zookeeper

etcd: addrs:

zookeeper: addrs:

controller: failover: gc_interval_seconds: 3600 ping_interval_seconds: 5 min_alive_size: 10 max_failure_ratio: 0.6

jihuayu commented 3 months ago

Hi, you have set your storage_type with zookeeper,but you don't set zookeeper addrs If you want to use etcd please set storage_type: etcd image

pangtujun commented 3 months ago

yes.i use the zookeeper addrs ,and I can create a namespace “test-ns” by calling the api via postman, but kvctl-client cannot cd into this namespace

config.yaml,egg: addr: "10.69.187.x:9379"

Which storage engine should be used by controller

options: etcd, zookeeper

default: etcd

storage_type: zookeeper

etcd: addrs:

zookeeper: addrs:

controller: failover: gc_interval_seconds: 3600 ping_interval_seconds: 5 min_alive_size: 10 max_failure_ratio: 0.6

pangtujun commented 3 months ago

Problem solved. kvctl-client needs this access "/opt/kvrocks-controller/_build/kvctl-client -e http://x.x.x.x:9379""/opt/kvrocks-controller/_build/kvctl-client -e x.x.x.x:9379",, thank you, but the website doesn't say

jihuayu commented 3 months ago

Ok, thanks!