Available in VPC
Tableau is a widely used representative BI solution that allows you to visualize data quickly and easily.
This guide shows how to integrate Tableau with NAVER Cloud Platform's Cloud Hadoop.
For more information on Tableau, visit the official Tableau website.
Preliminary task
- Create a Cloud Hadoop cluster.
- For more information about how to create a Cloud Hadoop cluster, see Getting started.
- Create Object Storage.
- For more information about creating Object Storage, see the Object Storage overview guide.
- Create a Windows server.
- For more information about creating a Windows server, see Getting started guide.
- Set up an ACG.
- Enter the Windows server IP in the Cloud Hadoop ACG access source and add port 8286 to the allowed ports.

- Enter the Windows server IP in the Cloud Hadoop ACG access source and add port 8286 to the allowed ports.
We recommend that you create the Cloud Hadoop and Windows servers in the same VPC.
Create a table in Hive
-
Upload a sample data file to Object Storage.
- Download the Sample data file and unzip it.
- Navigate to Object Storage > Bucket Management, and then upload the
AllstarFull.csvfile.

-
Create a table in the Hive Editor.
DROP table allstarfull;
CREATE external TABLE if not EXISTS `allstarfull` (
`playerID` VARCHAR(20),
`yearID` INT,
`gameNum` INT,
`gameID` VARCHAR(30),
`teamID` VARCHAR(4),
`lgID` VARCHAR(4),
`GP` INT,
`startingPos` INT
)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
location 's3a://deepdrive-hue/input/lahman2012/allstarfull';
- Use a simple query to verify that the table was created correctly.
SELECT * FROM allstarfull;
Add the Presto connector
- Navigate to the Presto > [CONFIGS] tab menu, and then add the connector in Advanced trino.connectors.properties.
- We need to add the Hive connector, so in the connectors.to.add, enter the following:
{"hive":["connector.name=hive-hadoop2",
"hive.metastore.uri=thrift://<METASTORE-HOST-IP>:9083",
"hive.config.resources=/etc/hadoop/conf/core-site.xml,/etc/hadoop/conf/hdfs-site.xml",
"hive.s3.use-instance-credentials=false",
"hive.s3.aws-access-key=<API-ACCESS-KEY>",
"hive.s3.aws-secret-key=<API-SECRET-KEY>",
"hive.s3.endpoint=https://kr.object.private.ncloudstorage.com"]
}

<METASTORE-HOST-IP> is the private IP address of the master node (m-001). You can check it by going to the Ambari UI > Hosts menu.
- A restart is required to apply the new configuration. Click [ACTIONS] > Restart All in the upper right corner, and then click [CONFIRM RESTART ALL] in the popup window.
For more information about using Presto to analyze data stored in a Hive data warehouse, see the Analyzing Hive warehouse data with Presto guide.
Install Tableau
The following Tableau installation process is carried out on a Windows server:
- Download Tableau Desktop from the Tableau website.
- Download the Presto JDBC driver (presto-jdbc-0.268.jar) from the Presto website.
- Move the Presto JDBC driver to the Drivers directory in the path where Tableau is installed.

In addition to Presto, Tableau can connect to various data sources, including spreadsheets and databases. See the Tableau Desktop and web authoring help for supported connectors.
Install the nginx-ssl.crt certificate
-
Import the /etc/nginx/ssl/nginx-ssl.crt certificate from the Cloud Hadoop Edge node to your Windows server.
- For instructions on how to access the edge node, see Access a cluster node with SSH.

- For instructions on how to access the edge node, see Access a cluster node with SSH.
-
Click on the nginx-ssl.crt certificate and click [Install certificate].

-
Select Local Computer and click [Next].

-
Select Save all certificates to the following store and select a certificate store:
- Set the certificate store to Trusted Root Certification Authorities.

- Set the certificate store to Trusted Root Certification Authorities.
-
Click [Finish] to complete certificate installation.

Access Presto from Tableau Desktop
-
Run Tableau Desktop, then navigate to Connect to server > Details > Presto.

-
Enter your access information and click [Log in].
- Cloud Hadoop version 2.0 or higher
Access information - Server: Domain of the Presto cluster. - Port: Port of the Presto coordinator (8285). - Catalog: Name of the catalog to use. - Schema: Name of the schema to use. - Username: Username to use. - SSL required: Uncheck.
- Cloud Hadoop version 1.9 or lower
Access information - Server: Domain of the Presto cluster. - Port: Port of the Presto coordinator (8286). - Catalog: Name of the catalog to use. - Schema: Name of the schema to use. - Username: Username to use. - SSL required: Check.
Check tables and records
-
Click [Include] and search to check the tables in the schema.

-
Click [Update now] to load the data into the tables.

-
You can create a new sheet and visualize it simply by dragging and dropping.

For more information on using Tableau, visit the official Tableau website.