[ 
https://issues.apache.org/jira/browse/OOZIE-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Abhishek Bafna updated OOZIE-2613:
----------------------------------
    Attachment: OOZIE-2613-06.patch

Yes. The testcases broke for {{hadoop-2}} profile. The problem was, If we make 
changes to the {{MiniHCatServer}} class then hive testcases fails for 
{{hadoop-1}} profile with following exception:

{code}
FAILED: SemanticException [Error 10072]: Database does not exist: 
default2016-09-17 09:07:10,248 [pool-1-thread-1] ERROR 
org.apache.hadoop.hive.ql.Driver  - FAILED: SemanticException [Error 10072]: 
Database does not exist: default
org.apache.hadoop.hive.ql.parse.SemanticException: Database does not exist: 
default
{code}

To fix the issue and make it work for both {{hadoop-1}} and {{hadoop-2}} 
profile, added the database creation statements in the testcases. e.g.

{code}
buffer.append("CREATE DATABASE IF NOT EXISTS default;").append(NEW_LINE);
{code}

Removed the {{MiniHCatServer#resetDefaultDBCreation}} method as it does not 
contain any executable statement.

> Upgrade hive version from 0.13.1 to 1.2.0
> -----------------------------------------
>
>                 Key: OOZIE-2613
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2613
>             Project: Oozie
>          Issue Type: Bug
>          Components: core
>            Reporter: Abhishek Bafna
>            Assignee: Abhishek Bafna
>             Fix For: 4.3.0
>
>         Attachments: OOZIE-2613-00.patch, OOZIE-2613-01.patch, 
> OOZIE-2613-02.patch, OOZIE-2613-03.patch, OOZIE-2613-05.patch, 
> OOZIE-2613-06.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to