     ctx.execute
       # su -l hbase -c "/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf start regionserver"
       cmd: "su -l #{hbase_user} -c \"/usr/lib/hbase/bin/hbase-daemon.sh --config #{hbase_conf_dir} start regionserver\""
-    , (err, stoped) ->
-      callback err, stoped
+    , (err, started) ->
+      callback err, started
   hbase_regionserver_stop: (ctx, callback) ->
     {hbase_user, hbase_conf_dir} = ctx.config.hdp
     ctx.execute

      cmd: "su -l #{hbase_user} -c \"/usr/lib/hbase/bin/hbase-daemon.sh --config #{hbase_conf_dir} stop regionserver\""
    , (err, stoped) ->
      callback err, stoped










      lifecyle.hive_server2_start ctx, callback
  oozie_status: (ctx, callback) ->
    {oozie_pid_dir} = ctx.config.hdp
    lifecyle.is_pidfile_running ctx, "#{oozie_pid_dir}/oozie.pid", (err, running) ->
      callback err, running
    # ctx.execute
    #   cmd: """
    #   if pid=`cat #{oozie_pid_dir}/oozie.pid`; then
    #     if ps cax | grep -v grep | grep $pid; then exit 0; else
    #       rm -f #{oozie_pid_dir}/oozie.pid
    #   fi; fi; exit 1
    #   """
    #   code_skipped: 1
    # , (err, started) ->
    #   callback err, started
  oozie_start: (ctx, callback) ->
    {oozie_user} = ctx.config.hdp
    lifecyle.oozie_status ctx, (err, running) ->
