Skip to content

Commit

Permalink
[Fix] odp login (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
IHEII authored Nov 17, 2023
1 parent ebd0dca commit 0fffc5c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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);
}
Expand Down

0 comments on commit 0fffc5c

Please sign in to comment.