Script hadoop-namenode-info

Script types: portrule
Categories: default, discovery, safe

Script Summary

Retrieves information from an Apache Hadoop NameNode HTTP status page.

Information gathered:

  • Date/time the service was started
  • Hadoop version
  • Hadoop compile date
  • Upgrades status
  • Filesystem directory (relative to http://host:port/)
  • Log directory (relative to http://host:port/)
  • Associated DataNodes.

Script Arguments


See the documentation for the slaxml library., http.max-body-size, http.max-cache-size, http.max-pipeline, http.pipeline, http.truncated-ok, http.useragent

See the documentation for the http library.

max-newtargets, newtargets

See the documentation for the target library.

smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusername

See the documentation for the smbauth library.

Example Usage

nmap --script hadoop-namenode-info -p 50070 host

Script Output

50070/tcp open  hadoop-namenode syn-ack
| hadoop-namenode-info:
|   Started:  Wed May 11 22:33:44 PDT 2011
|   Version:  0.20.2-cdh3u1, f415ef415ef415ef415ef415ef415ef415ef415e
|   Compiled:  Wed May 11 22:33:44 PDT 2011 by bob from unknown
|   Upgrades:  There are no upgrades in progress.
|   Filesystem: /nn_browsedfscontent.jsp
|   Logs: /logs/
|   Storage:
|     Total   Used (DFS)  Used (Non DFS)  Remaining
|     100 TB  85 TB       500 GB          14.5 TB
|   Datanodes (Live):



  • John R. Bond

License: Simplified (2-clause) BSD license--See