add hadoop cmd helping functions