Just one more thing.  I am trying this on VAGRANT VMs setup and I started
the server using

sudo ambari-server start --debug

Output for below command with root is like this

[vagrant@c7001 ~]$ sudo netstat -anp | grep 5005

tcp        0      0 192.168.70.101:*5005*     192.168.70.1:50088
ESTABLISHED 12838/java

On Wed, Feb 1, 2017 at 9:48 PM, Sandy <[email protected]> wrote:

> Yup!  Here's the output.
>
> $ netstat -anp | grep 5005
>
> (Not all processes could be identified, non-owned process infowill not be
> shown, you would have to be root to see it all.)
>
> tcp        0      0 192.168.70.101:*5005*     192.168.70.1:50088
> ESTABLISHED -
>
> Regards,
>
> Sandeep.
>
> On Wed, Feb 1, 2017 at 9:43 PM, Jonathan Hurley <[email protected]>
> wrote:
>
>> I don't think screenshots come through correctly on distribution lists
>> here (I can't see yours). Can you verify that Ambari is started on that
>> port?
>>
>> netstat -anp | grep 5005
>>
>>
>> > On Feb 1, 2017, at 11:04 AM, Sandy <[email protected]> wrote:
>> >
>> > I'm using 5005 itself.  Refer attached screenshot in original mail.
>> Still
>> > facing the issue.
>> >
>> > On 01-Feb-2017 9:27 PM, "Jonathan Hurley" <[email protected]>
>> wrote:
>> >
>> >> Which port are you trying to connect to? When starting Ambari Server
>> with
>> >> debug on, a different port is used for JDWP. You need to connect on
>> port
>> >> 5005. Here's an excerpt from the startup command:
>> >>
>> >> -Xdebug -Xrunjdwp:transport=dt_socket,address=5005
>> >>
>> >> On Feb 1, 2017, at 10:05 AM, Sandy <[email protected]<mailto:
>> >> [email protected]>> wrote:
>> >>
>> >> I am trying to setup remote debugging for ambari server and have
>> started
>> >> the server using
>> >>
>> >> ambari-server start --debug
>> >>
>> >> But when I try to connect to server using eclipse, I am getting
>> following
>> >> exception:
>> >>
>> >> java.net.ConnectException: Connection refused (Connection refused)
>> >> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> >> at java.net.AbstractPlainSocketImpl.doConnect(
>> >> AbstractPlainSocketImpl.java:350)
>> >> at java.net.AbstractPlainSocketImpl.connectToAddress(
>> >> AbstractPlainSocketImpl.java:206)
>> >> at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocket
>> Impl.java:
>> >> 188)
>> >> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> >> at java.net.Socket.connect(Socket.java:589)
>> >> at java.net.Socket.connect(Socket.java:538)
>> >> at java.net.Socket.<init>(Socket.java:434)
>> >> at java.net.Socket.<init>(Socket.java:211)
>> >> at org.eclipse.jdi.internal.connect.SocketTransportService$2.run(
>> >> SocketTransportService.java:148)
>> >> at java.lang.Thread.run(Thread.java:745)
>> >>
>> >> Attached screenshots of Eclipse Settings and Error Message.
>> >>
>> >> Can someone help me with what i might be missing.
>> >>
>> >> --
>> >>
>> >> Sandeep Kumar,
>> >> Mobile +91-9866507368 <+91%2098665%2007368>
>> >>
>> >>
>> >>
>>
>>
>
>
> --
>
> *Sandeep Kumar,*
>  Mobile +91-9866507368 <+91%2098665%2007368>
>
> *“I believe in smart work, Believe Me”*
>
>


-- 

*Sandeep Kumar,*
 Mobile +91-9866507368

*“I believe in smart work, Believe Me”*

Reply via email to