1-844-696-6465 (US)        +91 77600 44484        help@dezyre.com

Unable to run hadoop dfsadmin -refreshnodes



0
Getting below message when running "hadoop dfsadmin -refreshnodes" command

mithun@ubuntu:~$ hadoop dfsadmin
Usage: java DFSAdmin
[-report]
[-safemode enter | leave | get | wait]
[-saveNamespace]
[-refreshNodes]
[-finalizeUpgrade]
[-upgradeProgress status | details | force]
[-metasave filename]
[-refreshServiceAcl]
[-refreshUserToGroupsMappings]
[-refreshSuperUserGroupsConfiguration]
[-setQuota ...]
[-clrQuota ...]
[-setSpaceQuota ...]
[-clrSpaceQuota ...]
[-setBalancerBandwidth ]
[-help [cmd]]

Generic options supported are
-conf specify an application configuration file
-D use value for given property
-fs specify a namenode
-jt specify a job tracker
-files specify comma separated files to be copied to the map reduce cluster
-libjars specify comma separated jar files to include in the classpath.
-archives specify comma separated archives to be unarchived on the compute machines.

The general command line syntax is
bin/hadoop command [genericOptions] [commandOptions]


7 Answer(s)


0

Its been 4 Hrs , no reply ???

0

As shown,
the command you enter : "hadoop dfsadmin"
The answer you get is not the error, it is auto-generate help option provided by terminal.
Try run the complete command - "hadoop dfsadmin -refreshnodes" wihout quotes.
If you still get any error please post the error.

0

Hi,

I have entered complete command & still get same error.

mithun@ubuntu:~$ hadoop dfsadmin -refreshnodes
refreshnodes: Unknown command
Usage: java DFSAdmin
[-report]
[-safemode enter | leave | get | wait]
[-saveNamespace]
[-refreshNodes]
[-finalizeUpgrade]
[-upgradeProgress status | details | force]
[-metasave filename]
[-refreshServiceAcl]
[-refreshUserToGroupsMappings]
[-refreshSuperUserGroupsConfiguration]
[-setQuota ...]
[-clrQuota ...]
[-setSpaceQuota ...]
[-clrSpaceQuota ...]
[-setBalancerBandwidth ]
[-help [cmd]]

Generic options supported are
-conf specify an application configuration file
-D use value for given property
-fs specify a namenode
-jt specify a job tracker
-files specify comma separated files to be copied to the map reduce cluster
-libjars specify comma separated jar files to include in the classpath.
-archives specify comma separated archives to be unarchived on the compute machines.

The general command line syntax is
bin/hadoop command [genericOptions] [commandOptions]

mithun@ubuntu:~$

0

Hi Mithun,
Try with Capital N
Command - hadoop dfsadmin -refreshNodes

0

It worked with Capital N

Thanks

0

Mithun,
Thanks for the update.

0

hi Mithun,

the command is deprecated, use this command

hadoop dfsadmin -refreshNodes

https://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html#dfsadmin

Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password