[ 
https://issues.apache.org/jira/browse/KYLIN-4442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17095521#comment-17095521
 ] 

Sonu Singh commented on KYLIN-4442:
-----------------------------------

Hi [~hit_lacus],

below code changes are able to fix my issue :

 
CliCommandExecutor getCliCommandExecutor = 
KylinConfig.getInstanceFromEnv().getCliCommandExecutor(); 
final String useDatabaseHql = "USE " + config.getKylinMetricsPrefix() + ";";
final HiveCmdBuilder hiveCmdBuilder = new HiveCmdBuilder();
hiveCmdBuilder.addStatement(useDatabaseHql);
hiveCmdBuilder.addStatement(hql.toString());
getCliCommandExecutor.execute(hiveCmdBuilder.build());
 
Please suggest on the above codes, how are you feeling on that?
 
 
 

> Kylin System Cube Hive tables not able to update 
> -------------------------------------------------
>
>                 Key: KYLIN-4442
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4442
>             Project: Kylin
>          Issue Type: Bug
>    Affects Versions: v3.0.0
>            Reporter: Sonu Singh
>            Assignee: Sonu Singh
>            Priority: Minor
>         Attachments: image-2020-04-18-17-26-33-316.png, 
> kylin-metrics-reporter-hive-3.1.0-SNAPSHOT.jar
>
>
> Kylin System Cube Hive table is not updating. I am using Kylin hadoop3 code 
> and running on vanilla hadoop3.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to