         # su -l hive -c "kill `cat /var/run/hive/server2.pid`"
         cmd: 'service hive-server2 stop'
         # code_skipped: 1
-      , (err, started) ->
-        callback err, started
+      , callback
   hive_server2_restart: (ctx, callback) ->
     ctx.log "Hive Server2 restart"
     lifecyle.hive_server2_stop ctx, (err) ->

        # su -l hbase -c "/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf start regionserver"
        # cmd: "su -l #{hbase_user.name} -c \"/usr/lib/hbase/bin/hbase-daemon.sh --config #{hbase_conf_dir} start regionserver\""
        cmd: 'service hbase-regionserver start'
      , (err, started) ->
        callback err, started
  hbase_regionserver_stop: (ctx, callback) ->
    {hbase_user, hbase_conf_dir} = ctx.config.ryba
    lifecyle.hbase_regionserver_status ctx, (err, running) ->

        # cmd: "su -l #{yarn_user.name} -c \"export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec && /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh --config #{hadoop_conf_dir} start nodemanager\""
        cmd: "service hadoop-yarn-nodemanager start"
        # code_skipped: 1
      , callback
  nm_stop: (ctx, callback) ->
    {yarn_user, hadoop_conf_dir} = ctx.config.ryba
    lifecyle.nm_status ctx, (err, running) ->
