我遵循此link来实现MariaDB Cassandra互操作性。我已经在Ubuntu 14.04上安装了mariadb和cassandra并且它正在运行。我还在cassandra中创建了mariadb键空间。当我尝试在mariadb中创建表时,我收到以下错误:
MariaDB [test]> set global cassandra_default_thrift_host='127.0.0.1';Query OK, 0 rows affected (0.00 sec)
MariaDB [test]> create table t2 (pk varchar(36) primary key, data1 varchar(60), data2 bigint ) engine=cassandra keyspace='mariadbtest' thrift_host='127.0.0.1' column_family='cfl';
ERROR 1429 (HY000): Unable to connect to foreign data source: connect() failed: Connection refused [1]
任何建议都将受到赞赏。
答案 0 :(得分:1)
在cassandra.yaml文件中将start_rpc: false
更改为start_rpc : true