-
[Spark] IntelliJ에서 lambda not supported at this language level '5'ComputerScience/스파크 2020. 7. 13. 15:12
maven으로 스파크 개발 중 IntelliJ환경에서 람다함수를 사용할 때
lambda not supported at this language level 5 와 같은 오류가 뜬다.
이는 1.8 미만에선 람다함수를 지원하지 않기 때문이다.
IntelliJ 설정에서 바꿔줘도 개발자체가 maven 종속이라 안되나보다.
해결방법
pom.xml에 다음을 추가하고 빌드해준다.
<project>바로 하위단계에 넣어주어야 한다.
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.3</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build>
해결 'ComputerScience > 스파크' 카테고리의 다른 글
[spark]Exception in thread "main" java.net.BindException: Can't assign requested address: Service 'sparkDriver' failed after 16 retries! 에러 (0) 2020.07.20 [Spark] RDD의 Action 연산 (0) 2020.07.20 [Spark] 스파크컨텍스트 , RDD 생성 (0) 2020.07.13 [Spark] RDD란? (0) 2020.07.10