Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ambari server setup error during select stack and repo

Solved Go to solution
Highlighted

Ambari server setup error during select stack and repo

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

Accepted Solutions
Highlighted

Re: Ambari server setup error during select stack and repo

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

Re: Ambari server setup error during select stack and repo

@Rahul Mishra

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

Highlighted

Re: Ambari server setup error during select stack and repo

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

4938-error.png

Highlighted

Re: Ambari server setup error during select stack and repo

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

Highlighted

Re: Ambari server setup error during select stack and repo

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.

Highlighted

Re: Ambari server setup error during select stack and repo

@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

Highlighted

Re: Ambari server setup error during select stack and repo

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

Don't have an account?
Coming from Hortonworks? Activate your account here