Support Questions

Find answers, ask questions, and share your expertise

Disable 'Download' button in Namenode Web UI

avatar
Contributor

Hi,

Is there any way to disable the 'Download' button in Namenode web UI ?

1 ACCEPTED SOLUTION

avatar
Master Mentor

@rmr1989

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.

.

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@rmr1989

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.

.

avatar
Contributor

@Jay Kumar SenSharma

Thanks it worked well...