We've been using a version of Hive/HCat based on 1.1.0 for over a year now
with no problems.  We did have to comment out a few lines in MiniHCatServer
and MiniHS2 that were no longer needed:

diff --git a/core/src/test/java/org/apache/oozie/test/MiniHCatServer.java
b/core/src/test/java/org/apache/oozie/test/MiniHCatServer.java
index 8699ff8..d694977 100644
--- a/core/src/test/java/org/apache/oozie/test/MiniHCatServer.java
+++ b/core/src/test/java/org/apache/oozie/test/MiniHCatServer.java
@@ -150,9 +150,10 @@ public class MiniHCatServer {
     public static void resetDefaultDBCreation() throws Exception {
         // Need to do this, else default db will not be created for local
metastores.
         // TestHiveMain will fail with
InvalidObjectException(message:There is no database named default)
-        Field declaredField =
HMSHandler.class.getDeclaredField("createDefaultDB");
-        declaredField.setAccessible(true);
-        declaredField.set(null, false);
+        // CLOUDERA-BUILD: Don't need this for Hive 0.14 and later
+        //Field declaredField =
HMSHandler.class.getDeclaredField("createDefaultDB");
+        //declaredField.setAccessible(true);
+        //declaredField.set(null, false);
     }

     public static void resetHiveConfStaticVariables() throws Exception {
diff --git a/core/src/test/java/org/apache/oozie/test/hive/MiniHS2.java
b/core/src/test/java/org/apache/oozie/test/hive/MiniHS2.java
index c9dfd56..505dc55 100644
--- a/core/src/test/java/org/apache/oozie/test/hive/MiniHS2.java
+++ b/core/src/test/java/org/apache/oozie/test/hive/MiniHS2.java
@@ -84,7 +84,8 @@ public class MiniHS2 extends AbstractHiveService {
     hiveConf.setVar(ConfVars.HIVE_SERVER2_THRIFT_BIND_HOST, getHost());
     hiveConf.setIntVar(ConfVars.HIVE_SERVER2_THRIFT_PORT, getBinaryPort());
     hiveConf.setIntVar(ConfVars.HIVE_SERVER2_THRIFT_HTTP_PORT,
getHttpPort());
-    HiveMetaStore.HMSHandler.resetDefaultDBFlag();
+    // CLOUDERA-BUILD: Don't need this for Hive 0.14 and later
+    //HiveMetaStore.HMSHandler.resetDefaultDBFlag();

     Path scratchDir = new Path(baseDfsDir, "scratch");
     fs.mkdirs(scratchDir);

On Fri, Jul 15, 2016 at 1:29 PM, Venkat Ranganathan <
[email protected]> wrote:

> Let us explore changing the default hive version also  to 1.x.   0.13 is
> old
>
> Thanks
>
> Venkat
>
>
> On 7/15/16, 11:31 AM, "Robert Kanter" <[email protected]> wrote:
>
>     I don't think we have any guidelines defined anywhere about when it's
> okay
>     to change the minimum Java version, but perhaps we need to wait until
> the
>     next major release (5.0)?  That said, Hadoop did this in a minor
> release
>     and Java 6 was EoL in 2013.  So I'm fine with doing it in 4.3 if
> nobody has
>     an objections; we should just make sure to call that out in our release
>     notes.
>
>     Otherwise, nothing comes to mind for anything we should leave out other
>     than the Oozie on Yarn stuff, which is not currently in trunk anyway.
>
>     I know there's a number of Spark Action JIRAs; we should make sure to
>     include all of these and any pending ones.
>     @Rohini, @Puru, @Satish, anything you think needs more time to bake
> that we
>     should hold off on including in the release?
>
>
>     thanks
>     - Robert
>
>     On Fri, Jul 15, 2016 at 8:35 AM, Abhishek Bafna <[email protected]>
>     wrote:
>
>     > Hi All,
>     >
>     > Any suggestions or comments on the scope for the release?
>     >
>     > Thanks,
>     > Abhishek
>     >
>     > > On Jul 13, 2016, at 3:07 AM, Abhishek Bafna <[email protected]>
>     > wrote:
>     > >
>     > > Hi All,
>     > >
>     > > Oozie is starting the release process for Oozie 4.3.0. This thread
> is
>     > for discussion about the scope of the release. Please provide your
>     > suggestion about what should be included (or any exclusions) in the
> release.
>     > >
>     > > Currently, we have around 158 patches submitted to trunk. Based on
> the
>     > scope, we will include (exclude) more if required.
>     > > Version Upgrade
>     > > Java 1.7 (OOZIE-2036 <
> https://issues.apache.org/jira/browse/OOZIE-2036>)
>     > > OpenJPA (OOZIE-2488 <
> https://issues.apache.org/jira/browse/OOZIE-2488>),
>     > > Curator  (OOZIE-2231 <
> https://issues.apache.org/jira/browse/OOZIE-2231
>     > >),
>     > > HttpClient  (OOZIE-2538 <
>     > https://issues.apache.org/jira/browse/OOZIE-2538>),
>     > > Pig (OOZIE-2602 <https://issues.apache.org/jira/browse/OOZIE-2602
> >).
>     > > New Features/Improvements: Add default JT and NN, Database schema
>     > service check, instrumental metrics, Tomcat upgrade etc.
>     > > Bug Fixes.
>     > > Provide your opinion on inclusion/exclusion of the above points or
> more
>     > for the scope of the release. We can also, take some work which is
> already
>     > done and review is pending for them (depending on the availability
> of the
>     > reviewers).
>     > >
>     > > Thanks,
>     > > Abhishek
>     >
>     >
>
>
>

Reply via email to