美文网首页
HDFS客户端操作 -学习笔记三

HDFS客户端操作 -学习笔记三

作者: 熊大呀 | 来源:发表于2020-04-26 15:15 被阅读0次

    4.创建一个maven工程HDFS ClientDemo

    file->new->project->Maven->Maven Project

    5.导入相应坐标+日志添加

    <dependencies>

          <dependency>

              <groupId>junit</groupId>

              <artifactId>junit</artifactId>

              <version>RELEASE</version>

          </dependency>

          <dependency>

              <groupId>org.apache.logging.log4j</groupId>

              <artifactId>log4j-core</artifactId>

              <version>2.8.2</version>

          </dependency>

          <dependency>

              <groupId>org.apache.hadoop</groupId>

              <artifactId>hadoop-common</artifactId>

              <version>2.7.2</version>

          </dependency>

          <dependency>

              <groupId>org.apache.hadoop</groupId>

              <artifactId>hadoop-client</artifactId>

              <version>2.7.2</version>

          </dependency>

          <dependency>

              <groupId>org.apache.hadoop</groupId>

              <artifactId>hadoop-hdfs</artifactId>

              <version>2.7.2</version>

          </dependency>

          <dependency>

              <groupId>jdk.tools</groupId>

              <artifactId>jdk.tools</artifactId>

              <version>1.8</version>

              <scope>system</scope>

              <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>

          </dependency>

    </dependencies> <dependencies>

          <dependency>

              <groupId>junit</groupId>

              <artifactId>junit</artifactId>

              <version>RELEASE</version>

          </dependency>

          <dependency>

              <groupId>org.apache.logging.log4j</groupId>

              <artifactId>log4j-core</artifactId>

              <version>2.8.2</version>

          </dependency>

          <dependency>

              <groupId>org.apache.hadoop</groupId>

              <artifactId>hadoop-common</artifactId>

              <version>2.7.2</version>

          </dependency>

          <dependency>

              <groupId>org.apache.hadoop</groupId>

              <artifactId>hadoop-client</artifactId>

              <version>2.7.2</version>

          </dependency>

          <dependency>

              <groupId>org.apache.hadoop</groupId>

              <artifactId>hadoop-hdfs</artifactId>

              <version>2.7.2</version>

          </dependency>

          <dependency>

              <groupId>jdk.tools</groupId>

              <artifactId>jdk.tools</artifactId>

              <version>1.8</version>

              <scope>system</scope>

              <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>

          </dependency> <dependencies>

          <dependency>

              <groupId>junit</groupId>

              <artifactId>junit</artifactId>

              <version>RELEASE</version>

          </dependency>

          <dependency>

              <groupId>org.apache.logging.log4j</groupId>

              <artifactId>log4j-core</artifactId>

              <version>2.8.2</version>

          </dependency>

          <dependency>

              <groupId>org.apache.hadoop</groupId>

              <artifactId>hadoop-common</artifactId>

              <version>2.7.2</version>

          </dependency>

          <dependency>

              <groupId>org.apache.hadoop</groupId>

              <artifactId>hadoop-client</artifactId>

              <version>2.7.2</version>

          </dependency>

          <dependency>

              <groupId>org.apache.hadoop</groupId>

              <artifactId>hadoop-hdfs</artifactId>

              <version>2.7.2</version>

          </dependency>

          <dependency>

              <groupId>jdk.tools</groupId>

              <artifactId>jdk.tools</artifactId>

              <version>1.8</version>

              <scope>system</scope>

              <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>

          </dependency>

    </dependencies>

    </dependencies>

    log4j.rootLogger=INFO,stdout

    log4j.appender.stdout=org.apache.log4j.ConsoleAppender

    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

    log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] -%m%n

    log4j.appender.logfilefile=org.apache.log4j.FileAppender

    log4j.appender.logefile.File=target/spring.log

    log4j.appender.logfile.layout=org.apache.log4j.PatternLayout

    log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] -%m%n

    相关文章

      网友评论

          本文标题:HDFS客户端操作 -学习笔记三

          本文链接:https://www.haomeiwen.com/subject/ovalmhtx.html