Caused by: java.lang.IllegalStateException: com.google.protobuf.InvalidProtocolBufferException: Prot

1报错
hadoop中namenode报错Caused by: java.lang.IllegalStateException: com.google.protobuf.InvalidProtocolBufferException: Protocol message was too large. May be malicious. Use CodedInputStream.setSizeLimit() to increase the size limit

Caused by: java.lang.IllegalStateException: com.google.protobuf.InvalidProtocolBufferException: Prot_第1张图片

2原因
Namenode 拒绝块报告,因为它们大于 128 MB,因此陷入安全模式
3解决办法
在hdfs-site.xml中添加以下配置
ipc.maximum.data.length=268435456
默认的ipc.maximum.data.length是128MB,修改为256MB

你可能感兴趣的:(java,开发语言)