Created 04-24-2018 02:09 PM
The nodes in my cluster does not have direct access to Internet and so we were given proxies.
I am referring to the document:
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 ?
Created 04-24-2018 02:14 PM
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
.
Created 04-24-2018 02:14 PM
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
.
Created 04-25-2018 03:07 AM
Thanks...this fixed the problem