Enabling stored procedures for Hive on CDP Private Cloud Base

To create, edit, and drop procedures and functions that are written in Hive Hybrid Procedural SQL (HPL/SQL) using the Hue query editor, you must enable the hplsql option in the Hue Advanced Configuration Snippet.

  1. Log in to Cloudera Manager as an administrator.
  2. Go to Clusters > Hue > Configuration and add the following lines in the Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini field:
    [notebook]
      [[interpreters]]
        [[[hive]]]
          name=Hive
          interface=hiveserver2
        [[[hplsql]]]
          name=Hplsql
          interface=hiveserver2
  3. Click Save Changes.
  4. Restart the Hue service.
  5. Go to Clusters > Hive on Tez > Configuration and add the following property name and its value in the Hive Service Advanced Configuration Snippet (Safety Valve) for hive-site.xml field:
    Name: hive.security.authorization.sqlstd.confwhitelist.append
    Value: QUERY_EXECUTOR|HPLSQL
  6. Click Save Changes.
  7. Restart the Hive on Tez service.