You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Shaofeng SHI (JIRA)" <ji...@apache.org> on 2018/11/02 09:35:00 UTC
[jira] [Updated] (KYLIN-3664) Hive metrics reporter HiveProducer
support multiple instances on one host
[ https://issues.apache.org/jira/browse/KYLIN-3664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shaofeng SHI updated KYLIN-3664:
--------------------------------
Issue Type: Improvement (was: Bug)
Summary: Hive metrics reporter HiveProducer support multiple instances on one host (was: Hive metrics reporter HiveProducer doesn't support multiple instances on one host)
> Hive metrics reporter HiveProducer support multiple instances on one host
> -------------------------------------------------------------------------
>
> Key: KYLIN-3664
> URL: https://issues.apache.org/jira/browse/KYLIN-3664
> Project: Kylin
> Issue Type: Improvement
> Components: Metrics
> Reporter: Shaofeng SHI
> Priority: Major
>
> In HiveProducer.java, it uses a file named with the host name, this causing if there are multiple Kylin instances on the same machine, will have conflict when appending metrics to HDFS file:
>
> {code:java}
> String hostName;
> try {
> hostName = InetAddress.getLocalHost().getHostName();
> } catch (UnknownHostException e) {
> hostName = "UNKNOWN";
> }
> CONTENT_FILE_NAME = hostName + "-part-0000";
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)