Getting java.net.ConnectException: your endpoint configuration is wrong when running ./yarn command

Mikhail

I am extremely new to Hadoop, know almost nothing about this concept.

I just started a class and attempted to install a Hadoop. I simply followed instructions in the notes

And finally executed the following command

$ ./yarn jar /usr/local/hadoop/hadoop2.9.1/share/hadoop/mapreduce/hadoop-mapreduce-examples2.9.1.jar wordcount /in /out

The output was multiple 'retrying to connect' statements with 'java.net.ConnectException: your endpoint configuration is wrong' at the ends

For some reason I can't find the 'jps' command to check if services are running

What can I check?

Thank you for your help!

output

Mikhail

First of all, my Java wasn't fully installed; thus, I had to finalized the installation

yum list java*devel*
sudo yum install java-1.7.0-openjdk-devel.x86_64

That let me use the jps command

Then checked hdfs-site.xml for a property dfs.datanode.data.dir

<property>
   <name>dfs.datanode.data.dir</name>
   <value>file:///data/1/dfs/dn</value>
</property>

Since the NameNode is formatted you don’t have an option other than formatting (deleting) the contents in DataNode as well. So go to the directory location specified in dfs.datanode.data.dir and issue a delete on that directory across all DataNodes.

Once the data directories are formatted in all DataNodes, I restarted the DataNode process on all DataNodes

Then checked for failed cluster ID's in Datanode's logs

Copied to clipboard datanode clusterID for example, CID-8bf63244-0510-4db6-a949-8f74b50f2be9

and run following command under HADOOP_HOME/bin directory

./hdfs namenode -format -clusterId CID-8bf63244-0510-4db6-a949-8f74b50f2be9

Everything worked !

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Java: Redirecting inner process output when running from command line

From Dev

java.net.ConnectException: Connection refused error when running Hive

From Dev

Getting gcc command not found when running the Makefile on travis CI

From Dev

getting "ksh: no space"-error when running a unix command

From Dev

Storm UI getting Internal Server Error :org.apache.thrift7.transport.TTransportException: java.net.ConnectException: Connection refused

From Dev

Hadoop standalone installation - java.net.ConnectException: Connection refused error while running jar

From Dev

Spring Boot Jersey - Missing EmbeddedServletContainerFactory when running java -jar command

From Dev

Running Java RMI application on two machines - ConnectException

From Dev

I am getting '**** WRONG JAVA VERSION ****' on running ant build

From Dev

Getting Response code: Non HTTP response code: java.net.ConnectException for some of the samples in Jmeter

From Dev

Simulate java.net.ConnectException: Connection timout

From Dev

Getting the functionality of the scrapy crawl command when running a spider from a script

From Dev

Failed to connect to the java service wrapper (java.net.ConnectException)

From Dev

Hadoop: java.net.ConnectException: Connection refused

From Dev

Heroku Running Wrong ENV Configuration

From Dev

Getting gcc command not found when running the Makefile on travis CI

From Dev

What is wrong with my hadoop-yarn configuration

From Dev

java.lang.UnsatisfiedLinkError when running java command as sudo

From Dev

How to know, when a shell command running in the backround getting killed or died

From Dev

java.net.ConnectException: Connection refused TCP

From Dev

Simulate java.net.ConnectException: Connection timout

From Dev

Getting the functionality of the scrapy crawl command when running a spider from a script

From Dev

Warning when building with wrong configuration

From Dev

Logging source tcp port when ConnectException in Java?

From Dev

Hadoop: java.net.ConnectException: Connection refused

From Dev

Cannot set configuration when submitting Spark Streaming jobs to YARN with Client within Java code

From Dev

How to handle java.net.ConnectException efficiently

From Dev

java.net.ConnectException: Connection refused: connect

From Dev

Errors When Running Java from Command Prompt

Related Related

  1. 1

    Java: Redirecting inner process output when running from command line

  2. 2

    java.net.ConnectException: Connection refused error when running Hive

  3. 3

    Getting gcc command not found when running the Makefile on travis CI

  4. 4

    getting "ksh: no space"-error when running a unix command

  5. 5

    Storm UI getting Internal Server Error :org.apache.thrift7.transport.TTransportException: java.net.ConnectException: Connection refused

  6. 6

    Hadoop standalone installation - java.net.ConnectException: Connection refused error while running jar

  7. 7

    Spring Boot Jersey - Missing EmbeddedServletContainerFactory when running java -jar command

  8. 8

    Running Java RMI application on two machines - ConnectException

  9. 9

    I am getting '**** WRONG JAVA VERSION ****' on running ant build

  10. 10

    Getting Response code: Non HTTP response code: java.net.ConnectException for some of the samples in Jmeter

  11. 11

    Simulate java.net.ConnectException: Connection timout

  12. 12

    Getting the functionality of the scrapy crawl command when running a spider from a script

  13. 13

    Failed to connect to the java service wrapper (java.net.ConnectException)

  14. 14

    Hadoop: java.net.ConnectException: Connection refused

  15. 15

    Heroku Running Wrong ENV Configuration

  16. 16

    Getting gcc command not found when running the Makefile on travis CI

  17. 17

    What is wrong with my hadoop-yarn configuration

  18. 18

    java.lang.UnsatisfiedLinkError when running java command as sudo

  19. 19

    How to know, when a shell command running in the backround getting killed or died

  20. 20

    java.net.ConnectException: Connection refused TCP

  21. 21

    Simulate java.net.ConnectException: Connection timout

  22. 22

    Getting the functionality of the scrapy crawl command when running a spider from a script

  23. 23

    Warning when building with wrong configuration

  24. 24

    Logging source tcp port when ConnectException in Java?

  25. 25

    Hadoop: java.net.ConnectException: Connection refused

  26. 26

    Cannot set configuration when submitting Spark Streaming jobs to YARN with Client within Java code

  27. 27

    How to handle java.net.ConnectException efficiently

  28. 28

    java.net.ConnectException: Connection refused: connect

  29. 29

    Errors When Running Java from Command Prompt

HotTag

Archive