This documentation describes how to download jar files from the Maven Central Repository using wget
and install them into the container/jars
folder. The container/jars
folder is used to store external JAR files.
Before you begin, you must have the following:
- A working installation of
wget
on your local machine. - Access to the internet to download jar files from the Maven Central Repository.
Follow these steps to download jar files from the Maven Central Repository using wget
and install them into the container/jars
folder.
-
Open a terminal window on your local machine.
-
Navigate to the root directory of the project.
-
Create the
container/jars
folder if it does not already exist. You can do this by running the following command:
mkdir -p container/jars
-
Identify the Maven Central Repository URL for the JAR file you want to download. For example, if you want to download the
spark-sql-kafka-0-10
JAR file, you can find the URL on the Maven Central Repository website. -
Use the
wget
command to download the JAR file from the Maven Central Repository. Replace<URL>
with the actual URL of the JAR file. For example:
wget -O container/jars/spark-sql-kafka-0-10_2.12-3.5.1.jar <URL>
-
Repeat steps 4 and 5 for each JAR file you want to download and install into the
container/jars
folder. -
Verify that the JAR files have been downloaded and installed into the
container/jars
folder by listing the contents of the folder:
ls container/jars