From d340c78d62a384e9ebf32f546a4a12fb2a20624e Mon Sep 17 00:00:00 2001 From: Sakthi Date: Thu, 8 Aug 2019 19:11:38 -0700 Subject: [PATCH] HIVE-21393: Refactor exception handling in HiveAccumuloTableInputFormat --- .../hive/accumulo/mr/HiveAccumuloTableInputFormat.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/mr/HiveAccumuloTableInputFormat.java b/accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/mr/HiveAccumuloTableInputFormat.java index af64eac1fc9a1145e5f85200a1efa0ae6a35a520..ca35390423877ee04d155cf8539f185d1ef6253b 100644 --- a/accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/mr/HiveAccumuloTableInputFormat.java +++ b/accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/mr/HiveAccumuloTableInputFormat.java @@ -175,13 +175,7 @@ } return hiveSplits; - } catch (AccumuloException e) { - log.error("Could not configure AccumuloInputFormat", e); - throw new IOException(StringUtils.stringifyException(e)); - } catch (AccumuloSecurityException e) { - log.error("Could not configure AccumuloInputFormat", e); - throw new IOException(StringUtils.stringifyException(e)); - } catch (SerDeException e) { + } catch (AccumuloException | AccumuloSecurityException | SerDeException e) { log.error("Could not configure AccumuloInputFormat", e); throw new IOException(StringUtils.stringifyException(e)); } -- 2.20.1 (Apple Git-117)