搭建maven开发环境测试Hadoop组件HDFS文件系统的一些命令
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4 <groupId>com.neusoft</groupId>
5 <artifactId>bigdata001</artifactId>
6 <version>0.0.1-SNAPSHOT</version>
7 <name>bigdata001</name>
8 <dependencies>
9 <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common -->
10 <dependency>
11 <groupId>org.apache.hadoop</groupId>
12 <artifactId>hadoop-common</artifactId>
13 <version>2.6.0</version>
14 </dependency>
15 <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-hdfs -->
16 <dependency>
17 <groupId>org.apache.hadoop</groupId>
18 <artifactId>hadoop-hdfs</artifactId>
19 <version>2.6.0</version>
20 </dependency>
21 <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client -->
22 <dependency>
23 <groupId>org.apache.hadoop</groupId>
24 <artifactId>hadoop-client</artifactId>
25 <version>2.6.0</version>
26 </dependency>
27 <dependency>
28 <groupId>jdk.tools</groupId>
29 <artifactId>jdk.tools</artifactId>
30 <version>1.7</version>
31 <scope>system</scope>
32 <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
33 </dependency>
34 <!-- https://mvnrepository.com/artifact/org.apache.zookeeper/zookeeper -->
35 <dependency>
36 <groupId>org.apache.zookeeper</groupId>
37 <artifactId>zookeeper</artifactId>
38 <version>3.4.6</version>
39 </dependency>
40
41
42 </dependencies>
43
44 <build>
45 <plugins>
46 <plugin>
47 <groupId>org.apache.maven.plugins</groupId>
48 <artifactId>maven-compiler-plugin</artifactId>
49 <version>2.3.2</version>
50 <configuration>
51 <encoding>UTF-8</encoding>
52 <source>1.7</source>
53 <target>1.7</target>
54 <showWarning>true</showWarning>
55 </configuration>
56 </plugin>
57 </plugins>
58 </build>
59 </project>
页:
[1]