Support Questions

Find answers, ask questions, and share your expertise

question about ambari-env.sh file

avatar
Super Collaborator

I have to setup proxy in this file but not clear how , is the following correct ? because the baseurls are being rejected by the install program whereas I can access them in the browser window which tells me that something is wrong with ambari setup.

AMBARI_PASSHPHRASE="DEV"
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'
export PATH=$PATH:/var/lib/ambari-server
-Dhttp.proxyHost=dotatofwproxy.tolls.dot.state.fl.us -Dhttp.proxyPort=8080

1 ACCEPTED SOLUTION

avatar

@Sami Ahmad

You can set it like following inside the 'AMBARI_JVM_ARGS' in '/var/lib/ambari-server/ambari-env.sh' script : The you will need to restart the ambari server.

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=dotatofwproxy.tolls.dot.state.fl.us -Dhttp.proxyPort=8080'

View solution in original post

1 REPLY 1

avatar

@Sami Ahmad

You can set it like following inside the 'AMBARI_JVM_ARGS' in '/var/lib/ambari-server/ambari-env.sh' script : The you will need to restart the ambari server.

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=dotatofwproxy.tolls.dot.state.fl.us -Dhttp.proxyPort=8080'