Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed project to work with Hive 0.12.0 (CDH5-beta-2). #64

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cdh.version>0.8.1-cdh4.0.1</cdh.version>
<cdh.version>0.12.0-cdh5.0.0-beta-2</cdh.version>
</properties>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
package org.openx.data.jsonserde.objectinspector;

import org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.SettableStringObjectInspector;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory;
import org.apache.hadoop.io.Text;

/**
Expand All @@ -27,7 +27,7 @@ public class JsonStringJavaObjectInspector extends
SettableStringObjectInspector {

JsonStringJavaObjectInspector() {
super(PrimitiveObjectInspectorUtils.stringTypeEntry);
super(TypeInfoFactory.stringTypeInfo);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
package org.openx.data.jsonserde.objectinspector.primitive;

import org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.SettableByteObjectInspector;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory;
import org.apache.hadoop.io.ByteWritable;

/**
Expand All @@ -25,7 +25,7 @@ public class JavaStringByteObjectInspector extends AbstractPrimitiveJavaObject
implements SettableByteObjectInspector {

public JavaStringByteObjectInspector() {
super(PrimitiveObjectInspectorUtils.byteTypeEntry);
super(TypeInfoFactory.byteTypeInfo);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
package org.openx.data.jsonserde.objectinspector.primitive;

import org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.SettableDoubleObjectInspector;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory;
import org.apache.hadoop.io.DoubleWritable;

/**
Expand All @@ -25,7 +25,7 @@ public class JavaStringDoubleObjectInspector extends AbstractPrimitiveJavaObject
implements SettableDoubleObjectInspector {

public JavaStringDoubleObjectInspector() {
super(PrimitiveObjectInspectorUtils.doubleTypeEntry);
super(TypeInfoFactory.doubleTypeInfo);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
package org.openx.data.jsonserde.objectinspector.primitive;

import org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.SettableFloatObjectInspector;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory;
import org.apache.hadoop.io.FloatWritable;

/**
Expand All @@ -25,7 +25,7 @@ public class JavaStringFloatObjectInspector extends AbstractPrimitiveJavaObjectI
implements SettableFloatObjectInspector {

public JavaStringFloatObjectInspector() {
super(PrimitiveObjectInspectorUtils.floatTypeEntry);
super(TypeInfoFactory.floatTypeInfo);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
package org.openx.data.jsonserde.objectinspector.primitive;

import org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.SettableIntObjectInspector;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory;
import org.apache.hadoop.io.IntWritable;

/**
Expand All @@ -26,7 +26,7 @@ public class JavaStringIntObjectInspector
implements SettableIntObjectInspector {

public JavaStringIntObjectInspector() {
super(PrimitiveObjectInspectorUtils.intTypeEntry);
super(TypeInfoFactory.intTypeInfo);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
package org.openx.data.jsonserde.objectinspector.primitive;

import org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.SettableLongObjectInspector;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory;
import org.apache.hadoop.io.LongWritable;

/**
Expand All @@ -26,7 +26,7 @@ public class JavaStringLongObjectInspector
implements SettableLongObjectInspector {

public JavaStringLongObjectInspector() {
super(PrimitiveObjectInspectorUtils.longTypeEntry);
super(TypeInfoFactory.longTypeInfo);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

import org.apache.hadoop.hive.serde2.io.ShortWritable;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.SettableShortObjectInspector;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory;

/**
*
Expand All @@ -26,7 +26,7 @@ public class JavaStringShortObjectInspector
implements SettableShortObjectInspector {

public JavaStringShortObjectInspector() {
super(PrimitiveObjectInspectorUtils.shortTypeEntry);
super(TypeInfoFactory.shortTypeInfo);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import java.sql.Timestamp;
import org.apache.hadoop.hive.serde2.io.TimestampWritable;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.SettableTimestampObjectInspector;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory;

/**
* A timestamp that is stored in a String
Expand All @@ -26,7 +26,7 @@ public class JavaStringTimestampObjectInspector extends AbstractPrimitiveJavaObj
implements SettableTimestampObjectInspector {

public JavaStringTimestampObjectInspector() {
super(PrimitiveObjectInspectorUtils.timestampTypeEntry);
super(TypeInfoFactory.timestampTypeInfo);
}


Expand Down