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.

Ambari server setup error during select stack and repo

avatar

Dear folks,

I am currently trying to set up HDP 2.4 but I am having issues after launching install wizard. I had started with documentation provided here: https://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_Installing_HDP_AMB/content/ch_Getting_Re...

I had not faced any issues until now.

I am currently in section 3 where it mentions to Installing, Configuring and deploying a HDP cluster.

Here I opened a browser on my desktop and opened ambari host machine and logged into ambari.

Then, I launched installation wizard and setup my cluster name. Further, I selected stack HDP 2.4 and enabled RHEL6 in repository options for my centos6.5 machine. I observe that when I try to wget the URL mentioned for HDP 2.4 and HDP utils they work fine , but it gives the error in wizard and hence not able to proceed.

I am working behind proxy, and I thought it could be an issue and therefore I stumbled upon the link http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_reference_guide/content/_how_to_se... which mention how to provide proxy info in the ambari-env.sh file. I did that but during ambari-server restart it throws an error that -Dhttp.proxyHost=<myproxyaddress> command not found

Any help in this regard is appreciated.

Regards,

Rahul

1 ACCEPTED SOLUTION

avatar
Not applicable

@Rahul Mishra

Also please do not put the ip address inside single quotes else it will cause issues while passing to the JVM as argument

Example:

export AMBARI_JVM_ARGS=$AMBARI_JVM_ARGS' -Xmn1024m -Xms2048m -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=172.28.84.6  -Dhttp.proxyPort=3128 -Dhttp.proxyUser=someUserName -Dhttp.proxyPassword=somePassword'

View solution in original post

6 REPLIES 6

avatar
Super Guru

@Rahul Mishra

Can you paste the contents on ambari-env.sh here.

avatar

I am uploading the content as an image with username and password blurred.

4938-error.png

avatar

I ideally would consider them being a part of some environment variable but which env variable?

avatar
Not applicable

The "-Dhttp.proxyHost" is a JVM option which is passed via AMBARI_JVM_ARGS variable to the jvm hence you will need to add those properties inside the "AMBARI_JVM_ARGS" only. Then restart the server.

avatar
Not applicable

@Rahul Mishra

Also please do not put the ip address inside single quotes else it will cause issues while passing to the JVM as argument

Example:

export AMBARI_JVM_ARGS=$AMBARI_JVM_ARGS' -Xmn1024m -Xms2048m -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=172.28.84.6  -Dhttp.proxyPort=3128 -Dhttp.proxyUser=someUserName -Dhttp.proxyPassword=somePassword'

avatar

Many thanks! That works like a charm. Probably we can amend the documentation to include that it needs to be added to AMBARI_JVM_ARGS.

BR,

Rahul