Created 01-18-2018 09:28 AM
Hi,
Is there any way to disable the 'Download' button in Namenode web UI ?
Created 01-18-2018 01:28 PM
On the NameNode host you will find a file something like this which has the "download_url" value defined as following:
# grep 'Download' /usr/hdp/2.6.1.0-129/hadoop-hdfs/webapps/hdfs/explorer.html <a id="file-info-download">Download</a>
- Just change that line as following:
<a href="">Download</a>
Example:
# grep -A 1 'Download' /usr/hdp/2.6.1.0-129/hadoop-hdfs/webapps/hdfs/explorer.html <!--a id="file-info-download">Download</a--> <a href="">Download</a>
(OR) Better
Simply remove that following line from the file (Or comment it)
<a id="file-info-download">Download</a>
NOTE: This change you will need to do on both Active NameNode and StandBy NameNode. You do not need to restart NameNodes after making this HTML change. Just refresh the browser.
.
Created 01-18-2018 01:28 PM
On the NameNode host you will find a file something like this which has the "download_url" value defined as following:
# grep 'Download' /usr/hdp/2.6.1.0-129/hadoop-hdfs/webapps/hdfs/explorer.html <a id="file-info-download">Download</a>
- Just change that line as following:
<a href="">Download</a>
Example:
# grep -A 1 'Download' /usr/hdp/2.6.1.0-129/hadoop-hdfs/webapps/hdfs/explorer.html <!--a id="file-info-download">Download</a--> <a href="">Download</a>
(OR) Better
Simply remove that following line from the file (Or comment it)
<a id="file-info-download">Download</a>
NOTE: This change you will need to do on both Active NameNode and StandBy NameNode. You do not need to restart NameNodes after making this HTML change. Just refresh the browser.
.
Created 01-19-2018 07:28 AM
Thanks it worked well...