# mkdir input
# cpshare/Hadoop/common/templates/conf/*.xml input
# bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.0.0-alpha.jargrep input output 'dfs[a-z.]+'
...
INFO input.FileInputFormat: Total inputpaths to process : 6
...
...
12/05/27 03:38:30 INFO mapreduce.Job:Counters: 27
File System Counters
FILE: Number of bytes read=91368
FILE: Number of bytes written=505456
FILE: Number of read operations=0
FILE: Number of large read operations=0
FILE: Number of write operations=0
Map-Reduce Framework
Map input records=32
Map output records=32
Map output bytes=1006
Map output materialized bytes=1076
Input split bytes=133
Combine input records=0
Combine output records=0
Reduce input groups=3
Reduce shuffle bytes=0
Reduce input records=32
Reduce output records=32
Spilled Records=64
Shuffled Maps =0
Failed Shuffles=0
Merged Map outputs=0
GC time elapsed (ms)=50
CPU time spent (ms)=0
Physical memory (bytes) snapshot=0
Virtual memory (bytes) snapshot=0
Total committed heap usage(bytes)=242368512
File Input Format Counters
Bytes Read=1368
File Output Format Counters
Bytes Written=830
# ls input/
capacity-scheduler.xml core-site.xmlhadoop-policy.xml hdfs-site.xml mapred-queue-acls.xml mapred-site.xml
{matching the, INFO input.FileInputFormat:Total input paths to process : 6}
# cat output/part-r-00000
3 dfs.datanode.data.dir
2 dfs.namenode.http
2 dfs.namenode.https
1 dfsqa
1 dfsadmin
1 dfs.webhdfs.enabled
1 dfs.umaskmode
1 dfs.support.append
1 dfs.secondary.namenode.keytab.file
1 dfs.secondary.namenode.kerberos.principal
1 dfs.secondary.namenode.kerberos.https.principal
1 dfs.permissions.superusergroup
1 dfs.namenode.secondary.http
1 dfs.namenode.safemode.threshold
1 dfs.namenode.replication.min.
1 dfs.namenode.name.dir
1 dfs.namenode.keytab.file
1 dfs.namenode.kerberos.principal
1 dfs.namenode.kerberos.https.principal
1 dfs.include
1 dfs.https.port
1 dfs.hosts.exclude
1 dfs.hosts
1 dfs.exclude
1 dfs.datanode.keytab.file
1 dfs.datanode.kerberos.principal
1 dfs.datanode.http.address
1 dfs.datanode.data.dir.perm
1 dfs.datanode.address
1 dfs.cluster.administrators
1 dfs.block.access.token.enable
1 dfs
{matching the, Reduce output records=32}
完成,快速安装并核实hadoop 2.0.0 alpha独立版
更多Hadoop相关信息见Hadoop 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=13
