Github user revans2 commented on a diff in the pull request:
https://github.com/apache/storm/pull/871#discussion_r49201793
--- Diff:
external/storm-hive/src/main/java/org/apache/storm/hive/common/HiveConnector.java
---
@@ -0,0 +1,241 @@
+package org.apache.storm.hive.common;
+
+
+import org.apache.hadoop.security.UserGroupInformation;
+import org.apache.hive.hcatalog.streaming.HiveEndPoint;
+import org.apache.hive.hcatalog.streaming.StreamingException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.IOException;
+import java.util.*;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import com.google.common.util.concurrent.ThreadFactoryBuilder;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.atomic.AtomicBoolean;
+
+public class HiveConnector {
+ private static final Logger LOG =
LoggerFactory.getLogger(HiveConnector.class);
+ private HiveOptions options;
+ private transient Timer heartBeatTimer;
+ private AtomicBoolean sendHeartBeat = new AtomicBoolean(true);
+ private UserGroupInformation ugi = null;
+ private Map<HiveEndPoint, HiveWriter> allWriters;
+ private ExecutorService callTimeoutPool;
+
+ public HiveConnector(HiveOptions options) {
+ this.options = options;
+
--- End diff --
Extra line
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---