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  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM