1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
| [iyunv@localhost local]# cd /usr/local/infobright/
[iyunv@localhost infobright]# chmod +x ./*.sh && chmod +x bin/* && chmod +x scripts/mysql_install_db
[iyunv@localhost infobright]# cp support-files/mysql.server /etc/init.d/mysqld-ib
[iyunv@localhost infobright]# chmod +x /etc/init.d/mysqld-ib
[iyunv@localhost infobright]# cp support-files/my-ib.cnf.in /etc/my-ib.cnf#其中参数变量需要修改
…略…
[client]
…略…
default_character_set=utf8
…略…
[mysqld]
user = root#也可以用mysql用户
port = 5029
socket = /tmp/mysql-ib.sock
basedir = /usr/local/infobright
datadir = /data/infobright_data
log-error = /data/infobright_data/localhost.err
…略…
default_character_set=utf8
collation_server=utf8_general_ci
character_set_server=utf8
[iyunv@localhost infobright]# vim /etc/profile.d/infobright.sh#在没有MySQL的服务器上添加环境变量
export PATH=$PATH:/usr/local/infobright/bin
[iyunv@localhost infobright]# source /etc/profile.d/infobright.sh
[iyunv@localhost infobright]# ./scripts/mysql_install_db --force --defaults-file=/etc/my-ib.cnf --datadir=/data/infobright_data --user=root
[iyunv@localhost infobright]# cd /data/infobright_data/
[iyunv@localhost infobright_data]# vim brighthouse.ini#修改BRIGHTHOUSE引擎参数
################## BrightHouse configuration file ####################
# To change values, uncomment the parameter and specify desired value.
############ Critical Disk Settings ############
# Data Folder: check where you installed brighthouse data folder (directory this file is in) - it should be on a fast disk.
# CacheFolder - a place in which temporary database objects (memory cache) are stored.
# Should be on a fast drive, possibly not the same as data. Allow at least 20 GB of free space (depending on database size).
CacheFolder = /data/infobright_data/cache
############ Critical Memory Settings ############
# System Memory Server Main Heap Size Server Compressed Heap Size Loader Main Heap Size
# 32GB 24000 4000 800
# 16GB 10000 1000 800
# 8GB 4000 500 800
# 4GB 1300 400 400
# 2GB 600 250 320
# The default values are set to 600, 250, and 320 respectively, and performance may be impacted.
# ServerMainHeapSize - Size of the main memory heap in the server process, in MB
ServerMainHeapSize = 4000
# LoaderMainHeapSize - Size of the memory heap in the loader process, in MB.
LoaderMainHeapSize = 800
############ Logging Settings ############
# ControlMessages - Set to 2 to turn the control messages on. This is usually needed by Infobright to support performance investigation.
# ControlMessages = 0
############ Other Settings ############
# KNFolder - Directory where the Knowledge Grid is stored.
KNFolder = BH_RSI_Repository
# AllowMySQLQueryPath can be set to 0 to disable MySQL Query path or 1 to enable it.
AllowMySQLQueryPath = 1
[iyunv@localhost infobright_data]# /etc/init.d/mysqld-ib start
[iyunv@localhost infobright_data]# mysql -S /tmp/mysql-ib.sock -p
|