码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-11-25 00:04:26      阅读:409      评论:0      收藏:0      [点我收藏+]

标签:问题   png   安装   默认   rop   style   .com   code   oat   

问题现象: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

 

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

标签:问题   png   安装   默认   rop   style   .com   code   oat   

原文地址:https://www.cnblogs.com/HopkinsCybn/p/10013856.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!