You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "pangtujun (via GitHub)" <gi...@apache.org> on 2024/03/15 04:07:28 UTC
[I] Create namespace error [kvrocks-controller]
pangtujun opened a new issue, #154:
URL: https://github.com/apache/kvrocks-controller/issues/154
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:
- "127.0.0.1:2379"
username:
password:
elect_path:
tls:
enable: false
cert_file:
key_file:
ca_file:
zookeeper:
addrs:
- "x.x.x.x:2181"
scheme:
auth:
elect_path:
controller:
failover:
gc_interval_seconds: 3600
ping_interval_seconds: 5
min_alive_size: 10
max_failure_ratio: 0.6
--
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: issues-unsubscribe@kvrocks.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Create namespace error [kvrocks-controller]
Posted by "pangtujun (via GitHub)" <gi...@apache.org>.
pangtujun commented on issue #154:
URL: https://github.com/apache/kvrocks-controller/issues/154#issuecomment-1999008465
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
--
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: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Create namespace error [kvrocks-controller]
Posted by "jihuayu (via GitHub)" <gi...@apache.org>.
jihuayu commented on issue #154:
URL: https://github.com/apache/kvrocks-controller/issues/154#issuecomment-1998931386
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`

--
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: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Create namespace error [kvrocks-controller]
Posted by "pangtujun (via GitHub)" <gi...@apache.org>.
pangtujun commented on issue #154:
URL: https://github.com/apache/kvrocks-controller/issues/154#issuecomment-1999003400
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:
- "127.0.0.1:2379"
username:
password:
elect_path:
tls:
enable: false
cert_file:
key_file:
ca_file:
zookeeper:
addrs:
- "10.69.188.x:2181"
scheme:
auth:
elect_path:
controller:
failover:
gc_interval_seconds: 3600
ping_interval_seconds: 5
min_alive_size: 10
max_failure_ratio: 0.6
--
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: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Create namespace error [kvrocks-controller]
Posted by "pangtujun (via GitHub)" <gi...@apache.org>.
pangtujun commented on issue #154:
URL: https://github.com/apache/kvrocks-controller/issues/154#issuecomment-1999007767
问题解决了,kvctl-client需要这样子访问"/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
--
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: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Create namespace error [kvrocks-controller]
Posted by "jihuayu (via GitHub)" <gi...@apache.org>.
jihuayu commented on issue #154:
URL: https://github.com/apache/kvrocks-controller/issues/154#issuecomment-1999404610
Ok, thanks!
--
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: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Create namespace error [kvrocks-controller]
Posted by "jihuayu (via GitHub)" <gi...@apache.org>.
jihuayu closed issue #154: Create namespace error
URL: https://github.com/apache/kvrocks-controller/issues/154
--
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: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org