Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
897 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 Reply

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...