Installing Detect in Console Mode
The console mode allows you to install Detect from a command-line window. You can select various options in the command-line window to complete tasks such as selecting the products to install or selecting the home directory for the installation.
Before you begin
Before you install Detect, ensure that you have configured the following.
- An application server profile
- A database schema
To display the installer screens correctly in console mode, configure your terminal
software to support UTF-8 character encoding. Other character
encodings, such as ANSI, do not render the text correctly, and some
information is not readable with these encodings.
Procedure
- Open a command-line prompt window and navigate to the directory where you have saved the Unica installer and the product installers.
-
Complete one of the following actions to run the Unica installer.
- For Linux™, invoke the
HCL_Unica_installer_full_name.sh
file.
For example: HCL_Unica_Installer_x.x.x.x.sh
- For Linux™, invoke the
HCL_Unica_installer_full_name.sh
file.
-
Run the Unica installer file.
For example: HCL_Unica_Installer_x.x.x.x.sh
-
Follow the directions that are displayed in the command-line prompt. Use the
following guidelines when you must select an option in the command-line
prompt:
- The default options are defined by the symbol [X].
- To select or clear an option, type the number that is defined for the
option, and then press
Enter.
For example, suppose that the following list displays the components that you can install:- 1 [ ] Unica Platform
- 2 [X] Unica Detect
- The Unica installer launches the Unica Platform installer during the installation process. Follow the instructions in the command-line prompt window of the Platform installer.
- If the installer prompts for Platform Installation, refer to Unica Platform Installation guide.
-
Complete the Detect
console prompts.
- Accept the license agreement and specify the installation directory.
- Select default product components for installation.
- Provide product database connection values for the Detect MariaDB schema, including host, port, database name, and credentials.
- When prompted for datasource creation, provide the Tomcat installation
directory so the installer can place
detect.xmlunder<Tomcat_Home>/conf/Catalina/localhost.<?xml version="1.0"?> <Context docBase="<WAR_FILE_PATH>"> <Resource name="UnicaDetectDS" auth="Application" type="javax.sql.DataSource" factory="com.unica.manager.tomcat.utils.TomcatDSFactory" maxActive="30" maxIdle="10" testOnBorrow="true" validationQuery="SELECT 1" maxWait="10000" username="<DB_USERNAME>" password="<DB_PASSWORD>" driverClassName="org.mariadb.jdbc.Driver" url="jdbc:mariadb://<hostname:port>/detect"/> <Resource name="UnicaPlatformDS" auth="Application" type="javax.sql.DataSource" factory="com.unica.manager.tomcat.utils.TomcatDSFactory" maxActive="30" maxIdle="10" testOnBorrow="true" validationQuery="SELECT 1" maxWait="10000" username="<DB_USERNAME>" password="<DB_PASSWORD>" driverClassName="org.mariadb.jdbc.Driver" url="jdbc:mariadb://<hostname:port>/plat"/> </Context> - Provide additional runtime values such as network domain, host, and application port.
- Review the pre-installation summary and continue with deployment.
- Select the Do not create an EAR file for deployment option, when
prompted and confirm installation completion.Note: In the 26.1.0 version, Detect doesn't support EAR package.
-
After you enter quit in the Detect installer command-line
prompt window, the window shuts down. Follow the instructions in the
command-line prompt window of the Unica installer to complete the installation
of Detect.
Note: If any error occurs during the installation, a log file is generated. You must exit the installer to view the log file.