2021-11-06 16:38:56,759 WARN [org.apache.hadoop.metrics2.impl.MetricsConfig] - Cannot locate configuration: tried hadoop-metrics2-jobtracker.properties,hadoop-metrics2.properties
2021-11-06 16:38:56,798 INFO [org.apache.hadoop.metrics2.impl.MetricsSystemImpl] - Scheduled Metric snapshot period at 10 second(s).
2021-11-06 16:38:56,798 INFO [org.apache.hadoop.metrics2.impl.MetricsSystemImpl] - JobTracker metrics system started
Exception in thread "main" org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory file:/D:/output already exists
The key point is the last sentence. The output path cannot exist. The last directory address must not be created.
Solution:
Delete the previously created directory or add a directory address that does not exist in the code
Similar Posts:
- Mapreduce:Split metadata size exceeded 10000000
- Java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument
- [Solved] hadoop:hdfs.DFSClient: Exception in createBlockOutputStream
- Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
- [Solved] wordcount Error: org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist:
- [Solved] HDFS Error: org.apache.hadoop.security.AccessControlException: Permission denied
- [Solved] Hadoop running jar package error: java.lang.exception: java.lang.arrayindexoutofboundsexception: 1
- [Solved] HDFS Filed to Start namenode Error: Premature EOF from inputStream;Failed to load FSImage file, see error(s) above for more info
- [Solved] Call to localhost/127.0.0.1:9000 failed on connection exception:java.net.ConnectException
- [Solved] Hadoop Error: Input path does not exist: hdfs://Master:9000/user/hadoop/input