Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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
Not applicable

@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
Not applicable

@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'