Tableau server的Linux&Windows版本安装

.Linux版本安装:

1.系统要求

首先服务器要满足最低的硬件要求,否则无法安装报错。

 

CPU

RAM

可用磁盘空间

最低硬件要求

2 内核

8 GB

15 GB

2.创建安装用户

安装用户必须使用非root用户来安装否则也无法安装。

建立新用户 tabadmin 并分配给用户组 tsmadmin,依次操作命令

创建用户:useradd tabadmin

设置用户密码:passwd tabadmin

设置用户组:groupadd tsmadmin

加入用户组:usermod -G tsmadmin -a tabadmin

3. 安装软件

给刚创建的用户tabadmin sudo权限用来安装软件

vi /etc/sudoers 文件

root ALL=(ALL) ALL行下添加以下内容:tabadmin ALL=(ALL) ALL保存退出

切换tabadmin用户进行安装命令下:

安装:sudo yum install tableau-server-10-5-1.x86_64.rpm

中间可能涉及系统依赖文件的安装的确认,默认输入y确定安装。

安装成功后启动tsm

cd /opt/tableau/tableau_server/packages/scripts.10500.18.0210.2209/

执行脚本:sudo ./initialize-tsm --accepteula

4. 激活并注册Tableau Server

   首先要exit命令退出来关闭刚刚的终端连接,然后su tabadmin再次使用该用户操作

   tsm命令登陆

      tsm login -u tabadmin

   激活Key(必须有License Key)

      tsm licenses activate -k Licensekey

   出现提示示激活成功

创建注册文件

tsm register --template > /home/tabadmin/registration_file.json

修改注册文件vi /home/tabadmin/registration_file.json,注册文件模板如下:

{

  "zip" : "03079",

  "country" : "USA",

  "city" : "Salem",

  "last_name" : "Smith",

  "industry" : "Software",

  "eula" : "yes",

  "title" : "Software Applications Enginner",

  "phone" : "5556875309",

  "company" : "Example",

  "state" : "NH",

  "department" : "Engineering",

  "first_name" : "Jason",

  "email" : "@163.com"

}

注册文件传递给 tsm 以注册

tsm register --file /home/tabadmin/registration_file.json

5.配置防火墙

sudo systemctl start firewalld

将默认区域设置为公共区域。运行以下命令:

sudo firewall-cmd --set-default-zone=public

针对网关端口和 tabadmincontroller 端口添加端口。运行以下命令:

sudo firewall-cmd --permanent --add-port=8001/tcp

sudo firewall-cmd --permanent --add-port=8850/tcp

如果又需要也可以再添加别的端口

重新加载防火墙并验证设置。运行以下命令:

sudo firewall-cmd --reload

sudo firewall-cmd --list-all

6.初始化安装及配置启动

身份验证与端口设置(这次用本地身份验证)

vim /home/tabadmin/local_auth_file.json

{

   "configEntities": {

      "gatewaySettings": {

         "_type": "gatewaySettingsType",

         "port": 8001,

         "firewallOpeningEnabled": true,

         "sslRedirectEnabled": true,

         "publicHost": "localhost",

         "publicPort": 8001

      },

      "identityStore": {

         "_type": "identityStoreType",

         "type": "local",

         "nickname": "EXAMPLE"

      }

    }

}

传递配置文件

tsm settings import -f /home/tabadmin/local_auth_file.json

应用更改

tsm pending-changes apply

提示应用更改成功。

  

初始化 Tableau Server,这个过程时间较长需要耐心等待 。

tsm initialize --start-server --request-timeout 1800

启动服务器后还需要添加管理员账户

tabcmd initialuser --server 'localhost:8001' --username 'admin' --password 'admin'

然后本机浏览器访问localhost:8001即可。

问题1:虽然能登陆但是在登陆进去链接数据库(mysql)提示错误如下


解决方法参见:https://www.tableau.com/zh-cn/support/driversMySQL

Tableau Server: 10.5驱动程序可从 MySQL 网站获取:

https://dev.mysql.com/downloads/connector/odbc/

从下拉列表中选择您的操作系统(服务器为centos7.2但是没有centos选项所以我选择的是redhat的驱动mysql-connector-odbc-5.3.10-1.el7.x86_64.rpm。选择 64 位版本的驱动程序。

然后运行以下命令:

sudo yum install mysql-connector-odbc-5.3.10-1.el7.x86_64.rpm

安装驱动程序后,将以下部分追加到 /etc/odbcinst.ini 文件(如果不存在则添加,我在安装时发现文件有下面代码所以没有添加

[MySQL ODBC 5.3 Unicode Driver]

Driver          = /usr/lib64/libmyodbc5w.so

UsageCount      = 1  

问题2tableau server 安装好后也能登陆控制台,但是web应用无法向tableau server请求服务时请求不到数据

解决方法就是向 Tableau Server 添加受信任的 IP 地址或主机名称

Linux版添加方法就是登陆tsm执行添加受信任的ip

su tabadmin

tsm login -u tabadmin

然后执行如下命令

tsm authentication trusted configure -th "192.168.1.101"

参见:http://onlinehelp.tableau.com/current/server-linux/zh-cn/trusted_auth_config_linux.htm

.Windows版本安装:

1.下载 Tableau Server 安装文件:TableauServer-64bit-10-4-3.exe

2.双击安装可执行文件,按照屏幕指示完成安装并安装应用程序

3. 在安装过程中可能出现如下情况:

 无法启动此程序,因计算机中丢失api-ms-win-crt-runtime-1-1-0.dll.

请使用360系统扫描修复或系统更新。

4. 如果还是不行,需要下载几个补丁。

下载这个补丁

https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=42162 

再下载这个几个补丁

https://www.microsoft.com/zh-cn/download/details.aspx?id=42334

5. 解决后进入C:\Program Files\Tableau\Tableau Server目录重新

执行Setup-Server-Internal-x64

6.   安装过程比较慢,安装完后会弹出配置

 table server Configuration界面

添加服务器用户名密码,配置访问端口即可。

7. 初始配置完成后在浏览器访问:http://localhost:8001


猜你喜欢

转载自blog.csdn.net/Despredao/article/details/79576486