草庐IT

maven - 在 Microsoft Windows 8.1 中运行 Apache Hadoop 2.7.0

coder 2024-01-10 原文

首先,我下载最新版本的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/

有关maven - 在 Microsoft Windows 8.1 中运行 Apache Hadoop 2.7.0的更多相关文章

  1. ruby - 如何在 ruby​​ 中运行后台线程? - 2

    我是ruby​​的新手,我认为重新构建一个我用C#编写的简单聊天程序是个好主意。我正在使用Ruby2.0.0MRI(Matz的Ruby实现)。问题是我想在服务器运行时为简单的服务器命令提供I/O。这是从示例中获取的服务器。我添加了使用gets()获取输入的命令方法。我希望此方法在后台作为线程运行,但该线程正在阻塞另一个线程。require'socket'#Getsocketsfromstdlibserver=TCPServer.open(2000)#Sockettolistenonport2000defcommandsx=1whilex==1exitProgram=gets.chomp

  2. ruby - 在 rake 任务中运行 capybara - 2

    如何在Rake任务中运行Capybara功能?例如:访问('http://google.com')谢谢! 最佳答案 在任务中尝试这样的事情:require'capybara'require'capybara/dsl'Capybara.current_driver=:seleniumBrowser=Class.new{includeCapybara::DSL}page=Browser.new.pagepage.visit("http://www.google.com")puts(page.html)

  3. ruby-on-rails - 如何在 gem 中运行 Rails 应用程序? - 2

    我不确定这种事情是否很常见,但我一直在尝试创建只是Rails应用程序包装器的gem。我的gem将有一个生成器来创建config.ru,但Rails应用程序将位于gem的lib目录中。我需要知道如何“嵌入”Rails应用程序并对其进行配置,以便它可以在gem中运行。例如:$mygemnewprojectmygemcreatedadirectorycalled"project"withthefollowingfiles:project/config.ruproject/widgets/project/foobars/我的gem还将生成一些需要以某种方式添加到Rails的目录,以便我可以从G

  4. ruby - Ruby 脚本如何检测到它正在 irb 中运行? - 2

    我有一个定义类的Ruby脚本。我希望脚本执行语句BoolParser.generate:file_base=>'bool_parser'仅当脚本作为可执行文件被调用时,而不是当它被irbrequire(或通过-r在命令行上传递)时。我可以用什么来包装上面的语句,以防止它在我的Ruby文件加载时执行? 最佳答案 条件$0==__FILE__...!/usr/bin/ruby1.8classBoolParserdefself.generate(args)p['BoolParser.generate',args]endendif$0==_

  5. node.js - 如何在 Travis CI 上的一个项目中运行 Node.js 和 Ruby 测试 - 2

    我有一个包含多个组件的存储库,其中大部分是用JavaScript(Node.js)编写的,一个是用Ruby(RubyonRails)编写的。我想要一个.travis.yml文件来触发一个运行每个组件的所有测试的构建。根据thisTravisCIGoogleGroupthread,目前还没有官方支持。我的目录结构是这样的:.├──构建服务器├──核心├──扩展├──网络应用├──流浪文件├──package.json├──.travis.yml└──生成文件我希望能够运行特定版本的Ruby(2.2.2)和Node.js(0.12.2)。我已经有了一个make目标,所以maketest在每

  6. ruby - 用一个 #!在 Ubuntu 中运行的 ruby​​ 中评论 - 2

    我是编程新手,正在尝试遵循使用#!用ruby评论。我一直收到消息:bash:matz.rb:找不到命令我正在使用这个评论:#!/usr/bin/envruby我试过有和没有后面的空格!以及有和没有环境。当我使用$哪个rubyruby在:/usr/bin/ruby我还进入了操作系统,将所有用户对文件matz.rb的权限更改为rwx,但没有任何效果。是我做错了什么还是我的系统设置不正确? 最佳答案 /usr/bin/env部分没问题。运行时需要为bash提供matz.rb的路径。如果您在matz.rb所在的目录中,请键入“./matz.

  7. ruby - 为什么我的 rspec 测试在 Ruby 1.9.2 中比在 1.8.7 中运行得慢? - 2

    我正在使用spork测试Sinatra应用程序,使用Ruby1.9.2,测试运行时间约为3.5秒,但在Ruby1.8.7中,平均运行时间为1.2秒。我确实尝试过Ruby1.9.3甚至JRuby,但它们在我使用的gems上有一些错误。有没有办法将Ruby1.9.2的rspec性能提高到1.8.7的水平?我的gem文件:source:rubygemsgem'sinatra','1.3.1'gem'thin','1.3.1'gem'haml','3.1.4'gem'datamapper','1.2.0'gem'dm-postgres-adapter','1.2.0'gem'carrierwa

  8. ruby - 以非 root 用户身份从 ruby​​ 在 Xvfb 中运行 Selenium::WebDriver::Firefox - 2

    我正在尝试使用ruby​​脚本进行一些headless测试。本质上,我在显示器:1上执行Xvfb,然后使用watir-webdriver启动Watir::Browser.new(:firefox)。如果您以root身份运行脚本,效果会很好-我可以运行x11vnc并观察脚本执行浏览器并与之交互。问题是,我需要能够从Rails应用程序调用这个ruby​​脚本,而不是以root身份运行它...如果我尝试以普通用户身份从命令行运行脚本,Xvfb会启动on:1像往常一样,但Watir不会启动浏览器......它最终会在60秒后超时。通过VNC连接会显示带有鼠标光标的黑屏。我可以从命令行完成所有操

  9. ruby - 在 Maven 集成中运行 Ruby 单元测试 - 2

    有没有人有在Maven中运行用Ruby编写的单元测试的经验。任何输入,如要使用的库/maven插件,将不胜感激!我们已经在使用Maven+hudson+Junit。但是我们正在引入Ruby单元测试,找不到任何同样好的组合。 最佳答案 我建议让Maven使用ExecMavenPlugin启动rake测试(exec:exec目标)并使用ci_reportergem生成单元测试结果的XML文件,Hudson、Bamboo等可以读取该文件,以与JUnit测试相同的格式显示测试结果。如果您不需要使用mvntest运行Ruby测试,您也可以只使

  10. ruby - Phusion passenger 中的多个请求是否在各自的线程中运行? - 2

    我有一个使用Phusionpassenger+Apache网络服务器部署的RubyonRails应用程序。每个请求是否都在由PhusionPassenger生成的自己的线程中运行? 最佳答案 Passenger(以及大多数其他应用程序服务器)每个线程运行不超过一个请求。通常每个进程也只有一个线程。来自PhusionPassengerdocs:PhusionPassengersupportstwoconcurrencymodels:process:single-threaded,multi-processedI/Oconcurrenc

随机推荐