You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/02/06 10:47:41 UTC
[jira] [Resolved] (SPARK-19470) Spark 1.6.4 in Intellij can't use
jetty 8
[ https://issues.apache.org/jira/browse/SPARK-19470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-19470.
-------------------------------
Resolution: Invalid
There is no Spark 1.6.4, and you can't expect to change a dependency with no other changes required in the code.
> Spark 1.6.4 in Intellij can't use jetty 8
> -----------------------------------------
>
> Key: SPARK-19470
> URL: https://issues.apache.org/jira/browse/SPARK-19470
> Project: Spark
> Issue Type: Bug
> Components: Project Infra
> Affects Versions: 1.6.1, 1.6.4
> Reporter: Mingda Li
> Original Estimate: 1m
> Remaining Estimate: 1m
>
> When I build the project in Intellij, I get the following error:
> [error] /Users/MingdaLi/Desktop/ucla_4/research/spark-branch-1.6.4/core/src/main/scala/org/apache/spark/HttpServer.scala:22: object ssl is not a member of package org.eclipse.jetty.server
> [error] import org.eclipse.jetty.server.ssl.SslSocketConnector
> [error] ^
> [error] /Users/MingdaLi/Desktop/ucla_4/research/spark-branch-1.6.4/core/src/main/scala/org/apache/spark/HttpServer.scala:28: object bio is not a member of package org.eclipse.jetty.server
> [error] import org.eclipse.jetty.server.bio.SocketConnector
> [error] ^
> [error] /Users/MingdaLi/Desktop/ucla_4/research/spark-branch-1.6.4/core/src/main/scala/org/apache/spark/HttpServer.scala:78: not found: type SslSocketConnector
> [error] .map(new SslSocketConnector(_)).getOrElse(new SocketConnector)
> [error] ^
> [error] /Users/MingdaLi/Desktop/ucla_4/research/spark-branch-1.6.4/core/src/main/scala/org/apache/spark/HttpServer.scala:87: value setThreadPool is not a member of org.eclipse.jetty.server.Server
> [error] server.setThreadPool(threadPool)
> [error] ^
> [error] /Users/MingdaLi/Desktop/ucla_4/research/spark-branch-1.6.4/core/src/main/scala/org/apache/spark/HttpServer.scala:106: value getLocalPort is not a member of org.eclipse.jetty.server.Connector
> [error] val actualPort = server.getConnectors()(0).getLocalPort
> [error] ^
> [error] /Users/MingdaLi/Desktop/ucla_4/research/spark-branch-1.6.4/core/src/main/scala/org/apache/spark/SSLOptions.scala:66: type mismatch;
> [error] found : String
> [error] required: java.security.KeyStore
> [error] trustStore.foreach(file => sslContextFactory.setTrustStore(file.getAbsolutePath))
> [error] ^
> [error] /Users/MingdaLi/Desktop/ucla_4/research/spark-branch-1.6.4/core/src/main/scala/org/apache/spark/deploy/rest/RestSubmissionServer.scala:84: value setThreadPool is not a member of org.eclipse.jetty.server.Server
> [error] server.setThreadPool(threadPool)
> [error] ^
> [error] /Users/MingdaLi/Desktop/ucla_4/research/spark-branch-1.6.4/core/src/main/scala/org/apache/spark/deploy/rest/RestSubmissionServer.scala:92: value getLocalPort is not a member of org.eclipse.jetty.server.Connector
> [error] val boundPort = server.getConnectors()(0).getLocalPort
> [error]
> I think this is caused by using the jetty 9.3.11 but not 8.1.19.
> Actually, I solved this by manually remove the 9.3.11's libraries of jetty from project's library and add the 8.1.19 to it. Then I build it. This can run well.
> But how to avoid manually solve this?
> And I am afraid next time, when I open Intellij, this will appear again.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org