经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » 大数据/云/AI » Hadoop » 查看文章
HDFS源码文件过大,IDEA打开失败解决方法
来源:cnblogs  作者:Hopkins'Cybernetics  时间:2018/11/25 19:51:49  对本文有异议

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

 

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号