Managing file extensions for Hue uploads

Hue restricts file extensions across all configured filesystems, allowing you to control file uploads. For instance, you can allow .csv files while blocking .exe files to enhance security.

  1. Log in to Cloudera Manager > Clusters > Hue service > Configuration.
  2. In the search, enter hue_safety_valve.ini to locate the Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini field.
  3. Set the configuration in the Hue Service Advanced Configuration Snippet (Safety Valve) for the hue_safety_valve.ini field as follows:
    [filebrowser]
    restrict_file_extensions = .sh, .exe
    #Specify file extensions that are not allowed, separated by commas. 
  4. Click Save Changes.
  5. Restart the Hue service.