HDFS源码文件过大,IDEA打开失败解决方法

问题现象:hadoop 3.1.0源码文件ClientNamenodeProtocolProtos大小4M+,IDEA打开时加载失败,ClientNamenodeProtocolPB报错找不到类。

--------------------------------------------------------------------------------------------------------------------------------------

问题原因:IDEA默认加载文件大小不超过2500KB,配置项为idea.max.intellisense.filesize(IDEA安装目录bin/idea.properties文件)

------------------------------------------------------------------- -------------------------------------------------------------------

解决方法:

方法1: 

  编辑bin/idea.properties, 将其中的idea.max.intellisense.filesize设置为更大的值,比如10M+.

  重启生效。 

方法2: 

  打开“Help”菜单栏,点击“Edit Custom Properties”,在新生成的idea.properties文件(Windows一般在C盘用户目录下),增加选项

  idea.max.intellisense.filesize=25000(自行设置该value值),重启生效。

 

 

 

 

相关配置项参考:

/*------------------------------------------bin/idea.properties--------------------------------------------*/ 

#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE should provide code assistance for.
# The larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. Remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#---------------------------------------------------------------------
idea.max.intellisense.filesize=99999
#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE is able to open.
#---------------------------------------------------------------------
idea.max.content.load.filesize=20000

 

转载于:https://www.cnblogs.com/HopkinsCybn/p/10013856.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值