Support Questions
Find answers, ask questions, and share your expertise

Setting No Proxies in Ambari server

Expert Contributor

The nodes in my cluster does not have direct access to Internet and so we were given proxies.

I am referring to the document:

https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-administration/content/ch_setting...

I am trying to add no_proxies for few nodes, but as soon as add more than one node with pipe delimmitedf, ambari server does not restarts.

Has anybody faced this situation ?

1 ACCEPTED SOLUTION

Super Mentor

@Kumar Veerappan

Please use the Escape characters (\\) when specifying the | (pipe) sign as following:

Like :

-Dhttp.nonProxyHosts=aaa.com\|bbb.com\|ccc.com

Example:

# grep AMBARI_JVM_ARGS /var/lib/ambari-server/ambari-env.sh
export AMBARI_JVM_ARGS=$AMBARI_JVM_ARGS' -Xms512m -Xmx2048m -XX:MaxPermSize=128m -Djava.security.auth.login.config=$ROOT/etc/ambari-server/conf/krb5JAASLogin.conf -Djava.security.krb5.conf=/etc/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false -Dhttp.nonProxyHosts=aaa.com\|bbb.com\|ccc.com'

.

Output:

# ps -ef | grep AmbariServer
root     14850     1 99 14:12 pts/0    00:00:42 /usr/lib/jvm/java/bin/java -server -XX:NewRatio=3 -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -Dsun.zip.disableMemoryMapping=true -Xms512m -Xmx2048m -XX:MaxPermSize=128m -Djava.security.auth.login.config=/etc/ambari-server/conf/krb5JAASLogin.conf -Djava.security.krb5.conf=/etc/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false -Dhttp.nonProxyHosts=aaa.com|bbb.com|ccc.com -cp /etc/ambari-server/conf:/usr/lib/ambari-server/*:/usr/share/java/postgresql-jdbc.jar org.apache.ambari.server.controller.AmbariServer

.

View solution in original post

2 REPLIES 2

Super Mentor

@Kumar Veerappan

Please use the Escape characters (\\) when specifying the | (pipe) sign as following:

Like :

-Dhttp.nonProxyHosts=aaa.com\|bbb.com\|ccc.com

Example:

# grep AMBARI_JVM_ARGS /var/lib/ambari-server/ambari-env.sh
export AMBARI_JVM_ARGS=$AMBARI_JVM_ARGS' -Xms512m -Xmx2048m -XX:MaxPermSize=128m -Djava.security.auth.login.config=$ROOT/etc/ambari-server/conf/krb5JAASLogin.conf -Djava.security.krb5.conf=/etc/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false -Dhttp.nonProxyHosts=aaa.com\|bbb.com\|ccc.com'

.

Output:

# ps -ef | grep AmbariServer
root     14850     1 99 14:12 pts/0    00:00:42 /usr/lib/jvm/java/bin/java -server -XX:NewRatio=3 -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -Dsun.zip.disableMemoryMapping=true -Xms512m -Xmx2048m -XX:MaxPermSize=128m -Djava.security.auth.login.config=/etc/ambari-server/conf/krb5JAASLogin.conf -Djava.security.krb5.conf=/etc/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false -Dhttp.nonProxyHosts=aaa.com|bbb.com|ccc.com -cp /etc/ambari-server/conf:/usr/lib/ambari-server/*:/usr/share/java/postgresql-jdbc.jar org.apache.ambari.server.controller.AmbariServer

.

Expert Contributor

Thanks...this fixed the problem

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.