[ 
https://issues.apache.org/jira/browse/SPARK-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14011810#comment-14011810
 ] 

Patrick Wendell commented on SPARK-1954:
----------------------------------------

Have you tried running sbt/sbt gen-idea with SPARK_YARN=true and 
SPARK_HADOOP_VERSION=2.2.0?

> Make it easier to get Spark on YARN code to compile in IntelliJ
> ---------------------------------------------------------------
>
>                 Key: SPARK-1954
>                 URL: https://issues.apache.org/jira/browse/SPARK-1954
>             Project: Spark
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Sandy Ryza
>
> When loading a project through a Maven pom, IntelliJ allows switching on 
> profiles, but, to my knowledge, doesn't provide a way to set arbitrary 
> properties. 
> To get Spark-on-YARN code to compile in IntelliJ, I need to manually change 
> the hadoop.version in the root pom.xml to 2.2.0 or higher.  This is very 
> cumbersome when switching branches.
> It would be really helpful to add a profile that sets the Hadoop version that 
> IntelliJ can switch on.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to