Managing file extensions for Hue files

Hue now allows you to control both allowed and restricted file type extensions for Hue file creation, uploads and renaming the files. For instance, you can allow .csv files while blocking .exe files.

  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  #file extensions that are not allowed, separated by commas. 
    allow_file_extensions=.tsv, .csv  #file extensions that are allowed, separated by commas.
    
  4. Click the Save Changes button.
  5. Restart the Hue service.