您好,欢迎访问一九零五行业门户网

MySQL Cluster 安装

下载软件包: [root@mysql1 paul]# wget http://cdn.mysql.com/downloads/mysql-cluster-7.2/mysql-cluster-gpl-7.2.10.tar.gz 配
下载软件包:
[root@mysql1 paul]# wget
配置前的规划
管理节点ip: 172.1.2.10 节点id: id=1 management node
ndb数据节点1: 172.1.2.9 节点id: id=2 data node
ndb数据节点2: 172.1.2.8 节点id: id=3 data node
mysql节点2: 172.1.2.7 节点id: id=4 sql node
所有机器关闭防火墙:
[root@mysql1 mysql-cluster-gpl-7.2.10]# /etc/init.d/iptables stop
flushing firewall rules: [ ok ]
setting chains to policy accept: mangle filter [ ok ]
unloading iptables modules: [ ok ]
you have new mail in /var/spool/mail/root
[root@mysql1 mysql-cluster-gpl-7.2.10]#
系统版本:
[root@mysql1 paul]# uname -a
linux mysql1.qyer.com 2.6.18-308.el5.028stab099.3 #1 smp wed mar 7 15:56:00 msk 2012 x86_64 x86_64 x86_64 gnu/linux
you have new mail in /var/spool/mail/root
[root@mysql1 paul]#
安装管理节点与其它节点安装是一样的:
[root@mysql1 paul]# tar -zxvf mysql-cluster-gpl-7.2.10.tar.gz
[root@mysql1 paul]# cd mysql-cluster-gpl-7.2.10
[root@mysql1 mysql-cluster-gpl-7.2.10]# cmake -dcmake_install_prefix=/data/apps/mysql-5.5.12 -dwith_innobase_storage_engine=on -dwith_myisam_storage_engine=1 -dextra_charsets=all -ddefault_charset=utf8 -ddefault_collation=utf8_general_ci
出错:
cmake error at storage/ndb/cmake/ndb_require_variable.cmake:24 (message):
the variable java_runtime is required to build ndb
call stack (most recent call first):
storage/ndb/cmakelists.txt:247 (ndb_require_variable)
解决:
[root@mysql1 mysql-cluster-gpl-7.2.10]# yum install java
[root@mysql1 mysql-cluster-gpl-7.2.10]# rm cmakecache.txt
[root@mysql1 mysql-cluster-gpl-7.2.10]# java -version
java version 1.6.0_24
openjdk runtime environment (icedtea6 1.11.8) (rhel-1.35.1.11.8.el5_9-x86_64)
openjdk 64-bit server vm (build 20.0-b12, mixed mode)
[root@mysql1 mysql-cluster-gpl-7.2.10]#
又一个错:
– looking for mysql include file my_default.h – not found
– java_version:
– java_version_string:
– java_runtime: /usr/bin/java
– java_compile: java_compile-notfound
– java_archive: java_archive-notfound
cmake error at storage/ndb/cmake/ndb_require_variable.cmake:24 (message):
the variable java_compile is required to build ndb
call stack (most recent call first):
storage/ndb/cmakelists.txt:248 (ndb_require_variable)
尝试解决:
下载一个jre:
出错:[root@mysql1 paul]# rpm -ivh jre-7u15-linux-i586.rpm
preparing… ########################################### [100%]
1:jre ########################################### [100%]
unpacking jar files…
rt.jar…
error: could not open input file: /usr/java/jre1.7.0_15/lib/rt.pack
jsse.jar…
error: could not open input file: /usr/java/jre1.7.0_15/lib/jsse.pack
charsets.jar…
error: could not open input file: /usr/java/jre1.7.0_15/lib/charsets.pack
localedata.jar…
error: could not open input file: /usr/java/jre1.7.0_15/lib/ext/localedata.pack
plugin.jar…
error: could not open input file: /usr/java/jre1.7.0_15/lib/plugin.pack
javaws.jar…
error: could not open input file: /usr/java/jre1.7.0_15/lib/javaws.pack
deploy.jar…
error: could not open input file: /usr/java/jre1.7.0_15/lib/deploy.pack
[root@mysql1 paul]#
尝试下载jdk
[root@mysql1 paul]# chmod +x jdk-6u13-linux-i586.bin
[root@mysql1 paul]# ./jdk-6u13-linux-i586.bin
[root@mysql1 paul]# mv jdk1.6.0_13 /usr/local/
[root@mysql1 paul]# cd /etc/profile.d/
[root@mysql1 profile.d]# vim java.sh
#set java environment
java_home=/usr/local/jdk1.6.0_13
classpath=.:$java_home/lib/tools.jar
path=$java_home/bin:$path
export java_home classpath path
[root@mysql1 profile.d]# source java.sh
[root@mysql1 profile.d]# java -version
java version 1.6.0_13
java(tm) se runtime environment (build 1.6.0_13-b03)
java hotspot(tm) server vm (build 11.3-b02, mixed mode)
[root@mysql1 profile.d]#
成功:
– using gcc atomic builtins
– looking for mach/mach_time.h
– looking for mach/mach_time.h – not found
– looking for srandomdev
– looking for srandomdev – not found
– looking for gethrvtime
– looking for gethrvtime – not found
– looking for memset
– looking for memset – found
– performing test have_func_in_cxx
– performing test have_func_in_cxx – success
– performing test have_peercred
– performing test have_peercred – success
– configuring done
– generating done
– build files have been written to: /home/paul/mysql-cluster-gpl-7.2.10
[root@mysql1 mysql-cluster-gpl-7.2.10]#
[root@mysql1 mysql-cluster-gpl-7.2.10]# make
[root@mysql1 mysql-cluster-gpl-7.2.10]# make install
其它类似信息

推荐信息