D:\develop\Java\jdk1.8.0_202\bin\java.exe “-javaagent:F:\IDEA\IntelliJ IDEA 2019.3.3\lib\idea_rt.jar=7676:F:\IDEA\IntelliJ IDEA 2019.3.3\bin” -Dfile.encoding=UTF-8 -classpath D:\develop\Java\jdk1.8.0_202\jre\lib\charsets.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\deploy.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\ext\access-bridge-64.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\ext\cldrdata.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\ext\dnsns.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\ext\jaccess.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\ext\jfxrt.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\ext\localedata.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\ext\nashorn.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\ext\sunec.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\ext\sunjce_provider.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\ext\sunmscapi.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\ext\sunpkcs11.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\ext\zipfs.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\javaws.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\jce.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\jfr.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\jfxswt.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\jsse.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\management-agent.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\plugin.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\resources.jar;D:\develop\Java\jdk1.8.0_202\jre\lib\rt.jar;F:\WorkSpace\MR\target\classes;F:\apache-maven-3.6.3\jar\junit\junit\4.13\junit-4.13.jar;F:\apache-maven-3.6.3\jar\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;F:\apache-maven-3.6.3\jar\org\apache\logging\log4j\log4j-core\2.8.2\log4j-core-2.8.2.jar;F:\apache-maven-3.6.3\jar\org\apache\logging\log4j\log4j-api\2.8.2\log4j-api-2.8.2.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-common\2.7.2\hadoop-common-2.7.2.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-annotations\2.7.2\hadoop-annotations-2.7.2.jar;F:\apache-maven-3.6.3\jar\com\google\guava\guava\11.0.2\guava-11.0.2.jar;F:\apache-maven-3.6.3\jar\commons-cli\commons-cli\1.2\commons-cli-1.2.jar;F:\apache-maven-3.6.3\jar\org\apache\commons\commons-math3\3.1.1\commons-math3-3.1.1.jar;F:\apache-maven-3.6.3\jar\xmlenc\xmlenc\0.52\xmlenc-0.52.jar;F:\apache-maven-3.6.3\jar\commons-httpclient\commons-httpclient\3.1\commons-httpclient-3.1.jar;F:\apache-maven-3.6.3\jar\commons-codec\commons-codec\1.4\commons-codec-1.4.jar;F:\apache-maven-3.6.3\jar\commons-io\commons-io\2.4\commons-io-2.4.jar;F:\apache-maven-3.6.3\jar\commons-net\commons-net\3.1\commons-net-3.1.jar;F:\apache-maven-3.6.3\jar\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;F:\apache-maven-3.6.3\jar\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;F:\apache-maven-3.6.3\jar\org\mortbay\jetty\jetty\6.1.26\jetty-6.1.26.jar;F:\apache-maven-3.6.3\jar\org\mortbay\jetty\jetty-util\6.1.26\jetty-util-6.1.26.jar;F:\apache-maven-3.6.3\jar\javax\servlet\jsp\jsp-api\2.1\jsp-api-2.1.jar;F:\apache-maven-3.6.3\jar\com\sun\jersey\jersey-core\1.9\jersey-core-1.9.jar;F:\apache-maven-3.6.3\jar\com\sun\jersey\jersey-json\1.9\jersey-json-1.9.jar;F:\apache-maven-3.6.3\jar\org\codehaus\jettison\jettison\1.1\jettison-1.1.jar;F:\apache-maven-3.6.3\jar\com\sun\xml\bind\jaxb-impl\2.2.3-1\jaxb-impl-2.2.3-1.jar;F:\apache-maven-3.6.3\jar\javax\xml\bind\jaxb-api\2.2.2\jaxb-api-2.2.2.jar;F:\apache-maven-3.6.3\jar\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;F:\apache-maven-3.6.3\jar\javax\activation\activation\1.1\activation-1.1.jar;F:\apache-maven-3.6.3\jar\org\codehaus\jackson\jackson-jaxrs\1.8.3\jackson-jaxrs-1.8.3.jar;F:\apache-maven-3.6.3\jar\org\codehaus\jackson\jackson-xc\1.8.3\jackson-xc-1.8.3.jar;F:\apache-maven-3.6.3\jar\com\sun\jersey\jersey-server\1.9\jersey-server-1.9.jar;F:\apache-maven-3.6.3\jar\asm\asm\3.1\asm-3.1.jar;F:\apache-maven-3.6.3\jar\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;F:\apache-maven-3.6.3\jar\log4j\log4j\1.2.17\log4j-1.2.17.jar;F:\apache-maven-3.6.3\jar\net\java\dev\jets3t\jets3t\0.9.0\jets3t-0.9.0.jar;F:\apache-maven-3.6.3\jar\org\apache\httpcomponents\httpclient\4.1.2\httpclient-4.1.2.jar;F:\apache-maven-3.6.3\jar\org\apache\httpcomponents\httpcore\4.1.2\httpcore-4.1.2.jar;F:\apache-maven-3.6.3\jar\com\jamesmurty\utils\java-xmlbuilder\0.4\java-xmlbuilder-0.4.jar;F:\apache-maven-3.6.3\jar\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;F:\apache-maven-3.6.3\jar\commons-configuration\commons-configuration\1.6\commons-configuration-1.6.jar;F:\apache-maven-3.6.3\jar\commons-digester\commons-digester\1.8\commons-digester-1.8.jar;F:\apache-maven-3.6.3\jar\commons-beanutils\commons-beanutils\1.7.0\commons-beanutils-1.7.0.jar;F:\apache-maven-3.6.3\jar\commons-beanutils\commons-beanutils-core\1.8.0\commons-beanutils-core-1.8.0.jar;F:\apache-maven-3.6.3\jar\org\slf4j\slf4j-api\1.7.10\slf4j-api-1.7.10.jar;F:\apache-maven-3.6.3\jar\org\slf4j\slf4j-log4j12\1.7.10\slf4j-log4j12-1.7.10.jar;F:\apache-maven-3.6.3\jar\org\codehaus\jackson\jackson-core-asl\1.9.13\jackson-core-asl-1.9.13.jar;F:\apache-maven-3.6.3\jar\org\codehaus\jackson\jackson-mapper-asl\1.9.13\jackson-mapper-asl-1.9.13.jar;F:\apache-maven-3.6.3\jar\org\apache\avro\avro\1.7.4\avro-1.7.4.jar;F:\apache-maven-3.6.3\jar\com\thoughtworks\paranamer\paranamer\2.3\paranamer-2.3.jar;F:\apache-maven-3.6.3\jar\org\xerial\snappy\snappy-java\1.0.4.1\snappy-java-1.0.4.1.jar;F:\apache-maven-3.6.3\jar\com\google\protobuf\protobuf-java\2.5.0\protobuf-java-2.5.0.jar;F:\apache-maven-3.6.3\jar\com\google\code\gson\gson\2.2.4\gson-2.2.4.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-auth\2.7.2\hadoop-auth-2.7.2.jar;F:\apache-maven-3.6.3\jar\org\apache\directory\server\apacheds-kerberos-codec\2.0.0-M15\apacheds-kerberos-codec-2.0.0-M15.jar;F:\apache-maven-3.6.3\jar\org\apache\directory\server\apacheds-i18n\2.0.0-M15\apacheds-i18n-2.0.0-M15.jar;F:\apache-maven-3.6.3\jar\org\apache\directory\api\api-asn1-api\1.0.0-M20\api-asn1-api-1.0.0-M20.jar;F:\apache-maven-3.6.3\jar\org\apache\directory\api\api-util\1.0.0-M20\api-util-1.0.0-M20.jar;F:\apache-maven-3.6.3\jar\org\apache\curator\curator-framework\2.7.1\curator-framework-2.7.1.jar;F:\apache-maven-3.6.3\jar\com\jcraft\jsch\0.1.42\jsch-0.1.42.jar;F:\apache-maven-3.6.3\jar\org\apache\curator\curator-client\2.7.1\curator-client-2.7.1.jar;F:\apache-maven-3.6.3\jar\org\apache\curator\curator-recipes\2.7.1\curator-recipes-2.7.1.jar;F:\apache-maven-3.6.3\jar\com\google\code\findbugs\jsr305\3.0.0\jsr305-3.0.0.jar;F:\apache-maven-3.6.3\jar\org\apache\htrace\htrace-core\3.1.0-incubating\htrace-core-3.1.0-incubating.jar;F:\apache-maven-3.6.3\jar\org\apache\zookeeper\zookeeper\3.4.6\zookeeper-3.4.6.jar;F:\apache-maven-3.6.3\jar\org\apache\commons\commons-compress\1.4.1\commons-compress-1.4.1.jar;F:\apache-maven-3.6.3\jar\org\tukaani\xz\1.0\xz-1.0.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-client\2.7.2\hadoop-client-2.7.2.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-mapreduce-client-app\2.7.2\hadoop-mapreduce-client-app-2.7.2.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-mapreduce-client-common\2.7.2\hadoop-mapreduce-client-common-2.7.2.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-yarn-client\2.7.2\hadoop-yarn-client-2.7.2.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-yarn-server-common\2.7.2\hadoop-yarn-server-common-2.7.2.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-mapreduce-client-shuffle\2.7.2\hadoop-mapreduce-client-shuffle-2.7.2.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-yarn-api\2.7.2\hadoop-yarn-api-2.7.2.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-mapreduce-client-core\2.7.2\hadoop-mapreduce-client-core-2.7.2.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-yarn-common\2.7.2\hadoop-yarn-common-2.7.2.jar;F:\apache-maven-3.6.3\jar\com\sun\jersey\jersey-client\1.9\jersey-client-1.9.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-mapreduce-client-jobclient\2.7.2\hadoop-mapreduce-client-jobclient-2.7.2.jar;F:\apache-maven-3.6.3\jar\org\apache\hadoop\hadoop-hdfs\2.7.2\hadoop-hdfs-2.7.2.jar;F:\apache-maven-3.6.3\jar\commons-daemon\commons-daemon\1.0.13\commons-daemon-1.0.13.jar;F:\apache-maven-3.6.3\jar\io\netty\netty\3.6.2.Final\netty-3.6.2.Final.jar;F:\apache-maven-3.6.3\jar\io\netty\netty-all\4.0.23.Final\netty-all-4.0.23.Final.jar;F:\apache-maven-3.6.3\jar\xerces\xercesImpl\2.9.1\xercesImpl-2.9.1.jar;F:\apache-maven-3.6.3\jar\xml-apis\xml-apis\1.3.04\xml-apis-1.3.04.jar;F:\apache-maven-3.6.3\jar\org\fusesource\leveldbjni\leveldbjni-all\1.8\leveldbjni-all-1.8.jar com.atguigu.mr.wordcount.WordCountDriver
2020-03-25 11:03:27,681 INFO [org.apache.hadoop.conf.Configuration.deprecation] - session.id is deprecated. Instead, use dfs.metrics.session-id
2020-03-25 11:03:27,688 INFO [org.apache.hadoop.metrics.jvm.JvmMetrics] - Initializing JVM Metrics with processName=JobTracker, sessionId=
Exception in thread “main” org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory file:/D:/output already exists
at org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:146)
at org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:266)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:139)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1290)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1287)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1287)
at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1308)
at com.atguigu.mr.wordcount.WordCountDriver.main(WordCountDriver.java:72)
Process finished with exit code 1
原因:hadoop 由于进行的是耗费资源的计算,生产的结果默认是不能被覆盖的,因此中间结果输出目录一定不能存在,否则出现这个错误。
解决方法:删掉对应的Output目录。