[refactor](libhdfs) introduce hadoop libhdfs (#18204)

1. Introduce hadoop libhdfs 
2. For Linux-X86 platform, use the hadoop libhdfs
3. For other platform, use libhdfs3, because currently we don't have  hadoop libhdfs binary for other platform

Co-authored-by: adonis0147 <adonis0147@gmail.com>
This commit is contained in:
Mingyu Chen
2023-03-31 18:41:39 +08:00
committed by GitHub
parent a77921d767
commit 7e61a85331
20 changed files with 200 additions and 58 deletions

View File

@ -271,7 +271,7 @@ public class BeLoadRebalancer extends Rebalancer {
if (lowBackend == null) {
continue;
}
if (hosts.contains(lowBackend.getIp())) {
if (!Config.allow_replica_on_same_host && hosts.contains(lowBackend.getIp())) {
continue;
}