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 ~]# wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz[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
|
ls: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory |
解决方法:
四、查看支持的版本
|
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 GLIBCGLIBC_2.2.5GLIBC_2.2.6GLIBC_2.3GLIBC_2.3.2GLIBC_2.3.3GLIBC_2.3.4GLIBC_2.4GLIBC_2.5GLIBC_2.6GLIBC_2.7GLIBC_2.8GLIBC_2.9GLIBC_2.10GLIBC_2.11GLIBC_2.12GLIBC_2.13GLIBC_2.14GLIBC_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-8LC_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

浙公网安备 33010602011771号