Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I'm trying to compile a Spark batch job, with compatibility with Java 7, because the cloudera cluster we are using has only java 7 installed (and I can not update it).
The error I get is:
org.talend.designer.runprocess.ProcessorException: Routines "TalendDate" has compile errors
Error Line: 298
Detail Message: Lambda expressions are allowed only at source level 1.8 or above
The Talend process is a simple read a line from hive -> show the result.
I already tried to uninstall all java versions I had in the system and installed only the last version of jdk 8.
These are my current compiler settings: (Talend Data fabric version 7.1)
Any suggestions?
Thanks
Is the Studio process itself running in java 8 or 7?
You can change which JVM the Studio uses by editing a shortcut to the executable. This is what I have to force Studio to use Java 8 because I also have 7 installed.
Talend-Studio-win-x86_64 -vm "C:\Program Files\Java\jre1.8.0_162\bin" -vmargs -Xms1024m -Xmx4096m -XX:MaxPermSize=512m
Really thanks for the answer.
I'm sure Talend is working with java 1.8, because this version of the studio require it.
If I do the reverse operation, forcing Talend to run on java 7:
Talend-Studio-win-x86_64 -vm "C:\Program Files\Java\jre7\bin" -vmargs -Xms1024m -Xmx4096m -XX:MaxPermSize=512m
It gives me the error: