Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Disable 'Download' button in Namenode Web UI

avatar

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

@Jay Kumar SenSharma

Thanks it worked well...