adaptions for centos
adding ganglia support
correction when renaming spark directory