使用Microsoft Hadoop(一)
To run this program, stage some data in HDFS:
1. create a text file called input.txt that has one integer per line.
我操作时将文件input.txt放在左面上(c:\user\kim\desktop\input.txt)上
2. import that text file to HDFS via
> hadoop fs -copyFromLocal input.txt input/SqrtJob/input.txt
我操作时使用Hadoop Command Line工具,输入带命令是hadoop fs -copyFromLocal c:\user\kim\desktop\input.txt input/SqrtJob/input.txt 执行该命令之后input文件时被复执入hdfs(hadoop分布式文件系统中),这里在我机器上的路径是:
3. compile your .NET code to a DLL called FirstJob.dll and run it via
> MRRunner -dll FirstJob.dll
在项目中引用MapReduce组件的时候,会出现MRRunner.exe