curl -O https://archive.apache.org/dist/spark/spark-3.1.1/spark-3.1.1-bin-hadoop3.2.tgz
Here is what the above code is Doing:
1. We’re using the curl command to download the Spark tarball from the Apache archive.
2. We’re using the -O flag to tell curl to save the file with the same name as the file on the remote server.
3. We’re using the -L flag to tell curl to follow any redirects.
4. We’re using the -C – flag to tell curl to continue downloading the file even if the connection is interrupted.