- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Disable 'Download' button in Namenode Web UI
- Labels:
-
Apache Hadoop
Created ‎01-18-2018 09:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is there any way to disable the 'Download' button in Namenode web UI ?
Created ‎01-18-2018 01:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks it worked well...
