when i run any spark commands logs are not shown in screen. it directly displays results .
if you want to see the logs of your spark code on terminal then you have to change the LogLevel properties.
for this please use below command-
sc.setLogLevel("INFO")
Thank you . Let me check this