You must be using Java 1.5 or below where @Override is not allowed on any method that implements its counterpart from interface. Remember, both 1.5 and 1.6 are EOL, so I would suggest upgrading to 1.7. Oleg
On Mon, Mar 10, 2014 at 10:49 AM, Avinash Kujur <[email protected]> wrote: > > hi, > > i downloaded the code from https://github.com/apache/hadoop-common.git . > > but while executing the command > > mvn install -DskipTests > > its giving this error in between: > > [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ > hadoop-hdfs-httpfs --- > > [INFO] Compiling 56 source files to > /home/cloudera/hadoop/hadoop-hdfs-project/hadoop-hdfs-httpfs/target/classes > [INFO] ------------------------------------------------------------- > [ERROR] COMPILATION ERROR : > [INFO] ------------------------------------------------------------- > > [ERROR] > /home/cloudera/hadoop/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/client/HttpFSFileSystem.java:[921,2] > method does not override or implement a method from a supertype > [ERROR] > /home/cloudera/hadoop/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/client/HttpsFSFileSystem.java:[26,7] > org.apache.hadoop.fs.http.client.HttpsFSFileSystem is not abstract and does > not override abstract method > setDelegationToken(org.apache.hadoop.security.token.Token) in > org.apache.hadoop.fs.DelegationTokenRenewer.Renewable > > [INFO] 2 errors > [INFO] ------------------------------------------------------------- > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Apache Hadoop Main ................................ SUCCESS [ 8.062 s] > > [INFO] Apache Hadoop Project POM ......................... SUCCESS [ 2.231 s] > [INFO] Apache Hadoop Annotations ......................... SUCCESS [ 4.954 s] > [INFO] Apache Hadoop Project Dist POM .................... SUCCESS [ 5.232 s] > > [INFO] Apache Hadoop Assemblies .......................... SUCCESS [ 1.923 s] > [INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [ 18.385 s] > [INFO] Apache Hadoop MiniKDC ............................. SUCCESS [ 8.739 s] > > [INFO] Apache Hadoop Auth ................................ SUCCESS [ 7.932 s] > [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [ 2.803 s] > [INFO] Apache Hadoop Common .............................. SUCCESS [ 55.787 s] > > [INFO] Apache Hadoop NFS ................................. SUCCESS [ 3.162 s] > [INFO] Apache Hadoop Common Project ...................... SUCCESS [ 0.256 s] > [INFO] Apache Hadoop HDFS ................................ SUCCESS [01:40 min] > > [INFO] Apache Hadoop HttpFS .............................. FAILURE [ 2.917 s] > [INFO] Apache Hadoop HDFS BookKeeper Journal ............. SKIPPED > [INFO] Apache Hadoop HDFS-NFS ............................ SKIPPED > > [INFO] Apache Hadoop HDFS Project ........................ SKIPPED > [INFO] hadoop-yarn ....................................... SKIPPED > [INFO] hadoop-yarn-api ................................... SKIPPED > > > did you guys faced the same problem? > > plz give me some suggestion. > > Regards Avinash > >
