我在google云服务器上安装了scylla-db。
我遵循的步骤:
sudo yum install epel-release
sudo curl -o /etc/yum.repos.d/scylla.repo -L http://repositories.scylladb.com/scylla/repo/a2a0ba89d456770dfdc1cd70325e3291/centos/scylladb-2.0.repo
sudo yum install scylla
sudo scylla_setup
(Given yes to "verify supportable version" , " verify packages" , "core dump", " fstim ssd "
For remaining : Given NO)
IN file :/etc/scylla.d/io.conf
SEASTAR_IO="--max-io-requests=12 --num-io-queues=1"
( edited this file manually )
sudo systemctl start scylla-server它显示:无法读取yaml文件。然后谷歌它,并将yaml-cpp版本从0.5.3降至0.5.1。然后scylla服务器开始运行。
[root@scylla ~]# nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns Host ID Rack
UN 127.0.0.1 208.69 KB 256 ? 888e91da-9385-4c61-8417-dd59c1a979b8 rack1
Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless
[root@scylla ~]# cat /etc/scylla/scylla.yaml | grep seeds:
- seeds: "127.0.0.1"
[root@scylla ~]# cat /etc/scylla/scylla.yaml | grep rpc_address:
rpc_address: localhost
#broadcast_rpc_address:
[root@scylla ~]# cat /etc/scylla/scylla.yaml | grep listen_address:
listen_address: localhost
[root@scylla ~]# cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 3.0.8 | CQL spec 3.3.1 | Native protocol v4]
Use HELP for help.
cqlsh> exit
[root@scylla ~]# netstat -tupln | grep LISTEN
tcp 0 0 127.0.0.1:10000 0.0.0.0:* LISTEN 6387/scylla
tcp 0 0 127.0.0.1:9042 0.0.0.0:* LISTEN 6387/scylla
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1105/sshd
tcp 0 0 127.0.0.1:7000 0.0.0.0:* LISTEN 6387/scylla
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1119/master
tcp 0 0 0.0.0.0:9180 0.0.0.0:* LISTEN 6387/scylla
tcp 0 0 127.0.0.1:9160 0.0.0.0:* LISTEN 6387/scylla
tcp6 0 0 :::80 :::* LISTEN 5217/httpd
tcp6 0 0 :::22 :::* LISTEN 1105/sshd
tcp6 0 0 :::35063 :::* LISTEN 6412/scylla-jmx
tcp6 0 0 ::1:25 :::* LISTEN 1119/master
tcp6 0 0 127.0.0.1:7199 :::* LISTEN 6412/scylla-jmx 锡拉服务器正在运行。
同样的设置完成了另一个服务器服务器名scylla-db-1
我需要从这个服务器连接到服务器scylla ( IP: xx.xx.xxx)。
当我执行以下命令时:
[root@scylla-db-1 ~]# cqlsh xx.xx.xxx
Connection error: ('Unable to connect to any servers', {'xx.xx.xxx': error(111, "Tried connecting to [('xx.xx.xxx', 9042)]. Last error: Connection refused")})如何将远程服务器与此服务器连接?
此外,在浏览器中检查http://xx.xx.xxx:10000和http://xx.xx.xxx:10000/ui时,我会看到加载页面的问题。
注意:
我已经编辑了/etc/scylla.d/io.conf文件,以便手动分配max-io-请求
发布于 2018-02-01 14:41:35
端口10000是scylla的rest,通常被限制在127.0.0.1 --这就是为什么不能访问它的原因。
要通过cql获得访问权限,需要编辑/etc/scylla/scylla.yaml文件并设置rpc_address
请按照有关为集群部署配置scylla的说明:单dc cluster/或多dc multidc/。
发布于 2019-02-21 04:18:16
您需要在rpc_address上设置scylla.yaml,并且在通过cql进行连接时,如果启用了用户/pass,也需要为您的rpc_address提供cqlsh xx.xxx.xxx.xx。
https://stackoverflow.com/questions/48560390
复制相似问题