From 0fffc5c8676cd9775782db478c0ec27ea25b0d7d Mon Sep 17 00:00:00 2001 From: IHEII Date: Fri, 17 Nov 2023 22:20:34 +0800 Subject: [PATCH] [Fix] odp login (#11) --- .../com/alipay/oceanbase/hbase/util/ObTableClientManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/alipay/oceanbase/hbase/util/ObTableClientManager.java b/src/main/java/com/alipay/oceanbase/hbase/util/ObTableClientManager.java index aab95408..744845fc 100644 --- a/src/main/java/com/alipay/oceanbase/hbase/util/ObTableClientManager.java +++ b/src/main/java/com/alipay/oceanbase/hbase/util/ObTableClientManager.java @@ -96,8 +96,6 @@ public static ObTableClient getOrCreateObTableClient(ObTableClientKey obTableCli try { if (OB_TABLE_CLIENT_INSTANCE.get(obTableClientKey) == null) { ObTableClient obTableClient = new ObTableClient(); - obTableClient.setFullUserName(obTableClientKey.getFullUserName()); - obTableClient.setPassword(obTableClientKey.getPassword()); if (obTableClientKey.getOdpMode()) { obTableClient.setOdpAddr(obTableClientKey.getOdpAddr()); obTableClient.setOdpPort(obTableClientKey.getOdpPort()); @@ -112,6 +110,8 @@ public static ObTableClient getOrCreateObTableClient(ObTableClientKey obTableCli obTableClient.setProperties(obTableClientKey.getProperties()); obTableClient.setRunningMode(ObTableClient.RunningMode.HBASE); } + obTableClient.setFullUserName(obTableClientKey.getFullUserName()); + obTableClient.setPassword(obTableClientKey.getPassword()); obTableClient.init(); OB_TABLE_CLIENT_INSTANCE.put(obTableClientKey, obTableClient); }