docker安装的es数据库 当通过主机ip建Doris on ES的外表时 报docker的ip不能访问 这个怎么解决

Viewed 17

errCode = 2, detailMessage = (50.88.1.206)[INTERNAL_ERROR]Failed to connect to ES server, errmsg is: [HTTP_ERROR]Failed to connect to 172.17.0.2 port 9200 after 0 ms: Couldn't connect to server 0# doris::HttpClient::execute(std::function const&) at /home/zcp/repo_center/doris_enterprise/doris/be/src/common/status.h:0 1# doris::HttpClient::execute_post_request(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator >) at /var/local/ldb-toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:244 2# doris::ESScanReader::open() at /home/zcp/repo_center/doris_enterprise/doris/be/src/common/status.h:492 3# doris::vectorized::NewEsScanner::open(doris::RuntimeState) at /home/zcp/repo_center/doris_enterprise/doris/be/src/common/status.h:492 4# doris::vectorized::ScannerScheduler::_scanner_scan(std::shared_ptr, std::shared_ptr) at /home/zcp/repo_center/doris_enterprise/doris/be/src/common/status.h:388 5# std::_Function_handler, std::shared_ptr)::$_1::operator()() const::{lambda()#1}>::_M_invoke(std::_Any_data const&) at /var/local/ldb-toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_base.h:701 6# doris::ThreadPool::dispatch_thread() at /home/zcp/repo_center/doris_enterprise/doris/be/src/util/threadpool.cpp:0 7# doris::Thread::supervise_thread(void*) at /var/local/ldb-toolchain/bin/../usr/include/pthread.h:562 8# start_thread 9# __clone

1 Answers

把docker es的9200 进行端口映射。

不推荐使用es 外表了,你可以看看es catalog