many bookkeeping code, hadoop restart script