You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Tim Broberg (Created) (JIRA)" <ji...@apache.org> on 2011/10/07 05:58:29 UTC

[jira] [Created] (HADOOP-7726) eclipse plugin does not build with 0.20.205

eclipse plugin does not build with 0.20.205
-------------------------------------------

                 Key: HADOOP-7726
                 URL: https://issues.apache.org/jira/browse/HADOOP-7726
             Project: Hadoop Common
          Issue Type: Bug
          Components: contrib/eclipse-plugin
    Affects Versions: 0.24.0
         Environment: Fedora 15
            Reporter: Tim Broberg


I'm new to hadoop, java, and eclipse, so please forgive me if I jumble multiple issues together or mistake the symptoms of one problem for a separate issue.

Attempting to follow the build instructions from http://wiki.apache.org/hadoop/EclipseEnvironment, the following commands are to be executed:

  1 - mvn test -DskipTests
  2 - mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
  3 - cd hdfs; ant compile eclipse
  4 - cd ../; cd mapreduce; ant compile eclipse

A - If "mvn test -DskipTests" is used for #1, #2 fails with "[ERROR] Failed to execute goal on project hadoop-yarn-common: Could not resolve dependencies for project org.apache.hadoop:hadoop-yarn-common:jar:0.24.0-SNAPSHOT:"

Per Luke Lu's suggestion, "mvn install -DskipTests -P-cbuild" instead of step #1 cleared up this issue.

B - For steps #3, and #4 there are no hdfs or mapreduce subdirectories. These appear to have been renamed "hadoop-hdfs-project" and "hadoop-mapreduce-project".

C - For step #3, if I then go to hadoop-hdfs-project instead and perform "ant compile eclipse" no build.xml file is found - "Buildfile: build.xml does not exist!"

D - For step #4, if I go to hadoop-mapreduce-project and do "ant compile eclipse" a set of errors much like #A is produced:

> [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
> [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]           ::
> org.apache.hadoop#hadoop-yarn-server-common;0.24.0-SNAPSHOT: not found
> [ivy:resolve]           ::
> org.apache.hadoop#hadoop-mapreduce-client-core;0.24.0-SNAPSHOT: not found
> [ivy:resolve]           ::
> org.apache.hadoop#hadoop-yarn-common;0.24.0-SNAPSHOT: not found
> [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::

E - If I ignore these issues and import the projects generated in step #2, I get a bunch of errors related to the lack of an M2_REPO definition. Adding this variable needs to be included in the build scripts or documentation in the wiki.

F - Once that is resolved, eclipse shows hundreds of errors and warnings starting with "AvroRecord" cannot be resolved to a type.

Thanks so much for your work on this, but it needs a little more effort in documentation and/or development before it is usable again.

Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7726) eclipse plugin does not build with 0.24.0

Posted by "Prashant Sharma (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122548#comment-13122548 ] 

Prashant Sharma commented on HADOOP-7726:
-----------------------------------------

If this is for trunk version. You can read the BUILDING.txt in the top directory. 

for importing to eclipse you have two options. 

1) install m2-eclipse and import as existing maven project.
OR
2) mvn eclipse:eclipse

I think the ant targets are no more used. The doc is old perhaps.

                
> eclipse plugin does not build with 0.24.0
> -----------------------------------------
>
>                 Key: HADOOP-7726
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7726
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: contrib/eclipse-plugin
>    Affects Versions: 0.24.0
>         Environment: Fedora 15
>            Reporter: Tim Broberg
>
> I'm new to hadoop, java, and eclipse, so please forgive me if I jumble multiple issues together or mistake the symptoms of one problem for a separate issue.
> Attempting to follow the build instructions from http://wiki.apache.org/hadoop/EclipseEnvironment, the following commands are to be executed:
>   1 - mvn test -DskipTests
>   2 - mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
>   3 - cd hdfs; ant compile eclipse
>   4 - cd ../; cd mapreduce; ant compile eclipse
> A - If "mvn test -DskipTests" is used for #1, #2 fails with "[ERROR] Failed to execute goal on project hadoop-yarn-common: Could not resolve dependencies for project org.apache.hadoop:hadoop-yarn-common:jar:0.24.0-SNAPSHOT:"
> Per Luke Lu's suggestion, "mvn install -DskipTests -P-cbuild" instead of step #1 cleared up this issue.
> B - For steps #3, and #4 there are no hdfs or mapreduce subdirectories. These appear to have been renamed "hadoop-hdfs-project" and "hadoop-mapreduce-project".
> C - For step #3, if I then go to hadoop-hdfs-project instead and perform "ant compile eclipse" no build.xml file is found - "Buildfile: build.xml does not exist!"
> D - For step #4, if I go to hadoop-mapreduce-project and do "ant compile eclipse" a set of errors much like #A is produced:
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> > [ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-yarn-server-common;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-mapreduce-client-core;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-yarn-common;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> E - If I ignore these issues and import the projects generated in step #2, I get a bunch of errors related to the lack of an M2_REPO definition. Adding this variable needs to be included in the build scripts or documentation in the wiki.
> F - Once that is resolved, eclipse shows hundreds of errors and warnings starting with "AvroRecord" cannot be resolved to a type.
> Thanks so much for your work on this, but it needs a little more effort in documentation and/or development before it is usable again.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-7726) eclipse plugin does not build with 0.24.0

Posted by "Tim Broberg (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Broberg updated HADOOP-7726:
--------------------------------

    Summary: eclipse plugin does not build with 0.24.0  (was: eclipse plugin does not build with 0.20.205)
    
> eclipse plugin does not build with 0.24.0
> -----------------------------------------
>
>                 Key: HADOOP-7726
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7726
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: contrib/eclipse-plugin
>    Affects Versions: 0.24.0
>         Environment: Fedora 15
>            Reporter: Tim Broberg
>
> I'm new to hadoop, java, and eclipse, so please forgive me if I jumble multiple issues together or mistake the symptoms of one problem for a separate issue.
> Attempting to follow the build instructions from http://wiki.apache.org/hadoop/EclipseEnvironment, the following commands are to be executed:
>   1 - mvn test -DskipTests
>   2 - mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
>   3 - cd hdfs; ant compile eclipse
>   4 - cd ../; cd mapreduce; ant compile eclipse
> A - If "mvn test -DskipTests" is used for #1, #2 fails with "[ERROR] Failed to execute goal on project hadoop-yarn-common: Could not resolve dependencies for project org.apache.hadoop:hadoop-yarn-common:jar:0.24.0-SNAPSHOT:"
> Per Luke Lu's suggestion, "mvn install -DskipTests -P-cbuild" instead of step #1 cleared up this issue.
> B - For steps #3, and #4 there are no hdfs or mapreduce subdirectories. These appear to have been renamed "hadoop-hdfs-project" and "hadoop-mapreduce-project".
> C - For step #3, if I then go to hadoop-hdfs-project instead and perform "ant compile eclipse" no build.xml file is found - "Buildfile: build.xml does not exist!"
> D - For step #4, if I go to hadoop-mapreduce-project and do "ant compile eclipse" a set of errors much like #A is produced:
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> > [ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-yarn-server-common;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-mapreduce-client-core;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-yarn-common;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> E - If I ignore these issues and import the projects generated in step #2, I get a bunch of errors related to the lack of an M2_REPO definition. Adding this variable needs to be included in the build scripts or documentation in the wiki.
> F - Once that is resolved, eclipse shows hundreds of errors and warnings starting with "AvroRecord" cannot be resolved to a type.
> Thanks so much for your work on this, but it needs a little more effort in documentation and/or development before it is usable again.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7726) eclipse plugin does not build with 0.24.0

Posted by "Prashant Sharma (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122551#comment-13122551 ] 

Prashant Sharma commented on HADOOP-7726:
-----------------------------------------

P.S. If you are new to hadoop. you might wanna try this. 


https://issues.apache.org/jira/browse/MAPREDUCE-3131

You can build the docs by running mvn site:site 
For instruction and docs are generated in hadoop-yarn/hadoop-yarn-site/target
                
> eclipse plugin does not build with 0.24.0
> -----------------------------------------
>
>                 Key: HADOOP-7726
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7726
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: contrib/eclipse-plugin
>    Affects Versions: 0.24.0
>         Environment: Fedora 15
>            Reporter: Tim Broberg
>
> I'm new to hadoop, java, and eclipse, so please forgive me if I jumble multiple issues together or mistake the symptoms of one problem for a separate issue.
> Attempting to follow the build instructions from http://wiki.apache.org/hadoop/EclipseEnvironment, the following commands are to be executed:
>   1 - mvn test -DskipTests
>   2 - mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
>   3 - cd hdfs; ant compile eclipse
>   4 - cd ../; cd mapreduce; ant compile eclipse
> A - If "mvn test -DskipTests" is used for #1, #2 fails with "[ERROR] Failed to execute goal on project hadoop-yarn-common: Could not resolve dependencies for project org.apache.hadoop:hadoop-yarn-common:jar:0.24.0-SNAPSHOT:"
> Per Luke Lu's suggestion, "mvn install -DskipTests -P-cbuild" instead of step #1 cleared up this issue.
> B - For steps #3, and #4 there are no hdfs or mapreduce subdirectories. These appear to have been renamed "hadoop-hdfs-project" and "hadoop-mapreduce-project".
> C - For step #3, if I then go to hadoop-hdfs-project instead and perform "ant compile eclipse" no build.xml file is found - "Buildfile: build.xml does not exist!"
> D - For step #4, if I go to hadoop-mapreduce-project and do "ant compile eclipse" a set of errors much like #A is produced:
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> > [ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-yarn-server-common;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-mapreduce-client-core;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-yarn-common;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> E - If I ignore these issues and import the projects generated in step #2, I get a bunch of errors related to the lack of an M2_REPO definition. Adding this variable needs to be included in the build scripts or documentation in the wiki.
> F - Once that is resolved, eclipse shows hundreds of errors and warnings starting with "AvroRecord" cannot be resolved to a type.
> Thanks so much for your work on this, but it needs a little more effort in documentation and/or development before it is usable again.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-7726) eclipse target does not build with 0.24.0

Posted by "Harsh J (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harsh J updated HADOOP-7726:
----------------------------

    Component/s:     (was: contrib/eclipse-plugin)
                 build
        Summary: eclipse target does not build with 0.24.0  (was: eclipse plugin does not build with 0.24.0)
    
> eclipse target does not build with 0.24.0
> -----------------------------------------
>
>                 Key: HADOOP-7726
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7726
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.24.0
>         Environment: Fedora 15
>            Reporter: Tim Broberg
>
> I'm new to hadoop, java, and eclipse, so please forgive me if I jumble multiple issues together or mistake the symptoms of one problem for a separate issue.
> Attempting to follow the build instructions from http://wiki.apache.org/hadoop/EclipseEnvironment, the following commands are to be executed:
>   1 - mvn test -DskipTests
>   2 - mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
>   3 - cd hdfs; ant compile eclipse
>   4 - cd ../; cd mapreduce; ant compile eclipse
> A - If "mvn test -DskipTests" is used for #1, #2 fails with "[ERROR] Failed to execute goal on project hadoop-yarn-common: Could not resolve dependencies for project org.apache.hadoop:hadoop-yarn-common:jar:0.24.0-SNAPSHOT:"
> Per Luke Lu's suggestion, "mvn install -DskipTests -P-cbuild" instead of step #1 cleared up this issue.
> B - For steps #3, and #4 there are no hdfs or mapreduce subdirectories. These appear to have been renamed "hadoop-hdfs-project" and "hadoop-mapreduce-project".
> C - For step #3, if I then go to hadoop-hdfs-project instead and perform "ant compile eclipse" no build.xml file is found - "Buildfile: build.xml does not exist!"
> D - For step #4, if I go to hadoop-mapreduce-project and do "ant compile eclipse" a set of errors much like #A is produced:
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> > [ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-yarn-server-common;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-mapreduce-client-core;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-yarn-common;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> E - If I ignore these issues and import the projects generated in step #2, I get a bunch of errors related to the lack of an M2_REPO definition. Adding this variable needs to be included in the build scripts or documentation in the wiki.
> F - Once that is resolved, eclipse shows hundreds of errors and warnings starting with "AvroRecord" cannot be resolved to a type.
> Thanks so much for your work on this, but it needs a little more effort in documentation and/or development before it is usable again.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HADOOP-7726) eclipse target does not build with 0.24.0

Posted by "Harsh J (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harsh J resolved HADOOP-7726.
-----------------------------

    Resolution: Cannot Reproduce

(This has nothing to do with the eclipse-plugin)

No longer an issue on trunk/2.x branches. Please see http://wiki.apache.org/hadoop/HowToContribute to import sources into eclipse.
                
> eclipse target does not build with 0.24.0
> -----------------------------------------
>
>                 Key: HADOOP-7726
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7726
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.24.0
>         Environment: Fedora 15
>            Reporter: Tim Broberg
>
> I'm new to hadoop, java, and eclipse, so please forgive me if I jumble multiple issues together or mistake the symptoms of one problem for a separate issue.
> Attempting to follow the build instructions from http://wiki.apache.org/hadoop/EclipseEnvironment, the following commands are to be executed:
>   1 - mvn test -DskipTests
>   2 - mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
>   3 - cd hdfs; ant compile eclipse
>   4 - cd ../; cd mapreduce; ant compile eclipse
> A - If "mvn test -DskipTests" is used for #1, #2 fails with "[ERROR] Failed to execute goal on project hadoop-yarn-common: Could not resolve dependencies for project org.apache.hadoop:hadoop-yarn-common:jar:0.24.0-SNAPSHOT:"
> Per Luke Lu's suggestion, "mvn install -DskipTests -P-cbuild" instead of step #1 cleared up this issue.
> B - For steps #3, and #4 there are no hdfs or mapreduce subdirectories. These appear to have been renamed "hadoop-hdfs-project" and "hadoop-mapreduce-project".
> C - For step #3, if I then go to hadoop-hdfs-project instead and perform "ant compile eclipse" no build.xml file is found - "Buildfile: build.xml does not exist!"
> D - For step #4, if I go to hadoop-mapreduce-project and do "ant compile eclipse" a set of errors much like #A is produced:
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> > [ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-yarn-server-common;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-mapreduce-client-core;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::
> > org.apache.hadoop#hadoop-yarn-common;0.24.0-SNAPSHOT: not found
> > [ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
> E - If I ignore these issues and import the projects generated in step #2, I get a bunch of errors related to the lack of an M2_REPO definition. Adding this variable needs to be included in the build scripts or documentation in the wiki.
> F - Once that is resolved, eclipse shows hundreds of errors and warnings starting with "AvroRecord" cannot be resolved to a type.
> Thanks so much for your work on this, but it needs a little more effort in documentation and/or development before it is usable again.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira