Support Questions

Find answers, ask questions, and share your expertise

Error During adding a new new node into cluster

avatar

Hi Guys,
I have been facing an issue.
I have been using AWS Hortonworks machine.Firstly i am successfully login into ambari and it shows all services run.BUT when i try to add another node into cluster. it give me an error :

40879-nodeadding.jpeg

then i close the browser and try to re-connect the error. but now it give me an error :
"Unable to Connect Ambari "
whe i try to write command :
" ambari-server start"
the it give me message "Command not found"
Please help
Thanks

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Mudassar Hussain

Looks like ambari-server is started fine now. Just to be sure please check the logs of ambari as following and verify the port is accessible:

# less /var/log/ambari-server/ambari-server.log
# netstat -tnlpa | grep 8080
# service iptables stop

.

Then try accessing the ambari using the mentioned IP Address:

http://$AMBARI_SERVER_IP:8080

.

View solution in original post

14 REPLIES 14

avatar
Rising Star

@Mudassar Hussain Are you trying "ambari-server start" in the correct host where ambari server is installed? As you are saying you were able to login to ambari UI earlier.

avatar

@nshetty

thanks for you reply.I have solve this issue by writing the command in correct host @namenode and it show Ambari Server Start. when i try to login to Ambari it give me same error.
Most of people saying you need to create a new instance. but after 15 minutes, ambari again stop. I am stuck at this point.

avatar

thanks for your prompt reply @Aditya Sirna
When i try to write this command it does not show me the log. a message appeared "unknow command".
I think i am not writing the command on right host as @nshetty said.
I am new to this.
How i confirm that on which node ambari server install ? i tried these command on @namenode

avatar
Master Mentor

@Mudassar Hussain

Following steps you can try to findout what might be wrong:


On the Host where "ambari-server" is installed try the following:


SSH to ambari server host (using IP address or using Hostname)


1). Check if the ambari-server is running and listening to port 8080 (default port)

# netstat -tnlpa | grep 8080


2). If the Port is not listening then please check the following log to see if there are any error logged. If any errors are logged then please share the logs.

# less /var/log/ambari-server/ambari-server.log
# less /var/log/ambari-server/ambari-server.out


3). If there are no errors logged then try restarting the ambari server and also varify if the Hostname for the ambari server is setup correctly and the Iptables (Firewall) is disabled.

# hostname -f
# cat /etc/hosts
# service iptables stop  (OR  for CentOS7 the command will be  "systemctl disable firewalld")
# ambari-server restart



If you still do not find the "ambari-server" command then please verify if that host has the ambari packages installed? (just to be double sure that you logged in to correct ambari-server host)

# ls -l /usr/sbin/ambari-server
# rpm -qa | grep ambari
(OR)
# rpm -qa | grep ambari-server 


4). After restarting the abari-server as following please check if the port 8080 is opened or not? (verify the ambari-server.log as well, to see no errors logged)

# ambari-server start
# less /var/log/ambari-server/ambari-server.log
# netstat -tnlpa | grep 8080

.

.

From the machine where you are running the browser

5). If ambari-server port (8080) is opened and listening then from the machine where you are running the browser please check if the port is accessible or not?

# nc  -v  $AMBARI_SERVER_IP  8080
(OR)
# telnet  $AMBARI_SERVER_IP  8080

6). If the port is accessible then try to access ambari UI from the browser (if needed then use Incognito Mode on your browser to isolate the browser caching issue)

.

.

On All Agent Hosts

On All the ambari agent machines please make sure tthe following things are OK:

1. The iptables is stopped and the Hostname (FQDN) is properly setup,

2. Password less SSH is setup (if you are planning to register the new agents from the Ambari UI). Means from ambari-server host you can do passwordless ssh to the agent machines.

3. The Agent machines has proper internet connectivity, to download packages from HWX repo When instructed by ambari server.

4. The /etc/hosts file has proper entry on all agent machines to resolve the ambari-server hostname properly. And from agent machines there is no issues in connecting to the following port of ambari server:

# nc  -v  $AMBARI_SERVER_HOSTNAME  8080
# nc  -v  $AMBARI_SERVER_HOSTNAME  8440
# nc  -v  $AMBARI_SERVER_HOSTNAME  8441

.

.

avatar

Got your Point regarding Ambari host.
my ambari URL is : namenode:8080 so i log into @namenode and wrie the command " ambari-server restart"
this command successfully run and it shows "Ambari Server Run Successfully".
when i try to get the log by writing below command :
/var/log/ambari-server/ambari-server.log
it gives me message : "Permission Denied"
see the attached image

39872-permission-denied.jpeg

avatar
Master Mentor

@Mudassar Hussain

Looks like ambari-server is started fine now. Just to be sure please check the logs of ambari as following and verify the port is accessible:

# less /var/log/ambari-server/ambari-server.log
# netstat -tnlpa | grep 8080
# service iptables stop

.

Then try accessing the ambari using the mentioned IP Address:

http://$AMBARI_SERVER_IP:8080

.

avatar
Master Mentor
@Mudassar Hussain

Regarding the

/var/log/ambari-server/ambari-server.log 
it gives me message : "Permission Denied" 

.

This is because you need to specify the commands like "vi" , "cat" or "less" before the filename as following:

# less /var/log/ambari-server/ambari-server.log 
# vi /var/log/ambari-server/ambari-server.log 
# cat /var/log/ambari-server/ambari-server.log 

.

avatar

Thanks a lot @Jay SenSharma
Two Hours Before i wrote above 3 command. Ambari server Start and I was so happy that time 🙂
but Machine was not working properly so i create the new AWS instance.
Now i have facing same issue : Ambari Server not login 😞
although i wrote these 3 lines.
One Question How i export the log which i see after this command :
# less /var/log/ambari-server/ambari-server.log
see the attached screen

39873-iptablestop.jpeg

avatar
Master Mentor

@Mudassar Hussain

Can you please attach the "ambari-server.log" to this HCC thread.

You can download/export the "/var/log/ambari-server/ambari-server.log" file from your AWS instance to your local machine using SCP commands like:

# scp  -i ~/.ssh/YOUR_AWS_KEY  root@namenode:/var/log/ambari-server/ambari-server.log   /tmp

.