Support Questions
Find answers, ask questions, and share your expertise

unable to view Application log in EC2

Rising Star

Hi,

HDP 2.3.2 cluster is set up on EC2 . When try to view the application logs for particular job it says " web page is not available"

the application job url is mapped to internal IP rather than external .

1430-applicationlogs.png

When try to view the logs of the application as its is mapped to internal IP .

How can I map application logs to external IPs .

P.S. - Using elastic IP (EC2) for the name node .

Thanks,

Divya

5 REPLIES 5

Re: unable to view Application log in EC2

@Divya Gehlot

You would have to manage /etc/hosts in the local client "your laptop" .

Add entries of internal IP pointing to public IP of the machine.

Re: unable to view Application log in EC2

Expert Contributor

@Divya Gehlot

For example here what I have done for the same

$ cat /etc/hosts

##

# Host Database

#

# localhost is used to configure the loopback interface

# when the system is booting.  Do not change this entry.

##

127.0.0.1	localhost

255.255.255.255	broadcasthost

::1             localhost 


104.197.126.29 ip-w.x.y.z-compute.internal

Here 104.197.126.29 was public ip of ec2 instance.

Re: unable to view Application log in EC2

Mentor

@Rahul Pathak browse to the link using the external IP.

Re: unable to view Application log in EC2

Expert Contributor

@Artem Ervits there is misunderstanding. Above answer was for @Divya Gehlot

Re: unable to view Application log in EC2

Mentor

@Rahul Pathak you're absolutely right, apologies.