Apache spark spark提交spring启动应用程序

Apache spark spark提交spring启动应用程序,apache-spark,spring-boot,Apache Spark,Spring Boot,我在使用spark提交脚本将spring boot应用程序提交到apache spark(独立集群)时遇到问题。 应用程序公开RESTful服务以在spark上进行一些计算,但当我运行 ./spark-submit --master spark://node01:7077,node02:17077 --jars spark.jar spark.jar 在我的主节点上,出现以下错误: *org.springframework.context.ApplicationContextExcepti

我在使用spark提交脚本将spring boot应用程序提交到apache spark(独立集群)时遇到问题。 应用程序公开RESTful服务以在spark上进行一些计算,但当我运行

./spark-submit  --master spark://node01:7077,node02:17077 --jars spark.jar  spark.jar
在我的主节点上,出现以下错误:

*org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
        at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133) ~[spring-boot-1.3.5.RELEASE.jar!/:1.3.5.RELEASE]

我在stackoverflow上读到一篇文章,说其他一些人在向ApacheSpark提交spring应用程序时遇到登录问题,但我在cointainer上遇到了一个问题。是否有编写spring boot应用程序以在spark上提交的教程?

我不确定您想做什么,但似乎您需要隐藏您的依赖项并创建一个uber jar。您不需要在--jars选项中再次指定spark.jar,我不确定您想做什么,但您似乎需要隐藏依赖项并创建一个uber jar。您不需要在--jars选项中再次指定spark.jar。