Reputation: 7
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..
Upvotes: 1
Views: 8591
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