|
Thomas Anderson
2011-06-16, 07:04
Luke Lu
2011-06-16, 08:33
Thomas Anderson
2011-06-17, 08:33
Thomas Graves
2011-06-17, 13:09
Thomas Anderson
2011-06-18, 08:20
Luke Lu
2011-06-18, 21:22
Thomas Anderson
2011-06-20, 02:05
|
-
MR-279Thomas Anderson 2011-06-16, 07:04
When following mr-279/INSTALL to compile source, it throws the
following error in the second step to compile HDFS-1052. How to solve this problem? compile-hdfs-classes: [javac] HDFS-1052/build.xml:345: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 239 source files to HDFS-1052/build/classes [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:117: cannot find symbol [javac] symbol : class ProtocolSignature [javac] location: package org.apache.hadoop.ipc [javac] import org.apache.hadoop.ipc.ProtocolSignature; [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:2329: cannot find symbol [javac] symbol : class ProtocolSignature [javac] location: class org.apache.hadoop.hdfs.server.datanode.DataNode [javac] public ProtocolSignature getProtocolSignature(String protocol, [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:86: cannot find symbol [javac] symbol : class ProtocolSignature [javac] location: package org.apache.hadoop.ipc [javac] import org.apache.hadoop.ipc.ProtocolSignature; [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:166: cannot find symbol [javac] symbol : class ProtocolSignature [javac] location: class org.apache.hadoop.hdfs.server.namenode.NameNode [javac] public ProtocolSignature getProtocolSignature(String protocol, [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/fs/Hdfs.java:317: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/fs/Hdfs.java:399: cannot find symbol [javac] symbol : method getCanonicalServiceName() [javac] location: class org.apache.hadoop.fs.Hdfs [javac] result.setService(new Text(this.getCanonicalServiceName())); [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/fs/Hdfs.java:395: method does not override or implement a method from a supertype [javac] @Override //AbstractFileSystem [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/DFSClient.java:681: cannot find symbol [javac] symbol : method validate(java.util.EnumSet<org.apache.hadoop.fs.CreateFlag>) [javac] location: class org.apache.hadoop.fs.CreateFlag [javac] CreateFlag.validate(flag); [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/DistributedFileSystem.java:611: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/DistributedFileSystem.java:818: method does not override or implement a method from a supertype [javac] @Override // FileSystem [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:2331: cannot find symbol [javac] symbol : variable ProtocolSignature [javac] location: class org.apache.hadoop.hdfs.server.datanode.DataNode [javac] return ProtocolSignature.getProtocolSignature( [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:2328: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:168: cannot find symbol [javac] symbol : variable ProtocolSignature [javac] location: class org.apache.hadoop.hdfs.server.namenode.NameNode [javac] return ProtocolSignature.getProtocolSignature( [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:165: method does not override or implement a method from a supertype [javac] @Override [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java:204: cannot find symbol [javac] symbol : method get(int) [javac] location: class java.lang.String[] [javac] Krb5AndCertsSslSocketConnector.KRB5_CIPHER_SUITES.get(0)); [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java:273: cannot find symbol [javac] symbol : method getFS() [javac] location: class org.apache.hadoop.hdfs.tools.DFSAdmin [javac] FileSystem fs = getFS(); [javac] ^ [javac] HDFS-1052/src/java/org/apache/hadoop/hdfs/tools/DFSck.java:240: cannot find symbol [javac] symbol : method get(int) [javac] location: class java.lang.String[] [javac] Krb5AndCertsSslSocketConnector.KRB5_CIPHER_SUITES.get(0)); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 17 errors
-
Re: MR-279Luke Lu 2011-06-16, 08:33
Why are you compiling branch HDFS-1052?, it was a temporary branch for
merging federated NN changes into trunk. All the changes in that branch have since been merged into trunk and MR-279. These stale branches should be deleted, IMO. MR-279 only supports the common and hdfs in the same branch, though we're moving to trunk soon. On Thu, Jun 16, 2011 at 12:04 AM, Thomas Anderson <[EMAIL PROTECTED]> wrote: > When following mr-279/INSTALL to compile source, it throws the > following error in the second step to compile HDFS-1052. How to solve > this problem? > ...
-
Re: MR-279Thomas Anderson 2011-06-17, 08:33
I was not aware that the source downloaded (a few months ago) is
obsoleted. So now I switch by doing svn update, which solves the code obsolete issue. Then I follow the instruction at mapreduce/INSTALL [1], which points to install depdencies for yarn first at README[2]. During searching mailing list, it seems avro plugin is not necessary to install manually. So I only install protobuf 2.4.1 (configure/ make/ make install works ok.) But after that, a mvn install under mapreduce produces error Failed to execute goal on project yarn-api: Could not resolve dependencies for project org.apache.hadoop:yarn-api:jar:1.0-SNAPSHOT: Failure to find org.apache.hadoop:hadoop-hdfs:jar:0.22.0-SNAPSHOT in https://repository.jboss.org/nexus/content/groups/public-jboss/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced -> [Help 1] That looks like missing the hdfs jar artifact. So cd to mr-279/hdfs and execute `ant clean package` generates error message as shown in compile-hdfs-classes section. What is the right order/ procedure to successfully compile mr-279? Or will have a new update for the instruction? Thanks for help. [1]. mapreduce/INSTALL. http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTALL [2]. README. http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/yarn/README compile-hdfs-classes: [javac] mr-279/hdfs/build.xml:339: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 237 source files to mr-279/hdfs/build/classes [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:119: cannot find symbol [javac] symbol : class ProtocolSignature [javac] location: package org.apache.hadoop.ipc [javac] import org.apache.hadoop.ipc.ProtocolSignature; [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:2308: cannot find symbol [javac] symbol : class ProtocolSignature [javac] location: class org.apache.hadoop.hdfs.server.datanode.DataNode [javac] public ProtocolSignature getProtocolSignature(String protocol, [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:85: cannot find symbol [javac] symbol : class ProtocolSignature [javac] location: package org.apache.hadoop.ipc [javac] import org.apache.hadoop.ipc.ProtocolSignature; [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:194: cannot find symbol [javac] symbol : class ProtocolSignature [javac] location: class org.apache.hadoop.hdfs.server.namenode.NameNode [javac] public ProtocolSignature getProtocolSignature(String protocol, [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/fs/Hdfs.java:389: cannot find symbol [javac] symbol : method getCanonicalServiceName() [javac] location: class org.apache.hadoop.fs.Hdfs [javac] result.setService(new Text(this.getCanonicalServiceName())); [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/fs/Hdfs.java:385: method does not override or implement a method from a supertype [javac] @Override //AbstractFileSystem [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/DFSClient.java:736: cannot find symbol [javac] symbol : method validate(java.util.EnumSet<org.apache.hadoop.fs.CreateFlag>) [javac] location: class org.apache.hadoop.fs.CreateFlag [javac] CreateFlag.validate(flag); [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java:5210: cannot find symbol [javac] symbol : method isRpcInvocation() [javac] location: class org.apache.hadoop.ipc.Server [javac] return Server.isRpcInvocation(); [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:102: cannot find symbol [javac] symbol : method listFiles(java.io.File) [javac] location: class org.apache.hadoop.fs.FileUtil [javac] File[] files = FileUtil.listFiles(dir); [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:190: cannot find symbol [javac] symbol : method listFiles(java.io.File) [javac] location: class org.apache.hadoop.fs.FileUtil [javac] File files[] = FileUtil.listFiles(dir); [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:425: cannot find symbol [javac] symbol : method listFiles(java.io.File) [javac] location: class org.apache.hadoop.fs.FileUtil [javac] File blockFiles[] = FileUtil.listFiles(dir); [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:726: cannot find symbol [javac] symbol : method list(java.io.File) [javac] location: class org.apache.hadoop.fs.FileUtil [javac] if (finalizedDir.exists() && FileUtil.list(finalizedDir).length != 0) { [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:729: cannot find symbol [javac] symbol : method list(java.io.File) [javac] location: class org.apache.hadoop.fs.FileUtil [javac] if (rbwDir.exists() && FileUtil.list(rbwDir).length != 0) { [javac] ^ [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:758: cannot find symbol [javac] symbol : method listFiles(java.io.File) [javac] location: class org.apach
-
Re: MR-279Thomas Graves 2011-06-17, 13:09
Did you build common and hdfs before doing mvn install in mapreduce? You
have to build them in order as stated in INSTALL doc - common, hdfs, then mapreduce. Tom On 6/17/11 3:33 AM, "Thomas Anderson" <[EMAIL PROTECTED]> wrote: > I was not aware that the source downloaded (a few months ago) is > obsoleted. So now I switch by doing svn update, which solves the code > obsolete issue. > > Then I follow the instruction at mapreduce/INSTALL [1], which points > to install depdencies for yarn first at README[2]. During searching > mailing list, it seems avro plugin is not necessary to install > manually. So I only install protobuf 2.4.1 (configure/ make/ make > install works ok.) But after that, a mvn install under mapreduce > produces error > > Failed to execute goal on project yarn-api: Could not resolve > dependencies for project org.apache.hadoop:yarn-api:jar:1.0-SNAPSHOT: > Failure to find org.apache.hadoop:hadoop-hdfs:jar:0.22.0-SNAPSHOT in > https://repository.jboss.org/nexus/content/groups/public-jboss/ was > cached in the local repository, resolution will not be reattempted > until the update interval of jboss-public-repository-group has elapsed > or updates are forced -> [Help 1] > > That looks like missing the hdfs jar artifact. So cd to mr-279/hdfs > and execute `ant clean package` generates error message as shown in > compile-hdfs-classes section. > > What is the right order/ procedure to successfully compile mr-279? Or > will have a new update for the instruction? > > Thanks for help. > > [1]. mapreduce/INSTALL. > http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTAL> L > [2]. README. > http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/yarn/R > EADME > > > compile-hdfs-classes: > [javac] mr-279/hdfs/build.xml:339: warning: 'includeantruntime' > was not set, defaulting to build.sysclasspath=last; set to false for > repeatable builds > [javac] Compiling 237 source files to mr-279/hdfs/build/classes > [javac] > mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:119: > cannot find symbol > [javac] symbol : class ProtocolSignature > [javac] location: package org.apache.hadoop.ipc > [javac] import org.apache.hadoop.ipc.ProtocolSignature; > [javac] ^ > [javac] > mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:2308> : > cannot find symbol > [javac] symbol : class ProtocolSignature > [javac] location: class org.apache.hadoop.hdfs.server.datanode.DataNode > [javac] public ProtocolSignature getProtocolSignature(String protocol, > [javac] ^ > [javac] > mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:85: > cannot find symbol > [javac] symbol : class ProtocolSignature > [javac] location: package org.apache.hadoop.ipc > [javac] import org.apache.hadoop.ipc.ProtocolSignature; > [javac] ^ > [javac] > mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:194: > cannot find symbol > [javac] symbol : class ProtocolSignature > [javac] location: class org.apache.hadoop.hdfs.server.namenode.NameNode > [javac] public ProtocolSignature getProtocolSignature(String protocol, > [javac] ^ > [javac] mr-279/hdfs/src/java/org/apache/hadoop/fs/Hdfs.java:389: > cannot find symbol > [javac] symbol : method getCanonicalServiceName() > [javac] location: class org.apache.hadoop.fs.Hdfs > [javac] result.setService(new Text(this.getCanonicalServiceName())); > [javac] ^ > [javac] mr-279/hdfs/src/java/org/apache/hadoop/fs/Hdfs.java:385: > method does not override or implement a method from a supertype > [javac] @Override //AbstractFileSystem > [javac] ^ > [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/DFSClient.java:736: > cannot find symbol > [javac] symbol : method mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:102> mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:190> mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:425> mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:726> mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:729> mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:758> mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java:766> mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:2310> mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:2307>
-
Re: MR-279Thomas Anderson 2011-06-18, 08:20
Thanks. Recompiling common and hdfs by commands
1st. compile commons ant veryclean mvn-install (hadoop-common-0.22.0-SNAPSHOT.jar is installed to m2 repository) 2nd. compile hdfs ant veryclean mvn-install -Dresolvers=internal (It installs hadoop-hdfs-0.22.0-SNAPSHOT.jar to repository) seem to solve the problem below compile-hdfs-classes: [javac] mr-279/hdfs/build.xml:339: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 237 source files to mr-279/hdfs/build/classes [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:119: cannot find symbol ... Now the issue seems to be how to build avro-maven-plugin-1.4.0? I execute the command export MAVEN_OPTS=-Xmx512m mvn clean install assembly:assembly would produce error [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (generate-sources) on project yarn-api: Command execution failed. Process exited with an error: 127(Exit value: 127) -> [Help 1] But the avro maven plugin obtained from https://github.com/phunt/avro-maven-plugin.git only provide 1.0. Would modify version (pointing it to 1.4.0) in pom work? Or what is the next step for building yarn-api? Thanks for help. On Fri, Jun 17, 2011 at 9:09 PM, Thomas Graves <[EMAIL PROTECTED]> wrote: > Did you build common and hdfs before doing mvn install in mapreduce? You > have to build them in order as stated in INSTALL doc - common, hdfs, then > mapreduce. > > Tom > > > On 6/17/11 3:33 AM, "Thomas Anderson" <[EMAIL PROTECTED]> wrote: > >> I was not aware that the source downloaded (a few months ago) is >> obsoleted. So now I switch by doing svn update, which solves the code >> obsolete issue. >> >> Then I follow the instruction at mapreduce/INSTALL [1], which points >> to install depdencies for yarn first at README[2]. During searching >> mailing list, it seems avro plugin is not necessary to install >> manually. So I only install protobuf 2.4.1 (configure/ make/ make >> install works ok.) But after that, a mvn install under mapreduce >> produces error >> >> Failed to execute goal on project yarn-api: Could not resolve >> dependencies for project org.apache.hadoop:yarn-api:jar:1.0-SNAPSHOT: >> Failure to find org.apache.hadoop:hadoop-hdfs:jar:0.22.0-SNAPSHOT in >> https://repository.jboss.org/nexus/content/groups/public-jboss/ was >> cached in the local repository, resolution will not be reattempted >> until the update interval of jboss-public-repository-group has elapsed >> or updates are forced -> [Help 1] >> >> That looks like missing the hdfs jar artifact. So cd to mr-279/hdfs >> and execute `ant clean package` generates error message as shown in >> compile-hdfs-classes section. >> >> What is the right order/ procedure to successfully compile mr-279? Or >> will have a new update for the instruction? >> >> Thanks for help. >> >> [1]. mapreduce/INSTALL. >> > http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTAL> > L >> [2]. README. >> http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/yarn/R >> EADME >> >> >> compile-hdfs-classes: >> [javac] mr-279/hdfs/build.xml:339: warning: 'includeantruntime' >> was not set, defaulting to build.sysclasspath=last; set to false for >> repeatable builds >> [javac] Compiling 237 source files to mr-279/hdfs/build/classes >> [javac] >> mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:119: >> cannot find symbol >> [javac] symbol : class ProtocolSignature >> [javac] location: package org.apache.hadoop.ipc >> [javac] import org.apache.hadoop.ipc.ProtocolSignature; >> [javac] ^ >> [javac] >> > mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:2308> > : >> cannot find symbol >> [javac] symbol : class ProtocolSignature >> [javac] location: class org.apache.hadoop.hdfs.server.datanode.DataNode
-
Re: MR-279Luke Lu 2011-06-18, 21:22
The fact you're mentioning avro plugin indicating that I think you're
playing with obsolete patches. The current code uses avro-maven-plugin 1.5.1 which is available via maven central. Please follow the current instruction here: http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTALL I have updated the MAPREDUCE-279 jira's description to point to the above couple of days ago. On Sat, Jun 18, 2011 at 1:20 AM, Thomas Anderson <[EMAIL PROTECTED]> wrote: > Thanks. Recompiling common and hdfs by commands > > 1st. compile commons > ant veryclean mvn-install (hadoop-common-0.22.0-SNAPSHOT.jar is > installed to m2 repository) > > 2nd. compile hdfs > ant veryclean mvn-install -Dresolvers=internal (It installs > hadoop-hdfs-0.22.0-SNAPSHOT.jar to repository) > > seem to solve the problem below > > compile-hdfs-classes: > [javac] mr-279/hdfs/build.xml:339: warning: 'includeantruntime' was > not set, defaulting to build.sysclasspath=last; set to false for > repeatable builds > [javac] Compiling 237 source files to mr-279/hdfs/build/classes > [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:119: > cannot find symbol > ... > > Now the issue seems to be how to build avro-maven-plugin-1.4.0? > > I execute the command > > export MAVEN_OPTS=-Xmx512m > mvn clean install assembly:assembly > > would produce error > > [ERROR] Failed to execute goal > org.codehaus.mojo:exec-maven-plugin:1.2:exec (generate-sources) on > project yarn-api: Command execution failed. Process exited with an > error: 127(Exit value: 127) -> [Help 1] > > But the avro maven plugin obtained from > https://github.com/phunt/avro-maven-plugin.git only provide 1.0. Would > modify version (pointing it to 1.4.0) in pom work? Or what is the next > step for building yarn-api? > > Thanks for help. > > On Fri, Jun 17, 2011 at 9:09 PM, Thomas Graves <[EMAIL PROTECTED]> wrote: >> Did you build common and hdfs before doing mvn install in mapreduce? You >> have to build them in order as stated in INSTALL doc - common, hdfs, then >> mapreduce. >> >> Tom >> >> >> On 6/17/11 3:33 AM, "Thomas Anderson" <[EMAIL PROTECTED]> wrote: >> >>> I was not aware that the source downloaded (a few months ago) is >>> obsoleted. So now I switch by doing svn update, which solves the code >>> obsolete issue. >>> >>> Then I follow the instruction at mapreduce/INSTALL [1], which points >>> to install depdencies for yarn first at README[2]. During searching >>> mailing list, it seems avro plugin is not necessary to install >>> manually. So I only install protobuf 2.4.1 (configure/ make/ make >>> install works ok.) But after that, a mvn install under mapreduce >>> produces error >>> >>> Failed to execute goal on project yarn-api: Could not resolve >>> dependencies for project org.apache.hadoop:yarn-api:jar:1.0-SNAPSHOT: >>> Failure to find org.apache.hadoop:hadoop-hdfs:jar:0.22.0-SNAPSHOT in >>> https://repository.jboss.org/nexus/content/groups/public-jboss/ was >>> cached in the local repository, resolution will not be reattempted >>> until the update interval of jboss-public-repository-group has elapsed >>> or updates are forced -> [Help 1] >>> >>> That looks like missing the hdfs jar artifact. So cd to mr-279/hdfs >>> and execute `ant clean package` generates error message as shown in >>> compile-hdfs-classes section. >>> >>> What is the right order/ procedure to successfully compile mr-279? Or >>> will have a new update for the instruction? >>> >>> Thanks for help. >>> >>> [1]. mapreduce/INSTALL. >>> >> http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTAL> >> L >>> [2]. README. >>> http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/yarn/R >>> EADME >>> >>> >>> compile-hdfs-classes: >>> [javac] mr-279/hdfs/build.xml:339: warning: 'includeantruntime' >>> was not set, defaulting to build.sysclasspath=last; set to false for >>> repeatable builds >>> [javac] Compiling 237 source files to mr-279/hdfs/build/classes
-
Re: MR-279Thomas Anderson 2011-06-20, 02:05
I just find out avro maven plugin at
http://archive.apache.org/dist/avro/avro-1.5.1/java/avro-maven-plugin-1.5.1.jar and pom from another place. Previously my problems are 1st, don not know where the location of avro-maven-plugin 2nd, unable to successfully compile/ install mr-279/hdfs Now these are solved by downloading avro maven plugin from apache repository and execute commands pointed out in instruction file. Thank you for help. On Sun, Jun 19, 2011 at 5:22 AM, Luke Lu <[EMAIL PROTECTED]> wrote: > The fact you're mentioning avro plugin indicating that I think you're > playing with obsolete patches. The current code uses avro-maven-plugin > 1.5.1 which is available via maven central. > > Please follow the current instruction here: > http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTALL > > I have updated the MAPREDUCE-279 jira's description to point to the > above couple of days ago. > > On Sat, Jun 18, 2011 at 1:20 AM, Thomas Anderson > <[EMAIL PROTECTED]> wrote: >> Thanks. Recompiling common and hdfs by commands >> >> 1st. compile commons >> ant veryclean mvn-install (hadoop-common-0.22.0-SNAPSHOT.jar is >> installed to m2 repository) >> >> 2nd. compile hdfs >> ant veryclean mvn-install -Dresolvers=internal (It installs >> hadoop-hdfs-0.22.0-SNAPSHOT.jar to repository) >> >> seem to solve the problem below >> >> compile-hdfs-classes: >> [javac] mr-279/hdfs/build.xml:339: warning: 'includeantruntime' was >> not set, defaulting to build.sysclasspath=last; set to false for >> repeatable builds >> [javac] Compiling 237 source files to mr-279/hdfs/build/classes >> [javac] mr-279/hdfs/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:119: >> cannot find symbol >> ... >> >> Now the issue seems to be how to build avro-maven-plugin-1.4.0? >> >> I execute the command >> >> export MAVEN_OPTS=-Xmx512m >> mvn clean install assembly:assembly >> >> would produce error >> >> [ERROR] Failed to execute goal >> org.codehaus.mojo:exec-maven-plugin:1.2:exec (generate-sources) on >> project yarn-api: Command execution failed. Process exited with an >> error: 127(Exit value: 127) -> [Help 1] >> >> But the avro maven plugin obtained from >> https://github.com/phunt/avro-maven-plugin.git only provide 1.0. Would >> modify version (pointing it to 1.4.0) in pom work? Or what is the next >> step for building yarn-api? >> >> Thanks for help. >> >> On Fri, Jun 17, 2011 at 9:09 PM, Thomas Graves <[EMAIL PROTECTED]> wrote: >>> Did you build common and hdfs before doing mvn install in mapreduce? You >>> have to build them in order as stated in INSTALL doc - common, hdfs, then >>> mapreduce. >>> >>> Tom >>> >>> >>> On 6/17/11 3:33 AM, "Thomas Anderson" <[EMAIL PROTECTED]> wrote: >>> >>>> I was not aware that the source downloaded (a few months ago) is >>>> obsoleted. So now I switch by doing svn update, which solves the code >>>> obsolete issue. >>>> >>>> Then I follow the instruction at mapreduce/INSTALL [1], which points >>>> to install depdencies for yarn first at README[2]. During searching >>>> mailing list, it seems avro plugin is not necessary to install >>>> manually. So I only install protobuf 2.4.1 (configure/ make/ make >>>> install works ok.) But after that, a mvn install under mapreduce >>>> produces error >>>> >>>> Failed to execute goal on project yarn-api: Could not resolve >>>> dependencies for project org.apache.hadoop:yarn-api:jar:1.0-SNAPSHOT: >>>> Failure to find org.apache.hadoop:hadoop-hdfs:jar:0.22.0-SNAPSHOT in >>>> https://repository.jboss.org/nexus/content/groups/public-jboss/ was >>>> cached in the local repository, resolution will not be reattempted >>>> until the update interval of jboss-public-repository-group has elapsed >>>> or updates are forced -> [Help 1] >>>> >>>> That looks like missing the hdfs jar artifact. So cd to mr-279/hdfs >>>> and execute `ant clean package` generates error message as shown in >>>> compile-hdfs-classes section. |