Hadoop單機模式測試

2021-06-02 07:08:10 字數 686 閱讀 4332

$ mkdir input

$ cp conf/*.xml input

$ bin/hadoop jar hadoop-0.20.2-examples.jar grep input output 'dfs[a-z.]+'

$ cat output/*

hadoop-0.20.2

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

hadoop-0.20.203.0

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

hadoop-0.21.0

bin/hadoop jar hadoop-mapred-examples-0.21.0.jar grep input output 'dfs[a-z.]+'

hadoop-1.0.0

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

hadoop-1.0.0-bin

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

Hadoop入門(二) ZooKeeper單機安裝

cd usr local src wget tar zxvf zookeeper 3.4.5.tar.gz 2配置cd zookeeper 3.4.5 cp conf zoo sample.cfg conf zoo.cfg export zookeeper home usr local src zo...

單機版hadoop部署

單機版hadoop部署 解除安裝自帶的jdk,安裝自己的jdk 1.tar zxf tmp hadoop 2.6.5.tar.gz c usr local 解壓到 usr local中 2.cd usr local 3.mv hadoop 2.6.0 hadoop 將資料夾名改為hadoop 4.c...

hadoop 單機版部署

mac hadoop 單機版部署 確定以安裝 brew 使用brew 安裝 hadoop brew install hadoop配置ssh localhost 設定免密登入 localhost ssh keygen t rsa cat ssh id rsa.pub ssh authorized ke...