First create a directory which will contain the event log of the application:
[name@server ~]$ mkdir ~/.spark/<spark version>/eventlog