Since the configuration is hadoop-2.7.1, it will be found later during startup
The terminal executes./start yarn sh
starting yarn daemons
Error: Cannot find configuration directory: /etc/hadoop
Error: Cannot find configuration directory: /etc/hadoop
This is the reason why the directory cannot be found. You can find the solution by reading the corresponding shell script~
Solution:
Configures the directory where a Hadoop configuration file is located in hadoop-env.sh (codes as below):
export HADOOP_CONF_DIR=/opt/hadoop-2.7.1/etc/hadoop/
Execute command
source hadoop-env.sh
Read More:
- [Solved] Hadoop Error: HADOOP_HOME and hadoop.home.dir are unset.
- Hadoop Startup Error: sbin/start-dfs.sh [How to Solve]
- [Solved] Hadoop Error: Exception in thread “main“ java.io.IOException: Error opening job jar: /usr/local/hadoop-2.
- [Solved] Springboot upload failed to find the temporary directory error
- [Solved] hadoop Error: 9000 failed on connection exception java.net.ConnectException Denied to Access
- MapReduce running in Hadoop environment with maven
- Run hadoop fs -put Command Error: java.io.IOException: Got error, status message , ack with firstBadLink
- How to Solve classnotfoundexception error in spark without Hadoop runtime
- ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration…
- [Solved] Hadoop failed on connection exception: java.net.ConnectException: Connection refused
- [Solved] Flink1.12 integrate Hadoop 3.X error: java.lang.RuntimeException…
- Mybatis plus configuration console prints complete SQL statement with parameters
- Springboot controls the startup of rabbitmq through configuration files
- Java Running Error: Could not find or load main class
- Nacos boot error, unable to find Java_HOME [How to Solve]
- [Solved] Springboot Project Startup Error: Unable to Identify bootstrap.yml Configuration
- SpringBoot—Error starting ApplicationContext. To display the auto-configuration report re-run your a
- Maven error: Could not find artifact jdk.tools [How to Solve]
- [Solved] Tomcat Startup Error: Error deploying web application directory
- Spring Boot Error starting ApplicationContext. To display the auto-configuration report re-run you