Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Disable 'Download' button in Namenode Web UI

Solved Go to solution
Highlighted

Disable 'Download' button in Namenode Web UI

New Contributor

Hi,

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Disable 'Download' button in Namenode Web UI

Super 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.

.

2 REPLIES 2

Re: Disable 'Download' button in Namenode Web UI

Super 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.

.

Re: Disable 'Download' button in Namenode Web UI

New Contributor

@Jay Kumar SenSharma

Thanks it worked well...

Don't have an account?
Coming from Hortonworks? Activate your account here