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 proxy error

Highlighted

Ambari server proxy error

New Contributor

Hi Team,

 

I have installed ambari server 2.7.3 on RHEL7.

During launch wizard using public repositories I am not able to access the repositories.

So I followed https://docs.cloudera.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_reference_guide/content/_how_to_set_...

 

But when I start ambari server I am getting below error

 

[admin1 ~]$ sudo ambari-server start
/var/lib/ambari-server/ambari-env.sh: line 21: export: -D: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
Using python /usr/bin/python
Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
Ambari database consistency check started...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start....................
Server started listening on 8080

DB configs consistency check: no errors and warnings were found.
Ambari Server 'start' completed successfully.
[admin1 ~]$

 

 

$ sudo cat /var/lib/ambari-server/ambari-env.sh
AMBARI_PASSHPHRASE="DEV"
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 -Dcom.sun.jndi.ldap.connect.pool.protocol=\"plain ssl\" -Dcom.sun.jndi.ldap.connect.pool.maxsize=20 -Dcom.sun.jndi.ldap.connect.pool.timeout=300000"
export PATH=$PATH:$ROOT/var/lib/ambari-server
export PYTHONPATH=$ROOT/usr/lib/ambari-server/lib:$PYTHONPATH
export -Dhttp.proxyHost=xyz.co.in -Dhttp.proxyPort=8080

 

 

 

Please advise

1 REPLY 1

Re: Ambari server proxy error

Mentor

@pvrkkumar 

 

Can you share the steps or procedure you run to set the local repository? You should have followed ​x​Setting Up a Local Repository with No Internet Access

Have a look at these 2  videos that should point to where you went wrong.

Configure local repo1 or Configure local repo1

Happy hadooping 

 

 

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