       token = JSON.parse(stdout).Token.urlString
       ctx.execute
         cmd: """
-        curl -s "http://#{namenode}:50070/webhdfs/v1/user/test?delegation=#{token}&op=LISTSTATUS"
+        curl -s "http://#{namenodes[0]}:50070/webhdfs/v1/user/test?delegation=#{token}&op=LISTSTATUS"
         """
       , (err, executed, stdout) ->
         return next err if err

  do_token = ->
    ctx.execute
      cmd: mkcmd.test ctx, """
      curl -s --negotiate -u : "http://#{namenode}:50070/webhdfs/v1/?op=GETDELEGATIONTOKEN"
      kdestroy
      """
    , (err, executed, stdout) ->

for more information.
###
module.exports.push name: 'HDP HDFS DN # Test WebHDFS', timeout: -1, callback: (ctx, next) ->
  namenodes = ctx.hosts_with_module 'histi/hdp/hdfs_nn'
  {force_check} = ctx.config.hdp
  do_init = ->
    ctx.execute
