Hue configurations in CDP Runtime

Cloudera Manager exposes properties that allow you to insert custom configuration text into XML configuration, property, and text files, or into an environment. The configuration snippet mechanism is intended for use in cases where there is a configuration setting that is not exposed as a configuration property in the Cloudera Manager web interface. Configuration snippets generally override normal configuration. You can configure custom properties for Hue by specifying them in the Advanced Configuration Snippet (Safety valve) field in Cloudera Manager.

The following table lists the safety valve parameters supported by Hue in CDP Runtime:
Parameter Description
[[desktop]]
app_blacklist
Used to add or remove applications, such as the File Browser, Impala, Hive, Oozie, and so on from the blocked list of applications.
[desktop]
   [[session]]
    ttl=[***NUMBER-OF-SECONDS***]
Used to configure the duration of a user session. The ttl property determines the length of time that the cookie with the user's session ID lives before expiring. After the ttl setting is reached, the user's session expires whether it is active or not.

The default setting for ttl is 1,209,600 seconds, which equals two weeks.

[jobbrowser]
[[query_store]]
server_url=[***QUERY-PROCESSOR-URL***]

Used to display the Queries tab for Hive and Impala on the Job Browser page. This configuration is enabled by default and is not exposed in the Hue safety valve.

However, to hide the Queries tab, you can override the configuration by adding the following lines in Cloudera Manager > Clusters > Hue > Configuration > Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini:
[jobbrowser]
[[query_store]]
is_enabled=false

To enable the Queries tab, set is_enabled to true.

[aws]
[[aws_accounts]]
[[[default]]]
access_key_id=[***AWS-ACCESS-KEY***]
secret_access_key=[***SECRET-ACCESS-KEY***]
region=[***AWS-REGION***]
Used to enable the S3 File Browser for Hue without IDBroker.
[aws]
has_iam_detection=true
[[aws_accounts]]
[[[default]]]
region=[***AWS-REGION***]
Used to enable the S3 File Browser for Hue with IDBroker.
[desktop]
[azure]
  [[azure_accounts]]
    [[[default]]]
      client_id=[***AZURE-ACCOUNT-CLIENT-ID***]
      client_secret=[***AZURE-ACCOUNT-CLIENT-SECRET***]
      tenant_id=[***AZURE-ACCOUNT-TENANT-ID***]

    [[abfs_clusters]]
      [[[default]]]   
		fs_defaultfs=abfs://[***CONTAINER-NAME***]@[***AZURE-STORAGE-ACCOUNT-NAME***]>.dfs.core.windows.net
              webhdfs_url=https://[***AZURE-STORAGE-ACCOUNT-NAME***].dfs.core.windows.net/
Used to enable the ABFS File Browser for Hue without IDBroker.
[desktop]
[azure]
[[abfs_clusters]]
[[[default]]]   
	fs_defaultfs=abfs://[***CONTAINER-NAME***]@[***AZURE-STORAGE-ACCOUNT-NAME***]>.dfs.core.windows.net
       webhdfs_url=https://[***AZURE-STORAGE-ACCOUNT-NAME***].dfs.core.windows.net/
Used to enable the ABFS File Browser for Hue with IDBroker.
[filebrowser]
remote_storage_home=s3a://[***S3-BUCKET-NAME***]
(Optional) Used to set a specific home directory path for your S3 bucket.
[filebrowser] 
show_upload_button
Used to enable or disable file upload. Valid values: true and false.
[filebrowser]
show_download_button
Used to enable or disable file download. Valid values: true and false.
[filebrowser]
max_file_size_upload_limit=[***FILE-SIZE-IN-BYTES***]
Used to specify the maximum permitted file size that you can upload using Hue. The default is -1, which indicates no size limit.
[desktop]
enable_download
Used to enable or disable the downloading of results. Valid values: true and false.
[desktop]
[[auth]]
session_idle_timeout=[***TIME-IN-SECONDS***]
Logs out users after the specified time of inactivity in seconds. For example, 600 seconds.
[search]
download_limit=[***DOWNLOAD-LIMIT***]
Used to configure the permitted download limit for downloading records from the Solr Search dashboard. The default limit is 1000. The maximum supported download limit is 15000.

Contact Cloudera Support if you are required to use a configuration snippet that is not explicitly documented.