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.
Log in to Cloudera Manager > Clusters > Hue service > Configuration.
In the search, enter hue_safety_valve.ini to locate the
Hue Service Advanced Configuration Snippet (Safety Valve) for
hue_safety_valve.ini field.
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.