You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2013/07/26 17:35:14 UTC
svn commit: r1507354 - in /hive/trunk:
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
conf/hive-default.xml.template ivy/libraries.properties metastore/build.xml
metastore/ivy.xml ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
Author: hashutosh
Date: Fri Jul 26 15:35:13 2013
New Revision: 1507354
URL: http://svn.apache.org/r1507354
Log:
HIVE-3632 : Upgrade datanucleus to support JDK7 (Xuefu Zhang via Ashutosh Chauhan)
Modified:
hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
hive/trunk/conf/hive-default.xml.template
hive/trunk/ivy/libraries.properties
hive/trunk/metastore/build.xml
hive/trunk/metastore/ivy.xml
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
Modified: hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
URL: http://svn.apache.org/viewvc/hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java?rev=1507354&r1=1507353&r2=1507354&view=diff
==============================================================================
--- hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java (original)
+++ hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java Fri Jul 26 15:35:13 2013
@@ -324,7 +324,8 @@ public class HiveConf extends Configurat
METASTORE_TRANSACTION_ISOLATION("datanucleus.transactionIsolation", "read-committed"),
METASTORE_CACHE_LEVEL2("datanucleus.cache.level2", false),
METASTORE_CACHE_LEVEL2_TYPE("datanucleus.cache.level2.type", "none"),
- METASTORE_IDENTIFIER_FACTORY("datanucleus.identifierFactory", "datanucleus"),
+ METASTORE_IDENTIFIER_FACTORY("datanucleus.identifierFactory", "datanucleus1"),
+ METASTORE_USE_LEGACY_VALUE_STRATEGY("datanucleus.rdbms.useLegacyNativeValueStrategy", true),
METASTORE_PLUGIN_REGISTRY_BUNDLE_CHECK("datanucleus.plugin.pluginRegistryBundleCheck", "LOG"),
METASTORE_BATCH_RETRIEVE_MAX("hive.metastore.batch.retrieve.max", 300),
METASTORE_BATCH_RETRIEVE_TABLE_PARTITION_MAX(
@@ -353,7 +354,7 @@ public class HiveConf extends Configurat
METASTORE_CONNECTION_DRIVER("javax.jdo.option.ConnectionDriverName",
"org.apache.derby.jdbc.EmbeddedDriver"),
METASTORE_MANAGER_FACTORY_CLASS("javax.jdo.PersistenceManagerFactoryClass",
- "org.datanucleus.jdo.JDOPersistenceManagerFactory"),
+ "org.datanucleus.api.jdo.JDOPersistenceManagerFactory"),
METASTORE_DETACH_ALL_ON_COMMIT("javax.jdo.option.DetachAllOnCommit", true),
METASTORE_NON_TRANSACTIONAL_READ("javax.jdo.option.NonTransactionalRead", true),
METASTORE_CONNECTION_USER_NAME("javax.jdo.option.ConnectionUserName", "APP"),
Modified: hive/trunk/conf/hive-default.xml.template
URL: http://svn.apache.org/viewvc/hive/trunk/conf/hive-default.xml.template?rev=1507354&r1=1507353&r2=1507354&view=diff
==============================================================================
--- hive/trunk/conf/hive-default.xml.template (original)
+++ hive/trunk/conf/hive-default.xml.template Fri Jul 26 15:35:13 2013
@@ -141,7 +141,7 @@
<property>
<name>javax.jdo.PersistenceManagerFactoryClass</name>
- <value>org.datanucleus.jdo.JDOPersistenceManagerFactory</value>
+ <value>org.datanucleus.api.jdo.JDOPersistenceManagerFactory</value>
<description>class implementing the jdo persistence</description>
</property>
@@ -237,8 +237,8 @@
<property>
<name>datanucleus.identifierFactory</name>
- <value>datanucleus</value>
- <description>Name of the identifier factory to use when generating table/column names etc. 'datanucleus' is used for backward compatibility</description>
+ <value>datanucleus1</value>
+ <description>Name of the identifier factory to use when generating table/column names etc. 'datanucleus1' is used for backward compatibility with DataNucleus v1</description>
</property>
<property>
Modified: hive/trunk/ivy/libraries.properties
URL: http://svn.apache.org/viewvc/hive/trunk/ivy/libraries.properties?rev=1507354&r1=1507353&r2=1507354&view=diff
==============================================================================
--- hive/trunk/ivy/libraries.properties (original)
+++ hive/trunk/ivy/libraries.properties Fri Jul 26 15:35:13 2013
@@ -24,10 +24,9 @@ antlr.version=3.4
antlr-runtime.version=3.4
asm.version=3.1
avro.version=1.7.1
-datanucleus-connectionpool.version=2.0.3
-datanucleus-core.version=2.0.3
-datanucleus-enhancer.version=2.0.3
-datanucleus-rdbms.version=2.0.3
+datanucleus-api-jdo.version=3.2.1
+datanucleus-core.version=3.2.2
+datanucleus-rdbms.version=3.2.1
checkstyle.version=5.0
findbugs.version=1.3.9
BoneCP.version=0.7.1.RELEASE
Modified: hive/trunk/metastore/build.xml
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/build.xml?rev=1507354&r1=1507353&r2=1507354&view=diff
==============================================================================
--- hive/trunk/metastore/build.xml (original)
+++ hive/trunk/metastore/build.xml Fri Jul 26 15:35:13 2013
@@ -81,7 +81,7 @@
<target name="model-enhance" depends="model-compile" unless="enhanceModel.notRequired" >
<echo message="Project: ${ant.project.name}"/>
<taskdef name="datanucleusenhancer"
- classname="org.datanucleus.enhancer.tools.EnhancerTask">
+ classname="org.datanucleus.enhancer.EnhancerTask">
<classpath refid="classpath"/>
</taskdef>
Modified: hive/trunk/metastore/ivy.xml
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/ivy.xml?rev=1507354&r1=1507353&r2=1507354&view=diff
==============================================================================
--- hive/trunk/metastore/ivy.xml (original)
+++ hive/trunk/metastore/ivy.xml Fri Jul 26 15:35:13 2013
@@ -33,11 +33,12 @@
conf="compile->default" />
<dependency org="com.jolbox" name="bonecp" rev="${BoneCP.version}"/>
<dependency org="commons-pool" name="commons-pool" rev="${commons-pool.version}"/>
- <dependency org="org.datanucleus" name="datanucleus-connectionpool" rev="${datanucleus-connectionpool.version}"
- transitive="false"/>
- <dependency org="org.datanucleus" name="datanucleus-core" rev="${datanucleus-core.version}"
- transitive="false"/>
- <dependency org="org.datanucleus" name="datanucleus-enhancer" rev="${datanucleus-enhancer.version}"
+ <dependency org="org.datanucleus" name="datanucleus-api-jdo" rev="${datanucleus-api-jdo.version}">
+ <exclude org="javax.jdo" module="jdo2-api"/>
+ <exclude org="junit" module="junit"/>
+ <exclude org="log4j" module="log4j"/>
+ </dependency>
+ <dependency org="org.datanucleus" name="datanucleus-core" rev="${datanucleus-core.version}"
transitive="false"/>
<dependency org="org.datanucleus" name="datanucleus-rdbms" rev="${datanucleus-rdbms.version}"
transitive="false"/>
Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java?rev=1507354&r1=1507353&r2=1507354&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java Fri Jul 26 15:35:13 2013
@@ -126,9 +126,9 @@ import org.apache.hadoop.hive.ql.plan.Ma
import org.apache.hadoop.hive.ql.plan.PartitionDesc;
import org.apache.hadoop.hive.ql.plan.PlanUtils;
import org.apache.hadoop.hive.ql.plan.PlanUtils.ExpressionTypes;
-import org.apache.hadoop.hive.ql.plan.TableDesc;
import org.apache.hadoop.hive.ql.plan.api.Adjacency;
import org.apache.hadoop.hive.ql.plan.api.Graph;
+import org.apache.hadoop.hive.ql.plan.TableDesc;
import org.apache.hadoop.hive.ql.session.SessionState;
import org.apache.hadoop.hive.ql.stats.StatsFactory;
import org.apache.hadoop.hive.ql.stats.StatsPublisher;
@@ -549,8 +549,8 @@ public final class Utilities {
e.setPersistenceDelegate(java.sql.Date.class, new DatePersistenceDelegate());
e.setPersistenceDelegate(Timestamp.class, new TimestampPersistenceDelegate());
- e.setPersistenceDelegate(org.datanucleus.sco.backed.Map.class, new MapDelegate());
- e.setPersistenceDelegate(org.datanucleus.sco.backed.List.class, new ListDelegate());
+ e.setPersistenceDelegate(org.datanucleus.store.types.backed.Map.class, new MapDelegate());
+ e.setPersistenceDelegate(org.datanucleus.store.types.backed.List.class, new ListDelegate());
e.writeObject(plan);
e.close();