I have successfully configured PySpark kernel in jupyter notebook, I also installed SparkMagic. When I try to use the below command:
%%sql
SELECT DepDelay, ArrDelay FROM flightData
it starts working and suddenly Spark stops throwing the below error:
An error was encountered: Invalid status code '400' from http://localhost:8998/sessions/0/statements/4 with error payload: {"msg":"requirement failed: Session isn't active."}
you can find the full log file here to download and take a look. https://drive.google.com/open?id=1lvYqQBUCiIFp4lz3aVnzMgBNd9fzqJiz
Appreciate your help. Many thanks in advance