๐ŸŒฑ Infra/Tableau ํƒ€๋ธ”๋กœ

Amazon Linux2 ์— ํƒ€๋ธ”๋กœ(Tableau) ์„ค์น˜ํ•˜๊ธฐ

mini_world 2021. 7. 21. 20:06
๋ชฉ์ฐจ ์ ‘๊ธฐ

 

์•ˆ๋…•ํ•˜์„ธ์š” ๐Ÿ™‹‍โ™€๏ธ๐Ÿ™‹

์˜ค๋Š˜์€ ๊ฐ€์žฅ ์œ ๋ช…ํ•˜๊ณ  ๊ฐ€์žฅ ํŒŒ์›Œํ”Œํ•œ BIํˆด์ธ, ํƒ€๋ธ”๋กœ(Tableau)๋ฅผ ์„ค์น˜ํ•˜๊ณ  ๊ธฐ๋Šฅ์„ ์‚ดํŽด๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.
๋จผ์ €, ์ด๋ฒˆ ํฌ์ŠคํŒ…์—์„œ๋Š” ํƒ€๋ธ”๋กœ๋ฅผ ์„ค์น˜ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

ํƒ€๋ธ”๋กœ๋Š” ์ตœ์†Œ 4์ฝ”์–ด CPU(AWS vCPU 8๊ฐœ์— ํ•ด๋‹น) ๋ฐ 16 GB RAM์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.
ํ”„๋กœ๋•์…˜์ธ ๊ฒฝ์šฐ, 8๊ฐœ CPU ์ฝ”์–ด(16๊ฐœ AWS vCPU) ๋ฐ 64GB RAM์„ ์‚ฌ์šฉํ•  ๊ฒƒ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค!

# ๊ฐœ๋ฐœ, ํ…Œ์ŠคํŠธ ๋ฐ ํ”„๋กœ๋•์…˜ ํ™˜๊ฒฝ์„ ์œ„ํ•œ ์ธ์Šคํ„ด์Šค ํฌ๊ธฐ 

๊ทธ๋Ÿฌ๋ฉด ์„ค์น˜ํ•ด๋ด…์‹œ๋‹ค!

 


1. EC2 ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ & ์ ‘์†

์ธ์Šคํ„ด์Šค ์ƒ์„ฑ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ๋Š” ๋ณ„๋„๋กœ ์ž‘์„ฑํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
๋‹จ, Amazon Linux2 AMI๋ฅผ ์ด์šฉํ•˜์—ฌ m5.4xlarge ํƒ€์ž… ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

๊ทธ๋ฆฌ๊ณ , ํ„ฐ๋ฏธ๋„์„ ์ด์šฉํ•˜์—ฌ ์ธ์Šคํ„ด์Šค์— ์ ‘์†ํ•ฉ๋‹ˆ๋‹ค.

 

 


2. ํƒ€๋ธ”๋กœ(Tableau) ์„ค์น˜ 

๋ช…๋ น์–ด๋ฅผ ์ˆœ์„œ๋Œ€๋กœ ์ญ‰ ์ง„ํ–‰ํ•ด์ฃผ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค :)

# step1 - ์„ค์น˜ํŒŒ์ผ ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ 

[root@tableau /]# mkdir /tableau && cd /tableau
[root@tableau tableau]# wget https://downloads.tableau.com/esdalt/2021.2.0/tableau-server-2021-2-0.x86_64.rpm

 

# step2 - ์„ค์น˜ํŒŒ์ผ๋กœ ํƒ€๋ธ”๋กœ ์„ค์น˜ํ•˜๊ธฐ

[root@tableau tableau]# yum update -y && yum install ./tableau-server-2021-2-0.x86_64.rpm

 

# step3 - ํƒ€๋ธ”๋กœ ์ดˆ๊ธฐํ™” ํ•˜๊ธฐ

[root@tableau tableau]# localectl set-locale LANG=ko_KR.UTF-8
[root@tableau tableau]# cd /opt/tableau/tableau_server/packages/scripts.20212.21.0610.0336/
[root@tableau scripts.20212.21.0610.0336]# ./initialize-tsm --accepteula
[root@tableau scripts.20212.21.0610.0336]# source /etc/profile.d/tableau_server.sh

 

# step4 - ํƒ€๋ธ”๋กœ ์‚ฌ์šฉ์ž ๋งŒ๋“ค๊ธฐ

[root@tableau scripts.20212.21.0610.0336]# useradd manager -G tsmadmin
[root@tableau scripts.20212.21.0610.0336]# passwd manager
manager ์‚ฌ์šฉ์ž์˜ ๋น„๋ฐ€ ๋ฒˆํ˜ธ ๋ณ€๊ฒฝ ์ค‘
์ƒˆ  ์•”ํ˜ธ:
์ƒˆ  ์•”ํ˜ธ ์žฌ์ž…๋ ฅ:
passwd: ๋ชจ๋“  ์ธ์ฆ ํ† ํฐ์ด ์„ฑ๊ณต์ ์œผ๋กœ ์—…๋ฐ์ดํŠธ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

 

# step5 - ํƒ€๋ธ”๋กœ ์ดˆ๊ธฐ ์„ค์ • ํ•˜๊ธฐ

[root@tableau scripts.20212.21.0610.0336]# netstat -antup | grep LISTEN

์›น๋ธŒ๋ผ์šฐ์ €๋ฅผ ํ†ตํ•ด https://<EC2-EIP>:8850 ๋กœ ์ ‘์†ํ•ฉ๋‹ˆ๋‹ค.

์œ„ ๋‹จ๊ณ„์—์„œ ๋งŒ๋“ค์—ˆ๋˜ ๋ฆฌ๋ˆ…์Šค ๊ณ„์ • (manager)๋กœ ๋กœ๊ทธ์ธ ํ•ฉ๋‹ˆ๋‹ค.

ํƒ€๋ธ”๋กœ์—์„œ ์š”๊ตฌํ•˜๋Š” ์ •๋ณด๋ฅผ ๋‹ค ๊ธฐ์ž…ํ•ฉ๋‹ˆ๋‹ค.
๋งˆ์ง€๋ง‰ ๋‹จ๊ณ„์—์„œ ID ์ €์žฅ์†Œ๋ฅผ ์„ ํƒํ•˜๋Š” ๋ถ€๋ถ„์—์„œ ๋กœ์ปฌ๋กœ ์„ค์ • ํ›„ "์ดˆ๊ธฐํ™”"๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์ดˆ๊ธฐํ™” ํ”„๋กœ์„ธ์Šค๊ฐ€ ์™„๋ฃŒ ๋˜๋ฉด ๋‹ค์Œ ๋‹จ๊ณ„๋กœ ๋„˜์–ด๊ฐ‘๋‹ˆ๋‹ค.

 

# step6 - ํƒ€๋ธ”๋กœ ๊ด€๋ฆฌ์ž ๊ณ„์ • ๋งŒ๋“ค๊ธฐ

[root@scripts.20212.21.0610.0336]# tabcmd initialuser --server 'localhost:80' --username 'admin' --password 'P@ssw0rd!' --accepteula
===== redirecting to http://localhost/auth
===== ๋กœ๊ทธ์•„์›ƒ๋จ
===== ์ƒˆ ์„ธ์…˜ ๋งŒ๋“ค๊ธฐ
=====     Server:   http://localhost:80
=====     Username: admin
===== ์„œ๋ฒ„์— ์—ฐ๊ฒฐํ•˜๋Š” ์ค‘...
===== ๋กœ๊ทธ์ธ ์ค‘...
===== ์„ฑ๊ณต

 

# step7 - ํƒ€๋ธ”๋กœ ์ ‘์†ํ•˜๊ธฐ

 

 

 

 

* ์ฐธ๊ณ URL: https://help.tableau.com/current/server/ko-kr/ts_aws_single_server.htm

 

728x90