Kairosdb
(1) To/conf directory, find kairosdb.properties, modify Datastore to Cassandra
(2) Setting the connection mode of Cassandra
(3) Set user name password
4. Start: Go to the/bin directory and run directly
./kairosdb.sh Start, finally see KAIROSDB service started such a word, OK 172.16.101.25:8080 kairosdb client Cassandra Modify Cassandra configuration file conf/ Cassandra.yaml start./bin/cassandra-r start with root user start.sh nohup sh cassandra-r > Default.log error as follows: Reason: GLIBC version too low upgrade glibc version Follow the http://stuart.blog.51cto.com/728677/1840205 on the 172.16.110.25 to upgrade the GLIBC in accordance with the steps, you can, the specific steps are as follows:
First, install the glibc-2.14
12345678910 |
[[email protected] ~] # wget http://ftp.gnu.org /gnu/glibc/glibc-2.14.tar.gz [[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 |
Second, copy the link library
12 |
[[email protected] build] # cd /usr/local/glibc-2.14/lib [[email protected] lib] # cp libc-2.14.so /lib64/ |
Third, create links
12 |
[[email protected] lib] # cd /lib64 [[email protected] lib64] # rm -rf libc.so.6 |
The following error will be reported thereafter:
1 |
ls : error while loading shared libraries: libc.so.6: cannot open shared object file : No such file or directory |
Workaround:
1 |
[[email protected] lib64] # /sbin/sln libc-2.14.so /lib64/libc.so.6 |
Iv. Viewing supported versions
12345678910111213141516171819 |
[[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 |
The following error is reported via SSH connection:
12345 |
-
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
|
Workaround:
12345 |
[[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 |
Clustered Deployment
In Cassandra
VI Cassandra.yaml
VI cassandra-topology.properties
VI cassandra-rackdc.properties
Kairosdb in kairosdb.datastore.cassandra.host_list to multiple IP forms
VI kairosdb.properties
Cassandra Connection
./cqlsh-u cassandra-p Cassandra 172.16.103.127
Kairosdb+cassandra Clustered Installation