【英文】为Hadoop指定配置文件目录

Preface

In order to prevent errors, manually specify the Hadoop configuration file directory in the Hadoop startup script.

Modify configuration

  • Edit the configuration file
1
vim hadoop-env.sh
  • Modify line 33 of the hadoop-env.sh configuration file to manually specify the Hadoop configuration file directory
1
export HADOOP_CONF_DIR=/home/app/hadoop-2.7.1/etc/hadoop

Complete