You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/10/25 08:43:22 UTC

[GitHub] [doris] zhangyongxianggithub commented on issue #9839: [Bug]Report No Doris FE is avaliable,actually the fe and be is running

zhangyongxianggithub commented on issue #9839:
URL: https://github.com/apache/doris/issues/9839#issuecomment-1290200774

   I had the same problem and solved this bug,fellow is my solution,the reason :
   doris fe server version is too low and your jar version is new。
   the problem file is org.apache.doris.flink.rest.RestService,fellow:
   ```java
       public static String randomBackend(DorisOptions options, DorisReadOptions readOptions, Logger logger) throws DorisException, IOException {
           List<BackendV2.BackendRowV2> backends = getBackendsV2(options, readOptions, logger);
           logger.trace("Parse beNodes '{}'.", backends);
           if (backends == null || backends.isEmpty()) {
               logger.error(ILLEGAL_ARGUMENT_MESSAGE, "beNodes", backends);
               throw new IllegalArgumentException("beNodes", String.valueOf(backends));
           }
           Collections.shuffle(backends);
           BackendV2.BackendRowV2 backend = backends.get(0);
           return backend.getIp() + ":" + backend.getHttpPort();
       }
   ```
   there is two getBackends[V2] methods, one is getBackends() for old version doris fe, another is getBackendsV2() for newer version doris fe. the diffierences between them is url. method getBackends() will visist /rest/v1/system?path=//backends, method  getBackendsV2() will visit /api/backends?is_alive=true, if your doris fe version is too low, your call to getBackendsV2() will get 404.so you can write a org.apache.doris.flink.rest.RestService or upgrade doris version


-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org