user2572432
user2572432

Reputation: 7

How do i check hadoop server name?

when I try to import data to excel from hdfs, it asks to enter the name of hadoop server, so I am confused what to type there, kindly help me on the same..enter image description here

Upvotes: 1

Views: 8591

Answers (2)

Manjunath Ballur
Manjunath Ballur

Reputation: 6343

You should enter the name of your name node here.

For e.g. in hdfs-site.xml, there is a property dfs.namenode.http-address, check the value of this property. You need to set this to the name of the server mentioned in this property.

For me, it is set to:

<property>
    <name>dfs.namenode.http-address</name>
    <value>mballur.myorg.com:50070</value>
    <description>The address and the base port where the dfs namenode
      web ui will listen on. If the port is 0 then the server will
      start on a free port.</description>
    <final>true</final>
</property>

So, if you take my example, you need to set this to mballur.myorg.com.

You can also get the name of the NameNode, by running hadoop fsck command.

For e.g. when I run the following command:

CMD PROMPT>hadoop fsck /tmp/

I get the following output:

Connecting to namenode via http://mballur.myorg.com:50070/fsck?ugi=mballur&path=%2Ftmp
FSCK started by mballur (auth:SIMPLE) from /192.168.56.1 for path /tmp at Wed Jan 06 18:29:57 IST 2016

You can see the first line, highlighted portion is the name of the Name Node:

Connecting to namenode via http://mballur.myorg.com:50070/fsck?ugi=mballur&path=%2Ftmp

Also, check this tutorial in Youtube: https://www.youtube.com/watch?v=_eyE7Qcj0_A

Upvotes: 0

Naveen.sn
Naveen.sn

Reputation: 72

Give the name of your Namenode and try once.

Upvotes: 0

Related Questions