首先,我下载最新版本的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 文件,但它在主目录中。我是否需要将其复制并粘贴到上述每个文件中?
最佳答案
我能够按照
上的报告解决问题https://support.microsoft.com/en-us/kb/2717426
To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the Windows 7 SDK. You may have one or more of the following products installed:
- Microsoft Visual C++ 2010 x86 Redistributable
- Microsoft Visual C++ 2010 x64 Redistributable
After uninstalling the Microsoft Visual C++ 2010 Redistributable products, you may install the Windows 7 SDK.
关于maven - 在 Microsoft Windows 8.1 中运行 Apache Hadoop 2.7.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30852829/