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/05/30 02:53:38 UTC

[GitHub] [incubator-doris] mengyejiang opened a new issue, #9839: [Bug]Report No Doris FE is avaliable,actually the fe and be is running

mengyejiang opened a new issue, #9839:
URL: https://github.com/apache/incubator-doris/issues/9839

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
    PALO-0.14.12.4
   
   ### What's Wrong?
   
   ### 1、I want to use flink-doris-connector,so i add the dependency to my flink programe. 
   The following figure 
   ![image](https://user-images.githubusercontent.com/26343092/170906452-89503337-1270-4e14-b737-71a0cce56ece.png)
    
   ### 2、then i debug the programe, the program throw an exception  "No Doris FE is available, please check configuration",  i trace the stack and find the problem is triggered by getBackendsV2 fuction.
   ![image](https://user-images.githubusercontent.com/26343092/170907964-b830c2be-bced-4fa3-9a03-d17801807b11.png)
   
   ### 3、i try to visit "http://192.168.101.121:8030/api/backends?is_alive=true" by my self, but the result is that.
   ![image](https://user-images.githubusercontent.com/26343092/170908353-6a855272-4c68-48d4-a227-a6de5e665ac5.png)
   
   
   
   
   ### What You Expected?
   
    I hope to find out the answer to this question. i can use the flink-doris-connector write data to doris.
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   flink version is 1.13.1
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.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


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

Posted by GitBox <gi...@apache.org>.
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


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

Posted by GitBox <gi...@apache.org>.
mengyejiang commented on issue #9839:
URL: https://github.com/apache/incubator-doris/issues/9839#issuecomment-1153571934

   > Reference
   no, unable to solve


-- 
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


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

Posted by GitBox <gi...@apache.org>.
qimumu9406 commented on issue #9839:
URL: https://github.com/apache/incubator-doris/issues/9839#issuecomment-1153563936

   Is this problem solved?


-- 
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