Fixed HiveOutputWrapper and some scripts.