Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version r0871

...

  1. After you have performed the above configuration, execute the following to initialize the Docker container directories:

    Code Block
    docker-compose -f <docker-compose-filename>.yaml run --no-deps --rm trifacta initfiles
  2. When the above is started for the first time, the following directories are created on the localhost:

    DirectoryDescription
    ./trifacta-data

    Used by the

    D s item
    itemcontainer
    to expose the conf and logs directories.

    /trifacta-licensePlace the license.json  file in this directory.
  3. Generate .sql file containing sql statements to create users and databases necessary for 

    D s item
    itemservices
    :

    Code Block
    docker-compose -f <docker-compose-filename>.yaml run --no-deps --rm trifacta initdatabase
  4. The following file is created on localhost:

    DirectoryDescription
    ./trifacta-data/db_setup/trifacta_<database_type>_DB_objects.sql

    Used by the

    D s item
    itemcontainer
    to expose the conf and logs directories.

  5. Create users and database:
    • Postgres database:

      Code Block
      docker-compose -f <docker-compose-filename>.yaml run postgresdb sh -c "PGPASSWORD=<DB_ADMIN_PASSWORD> psql --username=<DB_ADMIN_USERNAME> --host=<DB_HOST_NAME> --port=<DB_HOST_PORT> --dbname=postgres -f /opt/trifacta/db_setup/trifacta_<DB_TYPE>_DB_objects.sql"
    • MySQL database:

      Code Block
      docker-compose -f <docker-compose-filename>.yaml run mysqldb sh -c "mysql --host=<DB_HOST_NAME> --port=<DB_HOST_PORT> --user=<DB_ADMIN_USERNAME> --password=<DB_ADMIN_PASSWORD> --database=mysql < /opt/trifacta/db_setup/trifacta_mysql_<DB_TYPE>_objects.sql"
  6. Run configuration and database migrations:

    Info

    NOTE: During installation, the following command also creates required tables in the above databases.

    Code Block
    docker-compose -f <docker-compose-filename>.yaml run --no-deps --rm trifacta run-migrations
  7. Start 

    D s item
    itemcontainer
    :

    Code Block
    docker-compose -f <docker-compose-filename>.yaml up -d trifacta
Info

NOTE: If the

D s item
itemcontainer
is running but nothing is listening at port 3005, please confirm that you have started the container using the appropriate docker-compose commands.

...