在ubuntu上部署Hadoop
单机部署:http://www.powerxing.com/install-hadoop/
集群部署:http://www.powerxing.com/install-hadoop-cluster/
例子
参考: http://www.cnblogs.com/dplearning/p/4207931.html
使用 hadoop streaming 实现 c++ 编写 mapeduce
Map in c++
//wordcount_map.cpp
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char** argv)
{
string word;
while (cin >> word)
{
cout << word << "\t" << "1" << endl;
}