Give a chestnut! Tableau Tips (97): Install Tableau Server on Linux Offline

发布于: 2021-05-26

Why do I need to install offline?In actual enterprise applications, our server computer is based on the requirements of data confidentiality and data security. The network environment used is an internal network and cannot access the external Internet.

. In this case, installing, deactivating, migrating or upgrading Tableau Server all need to be done offline.

Our previous 🌰 shared Tableau Desktop offline activation and Windows version Tableau Server offline activation and offline activation and deactivation of the Linux version of Tableau Server.

So, for users of Tableau Server on Linux, how do you install the product offline? Today, we will share the method again.

In this issue of "Give a Chestnut", the Tableau trick that Ada will share with you is: offline installation of the Linux version of Tableau server.

There are two main points for Tableau Server for Linux installation:

The installation process requires dependent packages & requires offline activation

Lizi used VMware to build an offline environment for Tableau Server for Linux:

Linux system is Redhat 7.3

TableauServer version is tableau-server-2018-1-0.x86_64.rpm

Specific steps are as follows:

1. Prepare the installation package

First, you need to prepare the Tableau Server installation package tableau-server-2018-1-0.x86_64.rpm.

 

2. Create an installation user

Create user:

useradd tabadmin

☞ The root user cannot be used for installation, because non-root users are used to manage TSM

Set user password:

passwd tabadmin

Set up user groups:

groupadd tsmadmin

☞ If the tsmadmin user group is not added, it will be created automatically during the installation processJoin user group:

usermod -Gtsmadmin -a tabadmin

 

3. Install the software

Give the newly created user tableau sudo permission to install the software and edit the sudoers file:

vi /etc/sudoers

Add the following under the rootALL=(ALL) ALL line:

tabadmin ALL=(ALL) ALL

Save and exit

Switch the tabadmin user to the installation command:

installation:

sudo yum - y tableau-server-2018-1-0.x86_64.rpm

During the installation process, because it is offline, the installation dependency package cannot be automatically downloaded from the mirror. During this process, the tableau server will report a missing dependency package error. At this time, we can check the error message to determine the missing dependency package.

Dependent packages missing from the external preparation steps are uploaded to the target Linux system. This example uses NetEase 163 (http://mirrors.163.com/) yum source.

Install the prepared supplementary dependencies

Re-execute sudo yum-ytableau-server-2018-1-0.x86_64.rpm

Initialize TSM after successful installation:

4. Navigate to the Scripts directory

Navigate to the Scripts directory

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

Execute the script to initialize TSM:

sudo ./initialize-tsm --accepteula

Execute environment variable script:

source /etc/profile.d/tableau_server.sh

Log in to Tableau Service Manager:

tsmlogin -u tabadmin

5. Activate and register Tableau Server

To activate the license key License offline, please read Activating Tableau Server for Linux Offline Chestnut.

To activate the trial version, please run the following command (Lizi uses the activated trial version):

tsm licenses activate -t

Sign up for Tableau Server

Activation successfully creates a registration file and generates a template that can be edited by running the following command:

tsm register --template >~/registration_file.json

Edit the template file:

viregistration_file.json

Register Tableau Server using the tsmregister command:

tsm register --file ~/registration_file.json

6. Configure the local firewall

Run the following TSM command to retrieve the port number of the tabadmincontroller port:

tsm topology list-ports

Start the firewall:

sudo systemctlstart firewalld

Add ports for gateway and tabadmincontroller ports:

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

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

Reload the firewall and verify the settings:

sudo firewall-cmd --reload

sudo firewall-cmd --list-all

7. Configure initial node settings

Configure identity store settings:

Create the following json template. In this example, local authentication is used. The access port is 80 by default, and 8001 is used in this example.

The template is created tsm settings import to pass the json file:

tsm settings import -f ~/file.json

8. Complete the initial configuration

To apply the unfinished configuration changes, execute the following command:

tsm pending-changes apply

Initialize and start Tableau Server

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

Create initial administrative user

tabcmd initialuser --server’localhost:8001’ --username ‘admin’ --password ‘admin’

The installation is complete, let's start the journey of Tableau Server on Linux!

Have you gotten the Tableau skills in this issue? Give it a try!