TigerGraph安装
1.下载地址 3.2.2为稳定版本
2.解压
# tar -zxvf tigergraph-3.2.2-offline.tar.gz -C /usr/local
3.安装
3.1交互式安装
3.1.1安装
#安装net-tools 不安装报错
yum install net-tools
#创建日志目录
[root@localhost ~]# cd /tmp/tigergraph_logs
[root@localhost tigergraph_logs]# touch precheck_res.log
[root@localhost tigergraph_logs]#cd tigergraph-3.2.2-offline
[root@localhost tigergraph_logs]# ./install.sh
3.1.2输入交互信息
#1对许可条款和条件的同意
Your agreement to the License Terms and Conditions
#2下载页面的激活码
Please enter the license key, or hit ENTER to set it later: #D70438144F9EECCCFD613169EC266BC0EEBEB1B8B19EE2F405F782E1291516C5
#3拥有和管理TigerGraph平台的Linux用户的用户名
The default user who will own and run TigerGraph platform: tigergraph. Please enter the new value, or hit ENTER to skip: #root
#4设置应用程序文件夹的绝对路径。
The default AppRoot of TigerGraph platform: /root/tigergraph/app. Please enter the new value, or hit ENTER to skip:#/root/tigergraph/app
#设置数据目录
The default DataRoot of TigerGraph platform: /root/tigergraph/data. Please enter the new value, or hit ENTER to skip: #/root/tigergraph/data
#设置日志目录
The default LogRoot of TigerGraph platform: /root/tigergraph/log. Please enter the new value, or hit ENTER to skip: #/root/tigergraph/log
#设置临时目录
The default TempRoot of TigerGraph platform: /root/tigergraph/tmp. Please enter the new value, or hit ENTER to skip: /root/tigergraph/tmp
#ssh端口
The default ssh port used in TigerGraph platform: 22. Please enter the new value, or hit ENTER to skip: 22
#设置安装的节点数
Please enter the number of node(s) that the TigerGrpah platform will be installed on (e.g. 3): #tiger1:192.168.92.138
#设置ip
The default ip address of single node installation: 127.0.0.1. Please enter the new IP address of node m1 (e.g. 192.168.1.1), or hit ENTER to skip: 192.168.92.138
#默认参数值:
安装的默认根目录将/home/tigergraph/tigergraph包含 App/Data/Log/Temp 文件。
应用路径: /home/tigergraph/tigergraph/app
数据路径: /home/tigergraph/tigergraph/data
日志路径: /home/tigergraph/tigergraph/log
临时路径: /home/tigergraph/tigergraph/tmp
安装的根目录(称为<tigerGraph_root_dir>)是tigergraph位于tigergraph 用户主目录中的文件夹/home/tigergraph/tigergraph。
3.2非交互式安装
3.2.1解压
tar -xzf tigergraph-3.2.2-offline.tar.gz -C /usr/local
3.2.2 配置安装设置
install_conf.json
3.2.3配置文件
{
"BasicConfig": {
"TigerGraph": {
"Username": "tigergraph",
"Password": "tigergraph",
"SSHPort": 22,
"PrivateKeyFile": "",
"PublicKeyFile": ""
},
"RootDir": {
"AppRoot": "/home/tigergraph/tigergraph/app",
"DataRoot": "/home/tigergraph/tigergraph/data",
"LogRoot": "/home/tigergraph/tigergraph/log",
"TempRoot": "/home/tigergraph/tigergraph/tmp"
},
"License": "D70438144F9EECCCFD613169EC266BC0EEBEB1B8B19EE2F405F782E1291516C5",
"NodeList": [
"m1: 127.0.0.1"
]
},
"AdvancedConfig": {
"ClusterConfig": {
"LoginConfig": {
"SudoUser": "sudoUserName",
"Method": "P[or K]",
"P": "<sudo_user_password>",
"K": "</path/to/my_key.pem_rsa>"
},
"ReplicationFactor": 1
}
}
}
3.2.4配置文件字段说明:
3.2.5执行
#使用-n 启动非交互式的安装
sudo ./install.sh -n
4.验证
[root@localhost ~]# su tigergraph
[tigergraph@tiger1 root]$ gadmin status
# 由于尚未加载图形数据,因此 GSE 和 GPE 将显示"Warmup"
5.命令行参数选项
# Command-line options for install.sh
Usage:
./install.sh [-n] [-u <user>] [-p <password>] [-r <tigergraph_root_dir>] [-l <license_key>] [-F] [-N]
./install.sh -h
Options:
-h -- Show help information
-u -- Username of Linux user to create [default: tigergraph]
-p -- Password of Linux user to create [default: tigergraph]
-l -- TigerGraph license key
-n -- Non-interactive option: suppress prompts, and install
using default config
-F -- Set iptables (firewall) rules to open TCP ports among cluster nodes
-N -- Set NTP system time synchronization among cluster nodes