I am getting same error. Is there a way to go with 1.7. Since we are using some 1.7 features its difficult to switch back and forth (1.7 to 1.6)
On Tue, Mar 25, 2014 at 11:54 AM, Suresh Attanayaka <[email protected]> wrote: > I believe this is due to using java version 1.7,, I could build this with > no errors with Java 1.6. > > > On Tue, Mar 25, 2014 at 11:21 AM, Suresh Attanayaka <[email protected]>wrote: > >> there you go! >> >> compile: >> [echo] Project: jdbc >> [javac] Compiling 15 source files to >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/build/jdbc/classes >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveCallableStatement.java:48: >> error: HiveCallableStatement is not abstract and does not override abstract >> method <T>getObject(String,Class<T>) in CallableStatement >> [javac] public class HiveCallableStatement implements >> java.sql.CallableStatement { >> [javac] ^ >> [javac] where T is a type-variable: >> [javac] T extends Object declared in method >> <T>getObject(String,Class<T>) >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java:41: >> error: HiveConnection is not abstract and does not override abstract method >> getNetworkTimeout() in Connection >> [javac] public class HiveConnection implements java.sql.Connection { >> [javac] ^ >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDataSource.java:31: >> error: HiveDataSource is not abstract and does not override abstract method >> getParentLogger() in CommonDataSource >> [javac] public class HiveDataSource implements DataSource { >> [javac] ^ >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java:43: >> error: HiveDatabaseMetaData is not abstract and does not override abstract >> method generatedKeyAlwaysReturned() in DatabaseMetaData >> [javac] public class HiveDatabaseMetaData implements >> java.sql.DatabaseMetaData { >> [javac] ^ >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java:113: >> error: <anonymous org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$1> is >> not abstract and does not override abstract method >> <T>getObject(String,Class<T>) in ResultSet >> [javac] , catalogs) { >> [javac] ^ >> [javac] where T is a type-variable: >> [javac] T extends Object declared in method >> <T>getObject(String,Class<T>) >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java:222: >> error: <anonymous org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$2> is >> not abstract and does not override abstract method >> <T>getObject(String,Class<T>) in ResultSet >> [javac] , columns) { >> [javac] ^ >> [javac] where T is a type-variable: >> [javac] T extends Object declared in method >> <T>getObject(String,Class<T>) >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java:513: >> error: <anonymous org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$3> is >> not abstract and does not override abstract method >> <T>getObject(String,Class<T>) in ResultSet >> [javac] , Arrays.asList("STRING", "STRING"), null) { >> [javac] ^ >> [javac] where T is a type-variable: >> [javac] T extends Object declared in method >> <T>getObject(String,Class<T>) >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java:553: >> error: <anonymous org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$4> is >> not abstract and does not override abstract method >> <T>getObject(String,Class<T>) in ResultSet >> [javac] , Arrays.asList("STRING"), new >> ArrayList<TableType>(Arrays.asList(tt))) { >> [javac] >> ^ >> [javac] where T is a type-variable: >> [javac] T extends Object declared in method >> <T>getObject(String,Class<T>) >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java:610: >> error: <anonymous org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$5> is >> not abstract and does not override abstract method >> <T>getObject(String,Class<T>) in ResultSet >> [javac] , resultTables) { >> [javac] ^ >> [javac] where T is a type-variable: >> [javac] T extends Object declared in method >> <T>getObject(String,Class<T>) >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java:688: >> error: <anonymous org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$6> is >> not abstract and does not override abstract method >> <T>getObject(String,Class<T>) in ResultSet >> [javac] , null) { >> [javac] ^ >> [javac] where T is a type-variable: >> [javac] T extends Object declared in method >> <T>getObject(String,Class<T>) >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDriver.java:36: >> error: HiveDriver is not abstract and does not override abstract method >> getParentLogger() in Driver >> [javac] public class HiveDriver implements Driver { >> [javac] ^ >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HivePreparedStatement.java:52: >> error: HivePreparedStatement is not abstract and does not override abstract >> method isCloseOnCompletion() in Statement >> [javac] public class HivePreparedStatement implements >> PreparedStatement { >> [javac] ^ >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveQueryResultSet.java:49: >> error: HiveQueryResultSet is not abstract and does not override abstract >> method <T>getObject(String,Class<T>) in ResultSet >> [javac] public class HiveQueryResultSet extends HiveBaseResultSet { >> [javac] ^ >> [javac] where T is a type-variable: >> [javac] T extends Object declared in method >> <T>getObject(String,Class<T>) >> [javac] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveStatement.java:33: >> error: HiveStatement is not abstract and does not override abstract method >> isCloseOnCompletion() in Statement >> [javac] public class HiveStatement implements java.sql.Statement { >> [javac] ^ >> [javac] Note: Some input files use or override a deprecated API. >> [javac] Note: Recompile with -Xlint:deprecation for details. >> [javac] Note: >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java >> uses unchecked or unsafe operations. >> [javac] Note: Recompile with -Xlint:unchecked for details. >> [javac] 14 errors >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] Apache Hive ....................................... SUCCESS >> [0.468s] >> [INFO] hive-root ......................................... FAILURE >> [2:51.210s] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 2:52.109s >> [INFO] Finished at: Tue Mar 25 11:20:55 IST 2014 >> [INFO] Final Memory: 11M/127M >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-antrun-plugin:1.7:run (default) on project >> hive-deploy: An Ant BuildException has occured: The following error >> occurred while executing this line: >> [ERROR] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/build.xml:297: >> The following error occurred while executing this line: >> [ERROR] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/build.xml:151: >> The following error occurred while executing this line: >> [ERROR] >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/build.xml:61: >> Compile failed; see the compiler error output for details. >> [ERROR] around Ant part ...<ant >> antfile="/home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/deploy/../build.xml" >> target="package">... @ 4:123 in >> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/deploy/target/antrun/build-main.xml >> [ERROR] -> [Help 1] >> [ERROR] >> [ERROR] To see the full stack trace of the errors, re-run Maven with the >> -e switch. >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> [ERROR] >> [ERROR] For more information about the errors and possible solutions, >> please read the following articles: >> [ERROR] [Help 1] >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException >> [ERROR] >> [ERROR] After correcting the problems, you can resume the build with the >> command >> [ERROR] mvn <goals> -rf :hive-deploy >> >> >> >> On Tue, Mar 25, 2014 at 11:16 AM, Sinthuja Ragendran >> <[email protected]>wrote: >> >>> Hi Suresh, >>> >>> can you send the error before the build failure summary? Seems like a >>> compilation failure, and the cause would have been printed before the build >>> summary. >>> >>> Thanks. >>> Sinthuja. >>> >>> >>> On Tue, Mar 25, 2014 at 11:09 AM, Suresh Attanayaka <[email protected]>wrote: >>> >>>> >>>> ------------------------------------------------------------------------ >>>> [INFO] Reactor Summary: >>>> [INFO] >>>> [INFO] Apache Hive ....................................... SUCCESS >>>> [0.373s] >>>> [INFO] hive-root ......................................... FAILURE >>>> [1:51.498s] >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] BUILD FAILURE >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] Total time: 1:52.255s >>>> [INFO] Finished at: Tue Mar 25 11:04:18 IST 2014 >>>> [INFO] Final Memory: 16M/169M >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [ERROR] Failed to execute goal >>>> org.apache.maven.plugins:maven-antrun-plugin:1.7:run (default) on project >>>> hive-deploy: An Ant BuildException has occured: The following error >>>> occurred while executing this line: >>>> [ERROR] >>>> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/build.xml:297: >>>> The following error occurred while executing this line: >>>> [ERROR] >>>> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/build.xml:151: >>>> The following error occurred while executing this line: >>>> [ERROR] >>>> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/jdbc/build.xml:61: >>>> Compile failed; see the compiler error output for details. >>>> [ERROR] around Ant part ...<ant >>>> antfile="/home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/deploy/../build.xml" >>>> target="package">... @ 4:123 in >>>> /home/sga/svn-local/new-TURIN/turing/dependencies/hive/0.8.1-wso2v9/deploy/target/antrun/build-main.xml >>>> [ERROR] -> [Help 1] >>>> [ERROR] >>>> [ERROR] To see the full stack trace of the errors, re-run Maven with >>>> the -e switch. >>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >>>> [ERROR] >>>> [ERROR] For more information about the errors and possible solutions, >>>> please read the following articles: >>>> [ERROR] [Help 1] >>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException >>>> [ERROR] >>>> [ERROR] After correcting the problems, you can resume the build with >>>> the command >>>> [ERROR] mvn <goals> -rf :hive-deploy >>>> >>>> >>>> -- >>>> Suresh Attanayake >>>> Senior Software Engineer; WSO2 Inc. http://wso2.com/ >>>> Blog : http://sureshatt.blogspot.com/ >>>> Web : http://www.ssoarcade.com/ >>>> Facebook : https://www.facebook.com/IdentityWorld >>>> Twitter : https://twitter.com/sureshatt >>>> LinkedIn : http://lk.linkedin.com/in/sureshatt >>>> Mobile : +94755012060 >>>> Mobile : +016166171172 >>>> >>> >>> >>> >>> -- >>> *Sinthuja Rajendran* >>> Software Engineer <http://wso2.com/> >>> WSO2, Inc.:http://wso2.com >>> >>> Blog: http://sinthu-rajan.blogspot.com/ >>> Mobile: +94774273955 >>> >>> >>> >> >> >> -- >> Suresh Attanayake >> Senior Software Engineer; WSO2 Inc. http://wso2.com/ >> Blog : http://sureshatt.blogspot.com/ >> Web : http://www.ssoarcade.com/ >> Facebook : https://www.facebook.com/IdentityWorld >> Twitter : https://twitter.com/sureshatt >> LinkedIn : http://lk.linkedin.com/in/sureshatt >> Mobile : +94755012060 >> Mobile : +016166171172 >> > > > > -- > Suresh Attanayake > Senior Software Engineer; WSO2 Inc. http://wso2.com/ > Blog : http://sureshatt.blogspot.com/ > Web : http://www.ssoarcade.com/ > Facebook : https://www.facebook.com/IdentityWorld > Twitter : https://twitter.com/sureshatt > LinkedIn : http://lk.linkedin.com/in/sureshatt > Mobile : +94755012060 > Mobile : +016166171172 > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: [email protected] Mobile: +94 (71) 8020933 Blog: http://gayanj2ee.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
