官术网_书友最值得收藏!

Installation

Perform the following steps to install a single-node Hadoop cluster on your machine:

  1. Extract the downloaded file using the following command:
tar -xvzf hadoop-3.1.0.tar.gz
  1. Once you have extracted the Hadoop binaries, just run the following commands to test the Hadoop binaries and make sure the binaries works on our local machine:
cd hadoop-3.1.0

mkdir input

cp etc/hadoop/*.xml input

bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-3.1.0.jar grep input output 'dfs[a-z.]+'

cat output/*

If everything runs as expected, you will see an output directory showing some output, which shows that the sample command worked.

A typical error at this point will be missing Java. You might want to check and see if you have Java installed on your machine and the JAVA_HOME environment variable set correctly.

主站蜘蛛池模板: 文昌市| 探索| 卢氏县| 垣曲县| 孙吴县| 临颍县| 芒康县| 镇雄县| 黔江区| 广宁县| 连城县| 含山县| 抚顺市| 高尔夫| 陆良县| 县级市| 莱西市| 兴城市| 嘉禾县| 滦平县| 揭西县| 吐鲁番市| 江油市| 武汉市| 土默特左旗| 务川| 稻城县| 阿勒泰市| 辽阳市| 松滋市| 扶绥县| 蕲春县| 五指山市| 德昌县| 德阳市| 玉林市| 鄂州市| 高青县| 庐江县| 普兰店市| 秦皇岛市|