Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

how to disable ambari access to public-repo-1.hortonworks.com

avatar

how to disable ambari access to public-repo-1.hortonworks.com , or to disable network to block geting update from public-repo-1.hortonworks.com

we want this in order to not get update from public-repo-1.hortonworks.com repo

ping public-repo-1.hortonworks.com

64 bytes from server-52-85-183-236.fra50.r.cloudfront.net (52.85.183.236): icmp_seq=1 ttl=242 time=57.4 ms
64 bytes from server-52-85-183-236.fra50.r.cloudfront.net (52.85.183.236): icmp_seq=2 ttl=242 time=57.8 ms
64 bytes from server-52-85-183-236.fra50.r.cloudfront.net (52.85.183.236): icmp_seq=3 ttl=242 time=58.2 ms
64 bytes from server-52-85-183-236.fra50.r.cloudfront.net (52.85.183.236): icmp_seq=4 ttl=242 time=58.6 ms
64 bytes from server-52-85-183-236.fra50.r.cloudfront.net (52.85.183.236): icmp_seq=5 ttl=242 time=57.8 ms
Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Michael Bronson

I meant using i.e Firewall to block the public-repo-1.hortonworks.com public IP or disable it in the repo by setting enabled=0 (false) instead of 1 (true) see below

[HDP-UTILS-1.1.0.21]
name=HDP-UTILS-1.1.0.21baseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/xx
path=/
enabled=0

That you can use a script

View solution in original post

4 REPLIES 4

avatar
Master Mentor

@Michael Bronson

There are 3 ways to avoid updates just tweak you disable ambari & hdp* repos by changing the URL o a non-existant host

  • /etc/yum.repos.d/ *.repo


  • /etc/host file
  • Just block the public-repo-1.hortonworks.com public IP

Hope that helps

avatar

regarding the /etc/hosts , do you mean to put as:

1.1.1.1  public-repo-1.hortonworks.com

while no access to 1.1.1.1

Michael-Bronson

avatar

regarding the last option - Just block the public-repo-1.hortonworks.com public IP

what you mean just "lock the public-repo-1.hortonworks.com public IP"

HOW?


remark we use only scripts to install ambari & HDP , so if we need to change someting in ambari we need to use API in order to perfrom some changing

Michael-Bronson

avatar
Master Mentor

@Michael Bronson

I meant using i.e Firewall to block the public-repo-1.hortonworks.com public IP or disable it in the repo by setting enabled=0 (false) instead of 1 (true) see below

[HDP-UTILS-1.1.0.21]
name=HDP-UTILS-1.1.0.21baseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/xx
path=/
enabled=0

That you can use a script