Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
729 views
in Technique[技术] by (71.8m points)

spring-boot - 使用spring-cloud-consul在spring-boot中执行Spark作业(Spark job in spring-boot with spring-cloud-consul)

I have created a spring-boot application to be used as spark job.

(我创建了一个spring-boot应用程序以用作火花作业。)

I am able to submit jobs with the spring-boot application.

(我可以使用spring-boot应用程序提交作业。)

I am trying to provide different application properties to job using spring-cloud-consul but once I add spring consul dependencies to the application, the spark job starts failing at start up with unable to create bean for spring-cloud-consul.

(我试图使用spring-cloud-consul为工作提供不同的应用程序属性,但是一旦我将spring consul依赖项添加到应用程序,spark作业在启动时就开始失败,无法为spring-cloud-consul创建bean。)

So, it is possible to load configuration from consul in spring-boot app when using spark.

(因此,使用spark时可以从spring-boot应用程序的领事中加载配置。)

  ask by Pritam Sadhukhan translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...