Managing file extensions for Hue uploads

You can allow and restrict file extensions across all configured file systems in Hue to control file uploads. 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 #Specify file extensions that are not allowed, separated by commas. 
    allow_file_extensions = .tsv, .csv  #Specify file extensions that are allowed, separated by commas. 
  4. Click Save Changes.
  5. Restart the Hue service.