   do_token = ->
     ctx.execute
       cmd: mkcmd.test ctx, """
-      curl -s --negotiate -u : "http://#{namenode}:50070/webhdfs/v1/?op=GETDELEGATIONTOKEN"
+      curl -s --negotiate -u : "http://#{namenode[0]}: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) ->
  namenode = ctx.hosts_with_module 'histi/hdp/hdfs_nn', 1
  {force_check} = ctx.config.hdp
  do_init = ->
    ctx.execute

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