You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/02/24 03:20:22 UTC

[GitHub] [incubator-inlong] crancchen commented on a change in pull request #2644: [INLONG-2642][Sort] Use proxy user to write hive

crancchen commented on a change in pull request #2644:
URL: https://github.com/apache/incubator-inlong/pull/2644#discussion_r813514548



##########
File path: inlong-sort/sort-connectors/src/main/java/org/apache/inlong/sort/flink/hive/HiveWriter.java
##########
@@ -68,9 +74,24 @@
 
     private transient List<HivePartition> newPartitions;
 
+    private static UserGroupInformation proxyUgi;
+
     public HiveWriter(Configuration configuration, long dataFlowId, HiveSinkInfo hiveSinkInfo) {
         this.configuration = checkNotNull(configuration);
         this.dataFlowId = dataFlowId;
+        UserGroupInformation realUgi = null;
+        try {
+            realUgi = UserGroupInformation.getLoginUser();
+        } catch (IOException e) {
+            e.printStackTrace();

Review comment:
       done




-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org