首先,我下载最新版本的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文件,但它在主目录中。我是否需要将其复制并粘贴到上述每个文件中?
答案 0 :(得分:1)
我能够解决
上报道的问题https://support.microsoft.com/en-us/kb/2717426
要解决此问题,必须卸载Visual的所有版本 安装Windows 7 SDK之前的C ++ 2010 Redistributable。你可以 安装了以下一种或多种产品:
- Microsoft Visual C ++ 2010 x86可再发行组件
- Microsoft Visual C ++ 2010 x64可再发行组件
卸载Microsoft Visual C ++ 2010 Redistributable产品后,您可以安装Windows 7 SDK。
答案 1 :(得分:0)
它声明缺少Pom.xml文件。尝试使用新的包,如下面的链接,
http://bfeinsilver.blogspot.com.es/2014/03/installing-apache-hadoop-220-on-windows.html
请使用以下步骤构建Apache Hadoop。