Hi,
To build Hive on JDK 7 i have applied the below patch, unfortunately i am
getting the serdeConstant error.
if anybody faced same issue please let me know the solution.
http://mail-archives.apache.org/mod_mbox/hive-commits/201212.mbox/%3C20121204231746.3266E238896F@eris.apache.org%3E
My Environment: Hadoop 1.0.4 , Hive 0.9.0(current stable version), java 1.7
[echo] Project: jdbc
[ivy:resolve] :: loading settings :: file =
/home/hadoopuser/hadoop/hive/src/ivy/ivysettings.xml
[ivy:report] Processing
/home/hadoopuser/hadoop/hive/src/build/ivy/resolution-cache/org.apache.hive-hive-jdbc-default.xml
to
/home/hadoopuser/hadoop/hive/src/build/ivy/report/org.apache.hive-hive-jdbc-default.html
ivy-retrieve:
[echo] Project: jdbc
compile:
[echo] Project: jdbc
[javac] Compiling 14 source files to
/home/hadoopuser/hadoop/hive/src/build/jdbc/classes
[javac]
/home/hadoopuser/hadoop/hive/src/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveQueryResultSet.java:33:
error: cannot find symbol
[javac] import org.apache.hadoop.hive.serde.serdeConstants;
[javac] ^
[javac] symbol: class serdeConstants
[javac] location: package org.apache.hadoop.hive.serde
[javac]
/home/hadoopuser/hadoop/hive/src/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveQueryResultSet.java:105:
error: cannot find symbol
[javac] props.setProperty(serdeConstants.LIST_COLUMNS, names);
[javac] ^
[javac] symbol: variable serdeConstants
[javac] location: class HiveQueryResultSet
[javac]
/home/hadoopuser/hadoop/hive/src/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveQueryResultSet.java:109:
error: cannot find symbol
[javac] props.setProperty(serdeConstants.LIST_COLUMN_TYPES,
types);
[javac] ^
[javac] symbol: variable serdeConstants
[javac] location: class HiveQueryResultSet
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note:
/home/hadoopuser/hadoop/hive/src/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java
uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 3 errors
BUILD FAILED
/home/hadoopuser/hadoop/hive/src/build.xml:302: The following error
occurred while executing this line:
/home/hadoopuser/hadoop/hive/src/build.xml:152: The following error
occurred while executing this line:
/home/hadoopuser/hadoop/hive/src/jdbc/build.xml:61: Compile failed; see the
compiler error output for details.
--
*Thanks & Regards,
RajKishore*