Cloudera Enterprise 6.0.x | Other versions

Potential Misconfiguration Detected

This page covers various configuration errors. The goal is for all configuration checks to pass.

Continue reading:

Preferred Storage Engine

PREFERRED_STORAGE_ENGINE: We recommend MySQL InnoDB engine over MyISAM which does not support transactions.

  Warning: Talk to your DBA before changing the storage engine for the Hue database tables.
Alter Hue database tables from MyISAM to InnoDB
  1. Stop the Hue service in Cloudera Manager: go to Cluster > Hue and select Actions > Stop.
  2. Log on to the host of your MySQL server.
  3. Look for any MyISAM tables in your Hue server database:
    mysql -u root -p<root password>
    SELECT table_schema, table_name, engine 
    FROM information_schema.tables 
    WHERE engine = 'MyISAM' AND table_schema = '<hue database name>';
    quit
  4. Set the engine to InnoDB for all Hue database tables:
    # Create script, /tmp/set_engine_innodb.ddl
    mysql -u root -p<root password> -e \
    "SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=InnoDB;') \
    FROM information_schema.tables \
    WHERE engine = 'MyISAM' AND table_schema = '<hue database name>';" \
    | grep "ALTER TABLE <hue database name>" > /tmp/set_engine_innodb.ddl
    # Run script
    mysql -u root -p<root password> < /tmp/set_engine_innodb.ddl
  5. Verify that no MyISAM tables exist by rerunning the SELECT statement in step hue_trb_misconfig.html#concept_preferred_storage_engine_unique_1__li_select_myisam_tables_unique_1.
  6. Start the Hue service.

MySQL Storage Engine

MYSQL_STORAGE_ENGINE: All tables in the database must be of the same storage engine type (preferably InnoDB).

Follow the instructions in the section, Preferred Storage Engine, to ensure all Hue tables use InnoDB.

Page generated July 25, 2018.