dosubot[bot] commented on issue #2667:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2667#issuecomment-2407233931

   <!-- Answer -->
   To resolve the error "can't schedule task on non-master server" in a 
standalone HugeGraph cluster, you need to set the server as the master. This 
error occurs because tasks can only be scheduled on the master server.
   
   Here's how to fix it:
   
   1. **Update the Configuration**: Set `server.role=master` in your 
`rest-server.properties` configuration file.
   
   ```properties
   server.role=master
   ```
   
   2. **Restart the Server**: After updating the configuration, restart your 
HugeGraph server to apply the changes.
   
   This will allow task scheduling operations to proceed without encountering 
the error 
<sup>[[1]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/task/StandardTaskScheduler.java)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to