Created 09-30-2016 12:47 PM
I wanna setup my ambari-server to use proxy.pac by following the steps in the official document(
Adding the following to "/var/lib/ambari-server/ambari-env.sh." didn't help and the Ambari-server fails to find others
nodes by FQDN names.
-Dhttp.proxyHost=
192.168.XXX.XXX.pac -Dhttp.proxyPort=
XXXX
Created 09-30-2016 12:57 PM
Can you please elaborate more on what did not work? Are you getting any error or exception after applying the http proxy settings?
Following is an example, shows how we can apply it
export AMBARI_JVM_ARGS=$AMBARI_JVM_ARGS' -Xms512m -Xmx2048m -Djava.security.auth.login.config=/etc/ambari-server/conf/krb5JAASLogin.conf -Djava.security.krb5.conf=/etc/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false -Dhttp.proxyHost=your.example.com -Dhttp.proxyPort=8888'
Created 10-01-2016 07:11 AM
The reason trying to use proxy.pac setting is that, by default, proxy setup tries to resolve a domain name on WAN and Ambari-server fails to resolve the FQDN names specified during the cluster nodes registration.
With proxy.pac, system tries to resolve a FQDN at LAN level then, if necessary, on WAN.
In a hope that proxy.pac will make it work I've added the following line to the bottom of
file "/var/lib/ambari-server/ambari-env.sh."
-Dhttp.proxyHost=
proxyIP.pac -Dhttp.proxyPort=
XXXX
However, Ambari-server still couldn't seem to resolve the specified FQDN names.