kairosdb+cassandra集群化安装
Posted chenjiazhu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
|
[[email protected] ~] # mv glibc-2.14.tar.gz /opt/software [[email protected] ~] # cd /opt/software [[email protected] software] # tar xf glibc-2.14.tar.gz [[email protected] software] # cd glibc-2.14 [[email protected] glibc-2.14] # mkdir build [[email protected] glibc-2.14] # cd build [[email protected] build] # ../configure --prefix=/usr/local/glibc-2.14 [[email protected] build] # make -j4 [[email protected] build] # make install |
二、拷贝链接库
1
2
|
[[email protected] build] # cd /usr/local/glibc-2.14/lib [[email protected] lib] # cp libc-2.14.so /lib64/ |
三、创建链接
此后会报如下错误:
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
|
[[email protected] 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
|
[[email protected] ~] # vim /etc/environment LANG=en_US.utf-8 LC_ALL= [[email protected] ~] # source /etc/environment [[email protected] ~] # 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
以上是关于kairosdb+cassandra集群化安装的主要内容,如果未能解决你的问题,请参考以下文章