Py学习  »  Redis

无法从yugabyte数据库启动redis cli

Mark • 2 年前 • 1748 次点击  

我试图通过以下方式在yugabyte数据库上运行redis/yedis https://docs.yugabyte.com/latest/yedis/quick-start/#linux .

我执行命令 ./bin/yb-ctl setup_redis 但我最后犯了一个错误:

Setting up YugaByte DB support for Redis API.
Waiting for cluster to be ready.
Traceback (most recent call last):
  File "./bin/yb-ctl", line 2104, in <module>
    control.run()
  File "./bin/yb-ctl", line 2081, in run
    self.args.func()
  File "./bin/yb-ctl", line 1967, in setup_redis_cmd_impl
    self.wait_for_cluster_or_raise()
  File "./bin/yb-ctl", line 1646, in wait_for_cluster_or_raise
    if not self.wait_for_cluster():
  File "./bin/yb-ctl", line 1591, in wait_for_cluster
    cmd_list_tservers = self.yb_admin_cmd_list("list_all_tablet_servers")
  File "./bin/yb-ctl", line 2036, in yb_admin_cmd_list
    raise ValueError("Cannot form yb-admin command without knowing master addresses")
ValueError: Cannot form yb-admin command without knowing master addresses
Viewing file /tmp/tmpbg32mn95:
^^^ Encountered errors ^^^
2021-12-22 16:08:27,463 INFO: Waiting for master and tserver processes to come up.

我让master和tserver在运行命令之后运行:

./bin/yb-master --flagfile master.conf >& /home/doug/mark/disk1/yb-master.out &
./bin/yb-tserver --flagfile tserver.conf >& /home/doug/mark/yb-tserver.out&

主配置文件:

--master_addresses=192.168.1.62:7100
--rpc_bind_addresses=192.168.1.62:7100
--fs_data_dirs=/home/doug/mark/disk1

tserver配置文件:

--tserver_master_addrs=192.168.1.62:7100
--rpc_bind_addresses=192.168.1.62:9100
--start_pgsql_proxy
--pgsql_proxy_bind_address=192.168.1.62:5433
--cql_proxy_bind_address=192.168.1.62:9042
--fs_data_dirs=/home/doug/mark/disk1

在主日志中我可以看到:

I1223 00:08:03.023463 1527298 heartbeater.cc:340] P 419a60d5690945c8ad23c42f7ba758ba: Connected to a leader master server at 192.168.1.62:7100
I1223 00:08:03.023666 1527298 heartbeater.cc:388] P 419a60d5690945c8ad23c42f7ba758ba: Registering TS with master...

但我不确定为什么不能基于上面的教程链接启动redis cli?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/130915
 
1748 次点击  
文章 [ 1 ]  |  最新文章 2 年前