mokai87 commented on code in PR #7175:
URL: https://github.com/apache/hbase/pull/7175#discussion_r2256206513


##########
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java:
##########
@@ -770,6 +770,8 @@ public static void configureRemoteCluster(Job job, 
Configuration clusterConf) {
     conf.setInt(REMOTE_CLUSTER_ZOOKEEPER_CLIENT_PORT_CONF_KEY, clientPort);
     conf.set(REMOTE_CLUSTER_ZOOKEEPER_ZNODE_PARENT_CONF_KEY, parent);
 
+    TableMapReduceUtil.initCredentialsForCluster(job, clusterConf);

Review Comment:
   It's no harmless besides one more rpc request. The token from same cluster 
will be added once since the key of tokeMap is Text(clusterid).
   <img width="921" height="621" alt="image" 
src="https://github.com/user-attachments/assets/c71476ea-4364-4809-8eda-ec0cc182e157";
 />
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to