kairosdb+cassandra集群化安装

kairosdb

(1)到/conf目录下,找到kairosdb.properties,修改datastore为cassandra

(2)设置cassandra的连接方式

(3) 设置用户名密码

 

4. 启动:到/bin目录下,直接跑 ./kairosdb.sh start,最后会看到 KairosDB service started   这样一句话,就OK了
172.16.101.25:8080 kairosdb客户端

cassandra

修改cassandra配置文件
conf/cassandra.yaml
启动
./bin/cassandra -R 用root用户启动
start.sh    nohup sh cassandra -R  > default.log 
报错如下:
原因:GLIBC版本太低
升级GLIBC版本
按照 http://stuart.blog.51cto.com/728677/1840205在172.16.110.25上按照改步骤升级GLIBC,可以,具体步骤如下:

一、安装glibc-2.14

 

1
2
3
4
5
6
7
8
9
10
[root@jrgc130 ~] # mv glibc-2.14.tar.gz /opt/software
[root@jrgc130 ~] # cd /opt/software
[root@jrgc130 software] # tar xf glibc-2.14.tar.gz
[root@jrgc130 software] # cd glibc-2.14
[root@jrgc130 glibc-2.14] # mkdir build
[root@jrgc130 glibc-2.14] # cd build
[root@jrgc130 build] # ../configure --prefix=/usr/local/glibc-2.14
[root@jrgc130 build] # make -j4
[root@jrgc130 build] # make install

 

二、拷贝链接库

 

1
2
[root@jrgc130 build] # cd /usr/local/glibc-2.14/lib
[root@jrgc130 lib] # cp libc-2.14.so /lib64/

 

三、创建链接

 

1
2
[root@jrgc130 lib] # cd /lib64
[root@jrgc130 lib64] # rm -rf libc.so.6

 

此后会报如下错误:

 

1
ls : error  while  loading shared libraries: libc.so.6: cannot  open  shared object  file : No such  file  or directory

 

解决方法:

 

1
[root@example lib64] # /sbin/sln libc-2.14.so /lib64/libc.so.6

 

四、查看支持的版本

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[root@jrgc130 lib64] # strings /lib64/libc.so.6 |grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_PRIVATE

 

通过ssh连接会报如下错误:

 

1
2
3
4
5
- bash : warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such  file  or directory
- bash : warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such  file  or directory
- bash : warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such  file  or directory
- bash : warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such  file  or directory
- bash : warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such  file  or directory

 

解决方法:

 

1
2
3
4
5
[root@example ~] # vim /etc/environment 
LANG=en_US.utf-8
LC_ALL=
[root@example ~] # source /etc/environment 
[root@example ~] # localedef -v -c -i en_US -f UTF-8 en_US.UTF-8

集群化部署

cassandra中

vi cassandra.yaml 

vi cassandra-topology.properties 

 vi cassandra-rackdc.properties 

kairosdb中kairosdb.datastore.cassandra.host_list改成多ip形式

 vi kairosdb.properties 


Cassandra连接

 ./cqlsh -u cassandra -p cassandra 172.16.103.127  

转载于:https://www.cnblogs.com/chenjiazhu/p/7424975.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值