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:22:00 UTC

[jira] [Created] (KYLIN-3664) Hive metrics reporter HiveProducer doesn't support multiple instances on one host

Shaofeng SHI created KYLIN-3664:
-----------------------------------

             Summary: Hive metrics reporter HiveProducer doesn't support multiple instances on one host
                 Key: KYLIN-3664
                 URL: https://issues.apache.org/jira/browse/KYLIN-3664
             Project: Kylin
          Issue Type: Bug
          Components: Metrics
            Reporter: Shaofeng SHI


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)