cygwin

Windows上搭建hadoop开发环境

自古美人都是妖i 提交于 2019-12-24 10:54:47
前言 Windows下运行 Hadoop ,通常有两种方式:一种是用VM方式安装一个 Linux 操作系统 ,这样基本可以实现全Linux环境的Hadoop运行;另一种是通过Cygwin模拟Linux环境。后者的好处是使用比较方便,安装过程也简单,本篇文章是介绍第二种方式Cygwin模拟Linux环境。 准备工作 (1)安装JDK1.6或更高版本,安装时注意,最好不要安装到带有空格的路径名下,例如:Programe Files,否则在配置Hadoop的配置文件时会找不到JDK。 (2)hadoop官网下载hadoop http://hadoop.apache.org/releases.html 。 安装Cygwin Cygwin是Windows平台下模拟Unix环境的工具,需要在安装Cygwin的基础上安装Hadoop,下载地址: http://www.cygwin.com/ 根据操作系统的需要下载32位或64的安装文件。 一、双击下载好的安装文件,点击下一步进入程序引导安装页,这里有三个选项,选择第一项网络安装: 网络安装:通过网络下载并安装软件包 下载但不安装:通过网络下载软件包 本地安装:是用本地软件包安装 二、选择install from internet 三、选择安装路径 三、选择local Package Directory 四、选择您的Internet连接方式 五

Compiling MongoDB C++ driver on Cygwin

梦想与她 提交于 2019-12-24 10:45:05
问题 I junt trying compile the MongoDB C++ driver on Cygwin with the 'scons' command and i getting this follow error: src/mongo/db/nonce.cpp:48:20: error: ‘srandomdev’ was not declared in this scope What lib is that? Thanks. 回答1: The srandomdev function is available in stdlib.h on BSD or OSX systems, not on GNU systems like Cygwin or Linux. It looks like the build script does not recognize the fact that you are running on Cygwin. There are a few options that you can try. The easiest ones are

Apache Nutch error: Injector: java.io.IOException: (null) entry in command string: null chmod 0644

 ̄綄美尐妖づ 提交于 2019-12-24 09:58:28
问题 I am using Apache Nutch 1.14 on Windows 10 having java 1.8. I have followed the same steps as mentioned on https://wiki.apache.org/nutch/NutchTutorial. When I try to inject the URLs in crawldb using the command on cygwin : bin/nutch inject crawl/crawldb urls I get the following error: Injector: java.io.IOException: (null) entry in command string: null chmod 0644 E:\apache-nutch-1.4\runtime\local\crawl\crawldb.locked at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:773)

Git on windows, is it truly distributed?

时光毁灭记忆、已成空白 提交于 2019-12-24 09:48:44
问题 I am just starting out with git on the Windows platform. I have mysygit installed and bar a few hiccups I am 'git'ing away nicely. However, I must be missing something because I don't understand how two msysgit clients on different Windows machines can push and pull to each other directly? I am a complete linux noob but I think I can see that the ssh thing allows distribution on linux. However, the msysgit client appears just to be additional commands in the windows cmd prompt and there is no

What are the downsides to using the official Windows Git binaries from cygwin?

不问归期 提交于 2019-12-24 09:25:32
问题 Cygwin's latest git, svn and git-svn combination is stuck at old versions that have numerous git-svn bugs. I'm considering just downloading the official windows version (warning: this will start the a download: http://git-scm.com/download/win ), putting that in my path, and calling those binaries from Cygwin. What are the downsides to this? 回答1: Non-Cygwin Windows binaries won't be able to see Cygwin-style file paths. For example, your home directory might be /home/yourname as seen from

Loadable modules messages under Cygwin

为君一笑 提交于 2019-12-24 09:18:48
问题 When building LLVM using cmake, a few components involving "Loadable modules" are not built, and warning messages such as the following are issued: -- LLVMHello ignored -- Loadable modules not supported on this platform. ... -- BugpointPasses ignored -- Loadable modules not supported on this platform. ... -- SampleAnalyzerPlugin ignored -- Loadable modules not supported on this platform. -- PrintFunctionNames ignored -- Loadable modules not supported on this platform. But loadable modules are

Unable to remove cygwin from PATH environment variable

一个人想着一个人 提交于 2019-12-24 09:12:58
问题 I recently had to reinstall Cygwin and in doing so, I have ran into a problem with some application because Cygwin seems to be appended to my PATH environment variable. I have tried to remove this by following these instructions https://www.java.com/en/download/help/path.xml but something strange happens. If I look at the value of Path under 'Environment Variables', Cygwin is not there; however if I type PATH in cmd.exe, I see Cygwin gets appended at the end of the PATH. Can you please help

Errors cloning git project using Cygwin, msysgit Bash shell works

旧巷老猫 提交于 2019-12-24 07:47:21
问题 I have Cygwin installed on Windows XP and it comes with git v1.7.3.3. I also have SSH access to a git repository hosted on a Linux server. Sometimes, when cloning a large project using Cygwin I get the following error: $ git clone ssh://me@server/git/project Cloning into project... remote: Counting objects: 44255, done. remote: Compressing objects: 100% (8111/8111), done. fatal: The remote end hung up unexpectedly.61 MiB | 10.91 MiB/s fatal: early EOF fatal: index-pack failed This seems to be

Running Java Program on Cygwin - classpath not found

亡梦爱人 提交于 2019-12-24 06:58:26
问题 I have a simple Java program that prints out my classpath. Folder structure is as follows: [~/tmp/bin]# ls launcher/ PrintClasspath.class* And a copy of the same class one more level down in. [~/tmp/bin/launcher]# ls PrintClasspath.class* When I jump up to my ~/tmp directory and run PrintClasspath in my ~/tmp/bin directory, I can run the program just fine, stating ./bin as the classpath. [~/tmp]# java -cp "./bin" PrintClasspath /C:/Cygwin/home/user/tmp/bin/ Or I can run the same file I nested

Program won't run in NetBeans, but runs on the command line!

十年热恋 提交于 2019-12-24 03:19:45
问题 So, I'm starting a C++ class right now, and I've configured NetBeans (which I use normally for PHP and Java Development) to use the Cygwin compiler/debugger. This is my first structured experience with C++, and I'm running into a slight issue. When I attempt to run a program within NetBeans (F11 or the Green Triangle) the project builds correctly, no errors or warnings, but then won't run. I receive the following error: The application failed with exit code -1073741515 (0xc0000135). This