commit | 24cd6628ad58bfdb48a557aad8468fba84eb2858 | [log] [tgz] |
---|---|---|
author | XiaoxiangYu <hit_lacus@126.com> | Wed May 06 19:51:20 2020 +0800 |
committer | Ni Chunen <nic@apache.org> | Wed May 06 19:52:29 2020 +0800 |
tree | 1e9a3a90dbf9a9b6764e9a44819fb787374c1549 | |
parent | bbe9be3326e3ef74d9ba04a3f069f66151286dc2 [diff] |
KYLIN-4385 Only hdfs is appendable
diff --git a/metrics-reporter-hive/src/main/java/org/apache/kylin/metrics/lib/impl/hive/HiveProducer.java b/metrics-reporter-hive/src/main/java/org/apache/kylin/metrics/lib/impl/hive/HiveProducer.java index 95758f8..993d7fc 100644 --- a/metrics-reporter-hive/src/main/java/org/apache/kylin/metrics/lib/impl/hive/HiveProducer.java +++ b/metrics-reporter-hive/src/main/java/org/apache/kylin/metrics/lib/impl/hive/HiveProducer.java
@@ -117,7 +117,7 @@ } contentFilePrefix = hostName + "-" + System.currentTimeMillis() + "-part-"; String fsUri = fs.getUri().toString(); - supportAppend = !fsUri.startsWith("s3") && !fsUri.startsWith("wasb"); // AWS EMR and Azure HDInsight + supportAppend = fsUri.startsWith("hdfs") ; // Only HDFS is appendable logger.info("For {}, supportAppend was set to {}", fsUri, supportAppend); }