scala - Error on opening the Apache Spark source code in IntelliJ IDEA -


i’m trying open apache spark source code in intellij idea.

i opened pom.xml on spark source code root directory.
project tree displayed in project tool window.

but, when open source file, org.apache.spark.deploy.yarn.clientbase.scala, lot of red marks shows on editor scroll bar. ‘cannot resolve symbol’ error. cannot resolve stringops.format.

how can fix it?

on file | project structure window, following error message displayed pink background:

library ‘maven: org.scala-lang:scala-compiler-bundle:2.10.4’ not used 

can hint?

the versions i’m using follows:

  • os: windows 7
  • intellij idea: 13.1.6
  • scala plugin: 0.41.2
  • spark source code: 1.1.1 (with few file modified me)

i’ve tried fix , error state changed somewhat, gave fixing on own (with googling) , deleted .idea folder , started over. i’m seeing errors described above.

update:

i noticed thw following popup:

maven projects need imported: import changes enable auto-import 

and enabled auto-import according articles intellij: maven projects need imported: import changes enable auto-import , http://javafortesters.blogspot.kr/2013/09/do-enable-auto-import-in-intellij-for.html . intellij resolves base scala symbols.

but still cannot resolve few symbols.

the notable file yarn/common/src/main/scala/org/apache/spark/deploy/yarn/clientbase.scala. in file, clientarguments class not resolved. intellij suggests importing org.apache.spark.deploy.clientbase, in fact clientargument class in same package clientbase - is, org.apache.spark.deploy.yarn.clientargument.

why intellij confuses this?

thank you.

you need change scala compiler intellij “sbt incremental compiler” (see screenshot below).

you can access going “preferences” -> “scala”.

note: supported version of intellij scala plugin. see link details. http://blog.jetbrains.com/scala/2014/01/30/try-faster-scala-compiler-in-intellij-idea-13-0-2/


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -