errors when build spark-mllib_2.10 - eclipse

I checked out the apache spark project, trying to build the mllib_2.10. However, I got the following error. What have I missed here? Thank you!
I then tried in eclipse: Run as -> Maven build -> goal: package and get the following error:
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp913470727-59183"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "sparkWorker2-akka.remote.default-remote-dispatcher-42"
Exception in thread "qtp913470727-59184" Exception in thread "qtp1386084932-462" Exception in thread "qtp1406684524-398"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp149043988-424"
Exception in thread "qtp1386084932-59186"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp913470727-59184"
Exception in thread "qtp1406684524-397" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "sparkWorker2-scheduler-1"
Exception in thread "qtp1386084932-455" Exception in thread "qtp1406684524-394" Exception in thread "qtp149043988-59182" Exception in thread "qtp913470727-467" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "Timer-4" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "qtp149043988-419" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "sparkMaster-scheduler-1"
Exception in thread "qtp149043988-418" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "sparkWorker1-akka.actor.default-dispatcher-52"
And I already increase the memory in eclipse.ini like below:
-XX:MaxPermSize=512m
-Xms128m
-Xmx2048m
Is there a way to get this thing work in eclipse? Thanks!

If you can build it on the command line successfully, it will work in Eclipse with M2Eclipse as well.
Just use Run As - Maven build ...
and configure as desired.
The warnings you see are about the incremental behaviour within Eclipse, but even if they dont fully match and work, you will still be able to build the project.
If you are running out of memory it might be the meory allocated to Maven or Eclipse. Set the memory for Maven with the MAVEN_OPTS environment variable.

Related

jboss 6.1 PermGen space

I have uploaded PermGen size in run.conf.bat but still showing problem
while running my project.
I have changed the permGen Sapce as:JAVA_OPTS="-Xms512m -Xmx1024m -XX:MaxPermSize=1024m
Error:
Unexpected error during load of:jxl.read.biff.FormulaRecord:
java.lang.OutOfMemoryError: PermGen space

java.lang.NoSuchMethodError: com.google.common.collect.Maps.safeGet(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object;

I am using guava-13.0.jar.
It is included in the classpath.
I am using netbeans Java Free Form Project.
Though I clean-build the project, I am getting the following exception.
Uncaught exception in thread main
java.lang.NoSuchMethodError: com.google.common.collect.Maps.safeGet(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object;
at com.google.common.collect.StandardTable.get(StandardTable.java:117)
at com.google.common.collect.HashBasedTable.get(HashBasedTable.java:135)
Can someone point out how can I fix this error?

Exception in thread "main" java.lang.NoSuchMethodError: net.sf.jasperreports.engine.design.JasperDesign.setIgnorePagination(Z)V

I am new to dynamicreports, the example can be found at the link, but it gives me the following exception.
Please help me to find the issue.
Exception in thread "main" java.lang.NoSuchMethodError: net.sf.jasperreports.engine.design.JasperDesign.setIgnorePagination(Z)V
Regards
You must be sure that you are using the correct version of the libraries.
http://dynamicreports.sourceforge.net/requirements.html
In your case you have an error with jasperreports. With DynamicReports 3.0.2, the jasperreports correct version is 4.7.0 or above

Getting 'An internal error occurred during: "Compacting resource model".' when building a project in eclipse indigo

I am getting the following error when building a project in eclipse indigo:
An internal error occurred during: "Compacting resource model". Java heap.
Is this a memory problem?
Is it possible to compile a single package in eclipse (like similar to netbeans)? I had got a similar memory problem in netbeans but I got around it by compiling smaller number of packages at a time.
I had compiled the same project in ganemede without any problem.
UPDATE:
Stacktrace:
!ENTRY org.eclipse.core.jobs 4 2 2012-03-07 09:39:49.520
!MESSAGE An internal error occurred during: "Compacting resource model".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.newKeyIterator(Unknown Source)
at java.util.HashMap$KeySet.iterator(Unknown Source)
at java.util.HashSet.iterator(Unknown Source)
at org.eclipse.core.internal.jobs.JobManager.findBlockingJob(JobManager.java:685)
at org.eclipse.core.internal.jobs.JobManager.doRunNow(JobManager.java:1085)
at org.eclipse.core.internal.jobs.JobManager.runNow(JobManager.java:1080)
at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:89)
at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:286)
at org.eclipse.core.internal.utils.StringPoolJob.run(StringPoolJob.java:101)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!ENTRY org.eclipse.core.jobs 4 2 2012-03-07 09:39:49.521
!MESSAGE An internal error occurred during: "Build Project".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
at org.eclipse.wst.jsdt.core.compiler.CharOperation.concat(CharOperation.java:689)
at org.eclipse.wst.jsdt.core.infer.InferEngine.createAnonymousTypeName(InferEngine.java:682)
at org.eclipse.wst.jsdt.core.infer.InferEngine.createAnonymousType(InferEngine.java:658)
at org.eclipse.wst.jsdt.core.infer.InferEngine.visit(InferEngine.java:2072)
at org.eclipse.wst.jsdt.internal.compiler.DelegateASTVisitor.visit(DelegateASTVisitor.java:855)
at org.eclipse.wst.jsdt.internal.compiler.ast.ObjectLiteral.traverse(ObjectLiteral.java:66)
at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.traverse(MessageSend.java:459)
at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:174)
at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.traverse(FunctionExpression.java:48)
at org.eclipse.wst.jsdt.internal.compiler.ast.ObjectLiteralField.traverse(ObjectLiteralField.java:63)
at org.eclipse.wst.jsdt.internal.compiler.ast.ObjectLiteral.traverse(ObjectLiteral.java:69)
at org.eclipse.wst.jsdt.internal.compiler.ast.ObjectLiteralField.traverse(ObjectLiteralField.java:63)
at org.eclipse.wst.jsdt.internal.compiler.ast.ObjectLiteral.traverse(ObjectLiteral.java:69)
at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.traverse(MessageSend.java:459)
at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:174)
at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.traverse(FunctionExpression.java:48)
at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.traverse(MessageSend.java:455)
at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:584)
at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:539)
at org.eclipse.wst.jsdt.core.infer.InferEngine.doInfer(InferEngine.java:1747)
at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.inferTypes(Parser.java:7093)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:561)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.beginToCompile(Compiler.java:328)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Compiler.java:342)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:288)
at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:86)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:254)
at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:58)
at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:291)
at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:194)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
Open eclipse configuration(eclipse.ini) file folder from eclipse directory
-vmargs
-Xms128m
-Xmx512m
-XX:MaxPermSize=128m
place this code ...its work for me
You need more heap (RAM).
-Xmx in the eclipse.ini file (for me on Linux Ubuntu it is here: "/home/my_username/eclipse/cpp-2019-12/eclipse/eclipse.ini") specifies the maximum heap space (RAM) you are authorizing Eclipse to use. Give it more. If -Xmx512m (512 MB) of RAM isn't enough, try more: -Xmx1024m, or -Xmx2048m, etc, until it is enough and you quit getting crashes.
I talk about this in my Eclipse document here:
readme with links to it in PDF or Google Drive form: https://github.com/ElectricRCAircraftGuy/eRCaGuy_dotfiles/tree/master/eclipse
Eclipse is powerful, but it is a terrible terrible terrible memory hog. On some machines for some repos I set it to -Xmx32768 (32 GB--yeah--nuts--but try letting Eclipse index a massive repo with the Boost library included and this still isn't enough).
I increased -Xmx by 1GB, from 3 to 4 (-Xmx4120m) and I still have Eclipse doing some laundry (4,5 GB it took from my operating system), but at least I'm able to work (edit and save files). Previously, with 3GB, I couldn't - Eclipse went white.
Plus - I closed 3 projects I wasn't using.

eclipse Platform.getOS/getV throwing exception

Eclipse Platform.getOS is throwing null Pointer Exception.
Even any kind of operation with Platform is throing exception.
Exception in thread "main"
java.lang.NullPointerException at
org.eclipse.core.internal.runtime.InternalPlatform.getOS(InternalPlatform.java:454)
at
org.eclipse.core.runtime.Platform.getOS(Platform.java:1185)
at Test.main(Test.java:6)
Are you running your classes on top of OSGi or just accessing the Platform class within a plain java application?