简体   繁体   English

无法在pentaho汤匙中打开Excel(.xlsx)文件

[英]Unable to open excel (.xlsx) file in pentaho spoon

I have an excel sheet (.xlsx format) . 我有一个Excel工作表(.xlsx format) But when I try opening it using " ExcelInput ", I get 但是当我尝试使用“ ExcelInput ”打开它时,我得到

Unable to opendialog for this step. 此步骤无法打开对话框。
java.lang.OutOfMemoryError: GC overhead limit exceeded error java.lang.OutOfMemoryError:超出GC开销限制错误

error. 错误。 I have enabled the " Excel 2007 XLSX (Apache POI) " in content as well. 我还启用了内容中的“ Excel 2007 XLSX (Apache POI) ”。

java.lang.OutOfMemoryError: GC overhead limit exceeded error java.lang.OutOfMemoryError:超出GC开销限制错误

This error occurs especially when the process is out of Memory. 尤其是当进程内存不足时,会发生此错误。 It means that Garbage Collection(GC) has been trying to free the memory but is unable to do so. 这意味着垃圾回收(GC)一直在尝试释放内存,但无法这样做。 Check this article for more. 检查文章了解更多。

The possible solution is to increase the memory size of the application, Kettle in this case. 可能的解决方案是增加应用程序(在这种情况下为Kettle)的内存大小。 You can do so by editing the " kitchen.sh / pan.sh " or " kitchen.bat / pan.bat " file located inside the " ../pentaho/design-tools/data-integration ". 您可以通过编辑“ ../pentaho/design-tools/data-integration ”内的“ kitchen.sh / pan.sh ”或“ kitchen.bat / pan.bat ”文件来../pentaho/design-tools/data-integration Increase the JAVAMAXMEM number to larger number maybe 1024. JAVAMAXMEM编号增加到更大的数量,可能为1024。

Check the image as below: 检查图像如下:

在此处输入图片说明

Hoping this might help you in reading the excel file :) 希望这可以帮助您阅读Excel文件:)

If you use the Spoon client (ie the default application used when running the Pentaho Data Integration - PDI), you can change the parameters in Spoon.bat (if you use windows) or Spoon.sh (if you use unix). 如果使用Spoon客户端(即运行Pentaho数据集成-PDI时使用的默认应用程序),则可以更改Spoon.bat(如果使用Windows)或Spoon.sh(如果使用unix)中的参数。 The java memory parameters are Xms and Xmx. Java内存参数是Xms和Xmx。 You would find them in a statement like the following: 您会在类似以下的语句中找到它们:

if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m"

After changing the value, you should restart spoon. 更改值后,应重新启动勺子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM