Spark - failed on connection exception: java.net.ConnectException - localhost

前端 未结 2 1083
半阙折子戏
半阙折子戏 2021-01-05 13:33

I am running hadoop and spark in a single machine (Ubuntu 14.04). JPS command gives me below output

hduser@ubuntu:~$ jps
4370 HRegionServer
6568 Jps
5555 Run         


        
2条回答
  •  梦毁少年i
    2021-01-05 13:56

    That's a good answer to yourself ! :)

    3079 is the pid ( process id ) of namenode. See more details about jps's output here: Jps doc. BTW, you can verify the listening ports of namenode using the pid with a command such as:

    lsof -p 3079 -a -i
    

    In your command output:

    java    3079 hduser   89u  IPv4  59998      0t0  TCP localhost:54310->localhost:46507 (ESTABLISHED)
    

    That line indicates that other process established TCP connection with Namenode at port 46507. Possible processes could be resoure manager(RM) or data nodes etc.

提交回复
热议问题