[ 
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)

Reply via email to