由于impala的配置文件是依赖于hadoop和hive的,所以在部署impala时,会在之前配置好的hadoop配置文件的基础上再进行修改。
本次报错主要体现在 修改了hdfs-site.xml
<property>
<name>dfs.domain.socket.path</name>
<value>/var/run/hdfs-sockets/dn</value>
</property>
配置后,启动hadoop,datanode启动失败,查看日志文件发现错误
WARN org.apache.hadoop.hdfs.server.datanode.DataNode: File descriptor passing is disabled because libhadoop cannot be loaded.
2022-03-20 16:59:53,115 FATAL org.apache.hadoop.hdfs.server.datanode.DataNode: Exception in secureMain
java.lang.RuntimeException: Although a UNIX domain socket path is configured as /var/lib/hadoop-hdfs/dn_socket, we cannot start a localDataXceiverServer because libhadoop cannot be loaded.
但是不知道具体的错误原因,故开启debug模式,查看具体报错的信息。
vi /etc/bashrc //我的环境变量都是在这个文件中,根据自身环境变量修改位置编辑
export HADOOP_ROOT_LOGGER=DEBUG,console //添加这一行
source /etc/ba