I am trying to implement an app => find maximum temperature from weather data (exepmle from Tom White’s book Hadoop: Definitive Guide (3rd edition)) using Hadoop. I have downloaded and installed Hadoop 2.6.0 what dependencies should I add to make it work?
The POM file is named pom. xml and should be located in the root directory of the project. The pom. xml has declaration about the project and various configurations.
Step by step :
Add cloudera your settings.xml (under ${HOME}/.m2/settings.xml) to access hadoop dependencies
<repository>
<id>cloudera</id>
<url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
Add hadoop dependencies to your pom.xml .
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId>
<version>2.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-auth</artifactId>
<version>2.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId>
<version>1.2.1</version>
</dependency>
Then try to "mvn clean install" command into project folder that contains pom.xml file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With