首先,我下载了最新版本的Hadoop Apache 2.7.0-src.tar.gz。其次,我将其解压并将其移植到C中。然后,我使用以下SDK 7.1命令行:
hdfs>mvn package -Pdist,native-win -DskipTests -Dtar这是我得到的输出:
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/3.3/
plexus-3.3.pom
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/3.3/p
lexus-3.3.pom (20 KB at 525.2 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-si
nk-api/1.0/doxia-sink-api-1.0.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-sin
k-api/1.0/doxia-sink-api-1.0.pom (2 KB at 39.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia/1.
0/doxia-1.0.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia/1.0
/doxia-1.0.pom (10 KB at 241.5 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/1
0/maven-parent-10.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/10
/maven-parent-10.pom (31 KB at 594.1 KB/sec)
*
*
*
Many Lines of download files.
*
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.hadoop:hadoop-main:2.7.0 (C:\hdfs\pom.xml) has
7 errors
[ERROR] Child module C:\hdfs\hadoop-project\pom.xml of C:\hdfs\pom.xml does not exist
[ERROR] Child module C:\hdfs\hadoop-assemblies\pom.xml of C:\hdfs\pom.xml does not exist
[ERROR] Child module C:\hdfs\hadoop-maven-plugins\pom.xml of C:\hdfs\pom.xml
does not exist
[ERROR] Child module C:\hdfs\hadoop-yarn-project\pom.xml of C:\hdfs\pom.xml
does not exist
[ERROR] Child module C:\hdfs\hadoop-mapreduce-project\pom.xml of C:\hdfs\pom.xml
does not exist
[ERROR] Child module C:\hdfs\hadoop-tools\pom.xml of C:\hdfs\pom.xml
does not exist
[ERROR] Child module C:\hdfs\hadoop-dist\pom.xml of C:\hdfs\pom.xml
does not exist
[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/ProjectBuildin
gException
C:\hdfs>我不知道如何解决这个问题。我有pom文件,但它在主目录中。我是否需要将其复制并粘贴到上述每个文件中?
发布于 2016-03-22 20:59:30
我能够修复报告中提到的问题
https://support.microsoft.com/en-us/kb/2717426
若要解决此问题,必须先卸载所有版本的C++ 2010可再发行版,然后再安装Windows7SDK。您可能安装了以下一个或多个产品:
Redistributable
卸载Microsoft Visual C++ 2010可再发行产品后,您可以安装Windows7SDK。
发布于 2015-06-16 15:05:59
它指出Pom.xml文件丢失。尝试通过下面的链接使用新的包,
http://bfeinsilver.blogspot.com.es/2014/03/installing-apache-hadoop-220-on-windows.html
请使用以下步骤构建Apache Hadoop。
https://stackoverflow.com/questions/30852829
复制相似问题