Integrate database (Cloud)
Refer to the following instructions to integrate Unravel with a database other than the default PostgreSQL shipped with the installer.
You can integrate Unravel managed and an external database for usage with Unravel. Unravel supports MySQL, MariaDB, and PostgreSQL (Postgres). Check the compatibility matrix for the versions of MySQL, MariaDB, and Postgres compatible with the corresponding Unravel platform version.
MySQL
You can integrate Unravel-managed MySQL as well as external MySQL with Unravel.
Unravel managed MySQL
Important
The following packages must be installed for fulfilling the OS level requirements for MySQL:
numactl-libs (for libnuma.so)
libaio (for libaio.so)
To integrate with Unravel managed MySQL, do the following:
Create a
mysql
directory in/tmp
. Provide permissions and make them accessible to the user who installs Unravel.Download the following tar files for MySQL/MariaDB server to
/tmp/mysql
directory:mysql-5.7.27-linux-glibc2.12-x86_64.tar.gz
mysql-connector-java-5.1.48.tar.gz
Run the setup command, as an Unravel user, to set up Unravel with MySQL database:
<unravel_installation_directory>/unravel/versions
<Unravel version>
/setup --enable-<platform>
--extra /tmp/mysql #Forplatform
specify databricks or emr
This will configure and manage MySQL for usage with Unravel.
External MySQL
For configuring an external MySQLdatabase with Unravel, you must provide the JDBC connector. This can either be as a tar file or as a jar file.
To integrate Unravel with an external database, do the following:
Create unravel schema and user on the target database where the unravel user should have full access to the schema.
## For example: CREATE DATABASE unravel_mysql_prod; CREATE USER 'unravel'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON unravel_mysql_prod.* TO 'unravel'@'localhost';
Create a directory for MySQL in
/tmp
. Provide permissions and make them accessible to the user who installs Unravel.Add the JDBC connector to
/tmp/<MySQL-directory>/<jdbcconnector>
directory. This can be either a tar file or a jar file.Run the setup command, as an Unravel user, to set up Unravel with MySQL database:
With SSL
<unravel_installation_directory>/unravel/versions/
<Unravel version>
/setup --enable-<platform>
--extra /tmp/<MySQL-directory> --external-database-ssl mysql<HOST>
<PORT>
<SCHEMA>
<USERNAME>
#Forplatform
specify databricks or emr ##TheHOST
,PORT
,SCHEMA
,USERNAME
, are optional fields and are prompted if missing.Without SSL
<unravel_installation_directory>/unravel/versions/
<Unravel version>
/setup --enable-<platform>
--extra /tmp/<MySQL-directory> --external-database mysql<HOST>
<PORT>
<SCHEMA>
<USERNAME>
#Forplatform
specify databricks or emr ##TheHOST
,PORT
,SCHEMA
,USERNAME
, are optional fields and are prompted if missing.You are prompted to enter the password. Type the password, which will be masked, and press ENTER.
This will configure and manage external MySQL for usage with Unravel.
Note
In the case of MySQL 8.0, the client does not support the authentication protocol requested by the server, and there can be a failed connection to the database. Run the following to resolve this authentication issue:
ALTER USER'unravel'
@'unravel-host'
IDENTIFIED WITH mysql_native_password BY'password'
;flush privileges;
Where unravel
is your user, unravel-host
is the URL, and password
is your password.
MariaDB
You can integrate Unravel with MariaDB by providing a Java JDBC connector.
Unravel managed MariaDB
Important
The following packages must be installed for fulfilling the OS level requirements for MariaDB:
numactl-libs (for libnuma.so)
libaio (for libaio.so)
To configure with Unravel managed MariaDB, do the following:
Create a
mariadb
directory in/tmp
. Provide permissions and make them accessible to the user who installs Unravel.Download the following tar files for mariadb server to
/tmp/mariadb
directory:mariadb-10.4.13-linux-x86_64.tar.gz
mariadb-java-client-2.6.0.jar
Run the setup command, as an Unravel user, to set up Unravel with MariaDB database:
<unravel_installation_directory>/unravel/versions/
<Unravel version>
/setup --enable-<platform>
--extra /tmp/mariadb #Forplatform
specify databricks or emr
This will configure and manage MariaDB for usage with Unravel.
External MariaDB
For configuring an external MariaDB database with Unravel, you must provide the JDBC connector. This can either be as a tar file or as a jar file.
To integrate Unravel with external MariaDB, do the following:
Create unravel schema and user on the target database where the unravel user should have full access to the schema.
## For example: CREATE DATABASE unravel_mariadb_prod; CREATE USER 'unravel'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON unravel_mariadb_prod.* TO 'unravel'@'localhost';
Create a directory for MariaDB in
/tmp
. Provide permissions and make them accessible to the user who installs Unravel.Add the JDBC connector to
/tmp/<MariaDB-directory>/<jdbcconnector>
directory. This can be either a tar file or a jar file.Run the setup command, as Unravel user, to set up Unravel with an external MariaDB database:
With SSL
<unravel_installation_directory>/unravel/versions/
<Unravel version>
/setup --enable-<platform>
--extra /tmp/<MariaDB-directory>
--external-database-ssl mariadb<HOST>
<PORT>
<SCHEMA>
<USERNAME>
#Forplatform
specify databricks or emr ##TheHOST
,PORT
,SCHEMA
,USERNAME
are optional fields and are prompted if missing.Without SSL
<unravel_installation_directory>/unravel/versions/
<Unravel version>
/setup --enable-<platform>
--extra /tmp/<MariaDB-directory>
--external-database mariadb<HOST>
<PORT>
<SCHEMA>
<USERNAME>
#Forplatform
specify databricks or emr ##TheHOST
,PORT
,SCHEMA
,USERNAME
are optional fields and are prompted if missing.You are prompted to enter the password. Type the password, which will be masked, and press ENTER.
This will set up Unravel with an external MariaDB.
PostgreSQL
You can configure external PostgreSQL, as well as, the Unravel managed PostgreSQL.
Unravel managed PostgreSQL
To configure the Unravel managed PostgreSQL database, run the setup command:
<unravel_installation_directory>/unravel/versions/<Unravel version>
/setup --enable-<platform>
#Forplatform
specify databricks or emr
This will set up Unravel with PostgreSQL.
External PostgreSQL
To configure external PostgreSQL, do the following:
Create unravel schema and user on the target database where the unravel user should have full access to the schema.
Run the setup command from the installation directory:
<unravel_installation_directory>/unravel/versions/
<Unravel version>
/setup --enable-<platform>
--external-database postgresql<HOST>
<PORT>
<SCHEMA>
<USERNAME>
#Forplatform
specify databricks or emr ##TheHOST
,PORT
,SCHEMA
,USERNAME
are optional fields and are prompted if missing.You are prompted to enter the password. Type the password, which will be masked, and press ENTER.
This will set up Unravel with an external PostgreSQL.