You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ni...@apache.org on 2020/05/06 11:54:24 UTC
[kylin] 02/02: KYLIN-4385 Only hdfs is appendable
This is an automated email from the ASF dual-hosted git repository.
nic pushed a commit to branch 3.0.x
in repository https://gitbox.apache.org/repos/asf/kylin.git
commit 36bd70afecd427d7e0f6c40cf70dc8f26bf146e9
Author: XiaoxiangYu <hi...@126.com>
AuthorDate: Wed May 6 19:51:20 2020 +0800
KYLIN-4385 Only hdfs is appendable
---
.../main/java/org/apache/kylin/metrics/lib/impl/hive/HiveProducer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 ae10a93..53a9385 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 @@ public class HiveProducer {
}
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);
}