Tigergraph 图数据库学习-安装

分享 123456789987654321 ⋅ 于 2022-09-03 12:01:57 ⋅ 1300 阅读

TigerGraph安装

1.下载地址 3.2.2为稳定版本

https://dl.tigergraph.com/download.html?utm_campaign=cn_website_2021_contact&utm_medium=email&_hsmi=141663135&_hsenc=p2ANqtz-_ma7vNJhFeE_-sZvqLT0dIwaOfnDJ-JgP4BKJLPM_1wQE6xpA42qJ5-Bodfydq9hxjIfX4UY_MwM9hsAe20YJ5fVtXvQ&utm_content=141663135&utm_source=hs_automation

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
版权声明:原创作品,允许转载,转载时务必以超链接的形式表明出处和作者信息。否则将追究法律责任。来自海汼部落-123456789987654321,http://hainiubl.com/topics/75905
点赞
成为第一个点赞的人吧 :bowtie:
回复数量: 0
    暂无评论~~
    • 请注意单词拼写,以及中英文排版,参考此页
    • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`, 更多语法请见这里 Markdown 语法
    • 支持表情,可用Emoji的自动补全, 在输入的时候只需要 ":" 就可以自动提示了 :metal: :point_right: 表情列表 :star: :sparkles:
    • 上传图片, 支持拖拽和剪切板黏贴上传, 格式限制 - jpg, png, gif,教程
    • 发布框支持本地存储功能,会在内容变更时保存,「提交」按钮点击时清空
    Ctrl+Enter