hive日常报错 | 处理步骤

报错

首先,hive最基本的查询语句运行报错了:

hive日常报错 | 处理步骤_第1张图片

Caused by: java.net.ConnectException: Your endpoint configuration is wrong; For more details see:  http://wiki.apache.org/hadoop/UnsetHostnameOrPort
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)


Caused by: java.net.ConnectException: 拒绝连接
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)

我们从hive客户端不能很明确知道错误,这时候就需要就行拍错的额一些步骤了

查看hive日志

cd /tmp/用户/

tail -n 500 hive.log
Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.SafeModeException): Cannot delete /tmp/hive/atguigu/4645f531-0c99-42fa-8520-192d76be4737/hive_2023-12-09_16-46-34_881_5043639689008337438-1. Name node is in safe mode.
Resources are low on NN. Please add or free up more resourcesthen turn off safe mode manually. NOTE:  If you turn off safe mode before adding resources, the NN will immediately return to safe mode. Use "hdfs dfsadmin -safemode leave" to turn safe mode off. NamenodeHostName:hadoop102

这时候我们知道hdfs处于安全模式

关闭安全模式

查看当前安全模式状态

hdfs dfsadmin -safemode get

果然处于开启状态

关闭安全模式

你可能感兴趣的:(hive,hadoop)