6.0
/
This document introduces how to connect to the Apache Kylin database.
Download the driver package and upload it to FineBI. For details, see the "Uploading the Database Driver" section in Driver Management.
Note: To upload the driver package, you need to decompress the Log JAR.rar file below to obtain the log JAR file and upload it to FineBI together with the driver package.
1.5.0 and 2.2
kylin-jdbc-1.6.0 .jar
日志jar.rar
Before connecting FineBI to the database, you need to collect the following information:
IP address and port number of the database server
Database name
Username and password of the database
Schema of the database to be connected
1. Log in to FineBI as the admin, choose System Management > Data Connection > Data Connection Management, click Create, and select Data Connection, as shown in the following figure.
2. Find the Apache Kylin database, as shown in the following figure.
3. Select Custom from the Driver drop-down list, select the driver uploaded in the "Version/Driver" section, and enter the connection information collected in the "Connection Information Collection" section.
Click Click to Connect Database, and select the database schema (Schema is available after successful connection.), as shown in the following figure.
4. Click Test Connection. If the connection is successful, click Save, as shown in the following figure.
Two methods are available to add database tables to FineBI.
Adding Database Tables
Adding SQL Datasets
Regardless of the configured time zone, Kylin enforces GMT (UTC+0) timestamp conversion when outputting data, resulting in a consistent 8-hour offset for timezone-aware systems. When you query data in the Kylin database, if the result is 2018-01-01, the actual data retrieved from the database is 2017-12-31 due to time zone discrepancy.
Therefore, you need to manually add an 8-hour offset in SQL statements.
Since some functions are not supported by the Kylin database, data tables with direct connection attributes are subject to the following restrictions.
1. When you retrieve data tables with direct connection attributes from the Kylin database, note that the following functions are not supported due to inherent limitations of the Kylin database.
CHAR - Returning the Character Specified by a Number
CODE - Returning a Numeric Code for the First Character in a Text String
REPEAT - Repeating a Text a Specified Number of Times
RANDBETWEEN - Returning a Random Integer between Two Values
INDEXOF - Returning the Character at a Specified Position in the Text
2. You cannot perform Left Join or Right Join operations on DATE and TIMESTAMP fields from data tables with direct connection attributes.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy