Follow the below steps to Run the code.
Update the apt package index, and install the latest version of Docker Engine and container, or go to the next step to install a specific version:
$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
Once the docker is setuped, Install a pre-built docker image to access sql spark on the jupyter notebook and import the read the .csv files.
Run Apache Spark sql statement.