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)

Reply via email to