apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
12.82k stars 3.3k forks source link

[Bug] Fail to add follower node #42155

Open SaelKimberly opened 1 month ago

SaelKimberly commented 1 month ago

Search before asking

Version

3.0.2

What's Wrong?

When I try to append a follower to a cluster, there is Java error:

RuntimeLogger 2024-10-21 04:50:04,070 INFO (main|23) [Env.getSelfHostPort():1435] get self node: HostInfo{host='fe-follower-1', port=9010}
RuntimeLogger 2024-10-21 04:50:04,071 INFO (main|23) [Env.getHelperNodes():1489] get helper nodes: [HostInfo{host='fe-master', port=9010}]
RuntimeLogger 2024-10-21 04:50:04,094 INFO (main|23) [Env.getFeNodeTypeAndNameFromHelpers():1417] get fe node type FOLLOWER, name fe_c272640a_5c2f_40d8_abc0_f40134ee4357 from fe-master:fe-master:8030
RuntimeLogger 2024-10-21 04:50:04,311 ERROR (main|23) [Throwable$WrappedPrintStream.println():763] java.lang.NoSuchMethodError: 'boolean org.apache.http.client.config.RequestConfig.isNormalizeUri()'
RuntimeLogger 2024-10-21 04:50:04,311 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:133)
RuntimeLogger 2024-10-21 04:50:04,311 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
RuntimeLogger 2024-10-21 04:50:04,311 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
RuntimeLogger 2024-10-21 04:50:04,311 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
RuntimeLogger 2024-10-21 04:50:04,312 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
RuntimeLogger 2024-10-21 04:50:04,312 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:221)
RuntimeLogger 2024-10-21 04:50:04,312 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165)
RuntimeLogger 2024-10-21 04:50:04,312 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140)
RuntimeLogger 2024-10-21 04:50:04,312 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.doris.httpv2.rest.manager.HttpUtils.executeRequest(HttpUtils.java:117)
RuntimeLogger 2024-10-21 04:50:04,312 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.doris.httpv2.rest.manager.HttpUtils.doGet(HttpUtils.java:81)
RuntimeLogger 2024-10-21 04:50:04,312 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.doris.master.MetaHelper.doGet(MetaHelper.java:77)
RuntimeLogger 2024-10-21 04:50:04,312 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.doris.catalog.Env.getNewImage(Env.java:2017)
RuntimeLogger 2024-10-21 04:50:04,312 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.doris.catalog.Env.getClusterIdAndRole(Env.java:1345)
RuntimeLogger 2024-10-21 04:50:04,312 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.doris.catalog.Env.initialize(Env.java:1077)
RuntimeLogger 2024-10-21 04:50:04,312 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.doris.DorisFE.start(DorisFE.java:178)
RuntimeLogger 2024-10-21 04:50:04,312 ERROR (main|23) [Throwable$WrappedPrintStream.println():763]  at org.apache.doris.DorisFE.main(DorisFE.java:95)
RuntimeLogger 2024-10-21 04:50:04,312 WARN (main|23) [DorisFE.start():225] 
java.lang.NoSuchMethodError: 'boolean org.apache.http.client.config.RequestConfig.isNormalizeUri()'
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:133) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:221) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140) ~[httpclient-4.5.13.jar:4.5.13]
    at org.apache.doris.httpv2.rest.manager.HttpUtils.executeRequest(HttpUtils.java:117) ~[doris-fe.jar:1.2-SNAPSHOT]
    at org.apache.doris.httpv2.rest.manager.HttpUtils.doGet(HttpUtils.java:81) ~[doris-fe.jar:1.2-SNAPSHOT]
    at org.apache.doris.master.MetaHelper.doGet(MetaHelper.java:77) ~[doris-fe.jar:1.2-SNAPSHOT]
    at org.apache.doris.catalog.Env.getNewImage(Env.java:2017) ~[doris-fe.jar:1.2-SNAPSHOT]
    at org.apache.doris.catalog.Env.getClusterIdAndRole(Env.java:1345) ~[doris-fe.jar:1.2-SNAPSHOT]
    at org.apache.doris.catalog.Env.initialize(Env.java:1077) ~[doris-fe.jar:1.2-SNAPSHOT]
    at org.apache.doris.DorisFE.start(DorisFE.java:178) ~[doris-fe.jar:1.2-SNAPSHOT]
    at org.apache.doris.DorisFE.main(DorisFE.java:95) ~[doris-fe.jar:1.2-SNAPSHOT]

What You Expected?

Successful append a follower FE node.

How to Reproduce?

I've trying this configuration:

Anything Else?

No response

Are you willing to submit PR?

Code of Conduct

ixzc commented 3 weeks ago

can you check whether there are more than one httpclient jar in fe/lib ?

SaelKimberly commented 3 weeks ago

So, I've checked, and there is really more than one.

image

SaelKimberly commented 2 weeks ago

Maybe, I should remove some of them from CLASSPATH or entirely from this directory... But which of them? :thinking: