Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [Zeta RestApi ] Submit or Stop job from an inactive master node #6208

Closed
2 of 3 tasks
VincentSleepless opened this issue Jan 15, 2024 · 1 comment · Fixed by #6217
Closed
2 of 3 tasks

[Bug] [Zeta RestApi ] Submit or Stop job from an inactive master node #6208

VincentSleepless opened this issue Jan 15, 2024 · 1 comment · Fixed by #6217
Labels

Comments

@VincentSleepless
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

error when submit or stop job with error message " Please don't get coordinator service from an inactive master node"

SeaTunnel Version

dev

SeaTunnel Config

nothiong related

Running Command

rest api to submit job

Error Exception

2024-01-15 16:55:32,395 INFO  [Log4j2HttpPostCommandProcessor] [hz.main.cached.thread-1] - [172.20.216.3]:5801 [seatunnel] [5.1] cluster master is :[172.20.216.1]:5801
2024-01-15 16:55:32,395 INFO  [Log4j2HttpPostCommandProcessor] [hz.main.cached.thread-1] - [172.20.216.3]:5801 [seatunnel] [5.1] [172.20.216.3]:5801 is :false
2024-01-15 16:55:32,396 INFO  [Log4j2HttpPostCommandProcessor] [hz.main.cached.thread-1] - [172.20.216.3]:5801 [seatunnel] [5.1] [172.20.216.3]:5801 is :false
2024-01-15 16:55:32,396 WARN  [Log4j2HttpPostCommandProcessor] [hz.main.cached.thread-1] - [172.20.216.3]:5801 [seatunnel] [5.1] An error occurred while handling request HttpCommand [HTTP_POST]{uri='/hazelcast/rest/maps/submit-job'}AbstractTextCommand[HTTP_POST]{requestId=2}
org.apache.seatunnel.engine.common.exception.SeaTunnelEngineException: Please don't get coordinator service from an inactive master node
        at org.apache.seatunnel.engine.server.SeaTunnelServer.getCoordinatorService(SeaTunnelServer.java:211) ~[seatunnel-starter.jar:2.3.3-SNAPSHOT]
        at org.apache.seatunnel.engine.server.rest.RestHttpPostCommandProcessor.submitJob(RestHttpPostCommandProcessor.java:383) ~[seatunnel-starter.jar:2.3.3-SNAPSHOT]
        at org.apache.seatunnel.engine.server.rest.RestHttpPostCommandProcessor.handleSubmitJob(RestHttpPostCommandProcessor.java:180) ~[seatunnel-starter.jar:2.3.3-SNAPSHOT]
        at org.apache.seatunnel.engine.server.rest.RestHttpPostCommandProcessor.handle(RestHttpPostCommandProcessor.java:91) ~[seatunnel-starter.jar:2.3.3-SNAPSHOT]
        at org.apache.seatunnel.engine.server.rest.RestHttpPostCommandProcessor.handle(RestHttpPostCommandProcessor.java:70) ~[seatunnel-starter.jar:2.3.3-SNAPSHOT]
        at com.hazelcast.internal.ascii.TextCommandServiceImpl$CommandExecutor.run(TextCommandServiceImpl.java:402) ~[seatunnel-starter.jar:2.3.3-SNAPSHOT]
        at com.hazelcast.internal.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:217) ~[seatunnel-starter.jar:2.3.3-SNAPSHOT]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_60]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_60]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]
        at com.hazelcast.internal.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76) ~[seatunnel-starter.jar:2.3.3-SNAPSHOT]
        at com.hazelcast.internal.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:102) ~[seatunnel-starter.jar:2.3.3-SNAPSHOT]
2024-01-15 16:55:51,128 INFO  [o.a.s.e.s.CoordinatorService  ] [pool-5-thread-1] - [172.20.216.3]:5801 [seatunnel] [5.1]

Zeta or Flink or Spark Version

nothing

Java or Scala Version

java 1.8 191

Screenshots

i try to add some debug logs!
5b30e229611c13b27608d80be3ea1f2

Hazelcast.getAllHazelcastInstances() has only one instance(the current node)
5638414a27860a19f4bc5422abc4019

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@VincentSleepless
Copy link
Author

@liugddx hello, plz check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant