# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Hadoop环境测试进入hadoop主目录下执行相应的脚本文件
jps命令——java Virtual Machine Process Status,显示运行的java进程
在namenode节点101机器上开启hdfs [iyunv@hadoop01 hadoop-2.7.3]# sbin/start-dfs.sh
Java HotSpot(TM) Client VM warning: You have loaded library /home/softwares/hadoop-2.7.3/lib/native/libhadoop.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
16/11/07 16:49:19 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [hadoop01]
hadoop01: starting namenode, logging to /home/softwares/hadoop-2.7.3/logs/hadoop-root-namenode-hadoop01.out
192.168.56.102: starting datanode, logging to /home/softwares/hadoop-2.7.3/logs/hadoop-root-datanode-hadoop02.out
192.168.56.103: starting datanode, logging to /home/softwares/hadoop-2.7.3/logs/hadoop-root-datanode-hadoop03.out
192.168.56.101: starting datanode, logging to /home/softwares/hadoop-2.7.3/logs/hadoop-root-datanode-hadoop01.out
Starting secondary namenodes [hadoop03]
hadoop03: starting secondarynamenode, logging to /home/softwares/hadoop-2.7.3/logs/hadoop-root-secondarynamenode-hadoop03.out
[iyunv@hadoop01 hadoop-2.7.3]# bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.3.jar wordcount /profile /fll_out
Java HotSpot(TM) Client VM warning: You have loaded library /home/softwares/hadoop-2.7.3/lib/native/libhadoop.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
16/11/07 17:17:10 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
16/11/07 17:17:12 INFO client.RMProxy: Connecting to ResourceManager at /192.168.56.102:8032
16/11/07 17:17:18 INFO input.FileInputFormat: Total input paths to process : 1
16/11/07 17:17:19 INFO mapreduce.JobSubmitter: number of splits:1
16/11/07 17:17:19 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1478509135878_0001
16/11/07 17:17:20 INFO impl.YarnClientImpl: Submitted application application_1478509135878_0001
16/11/07 17:17:20 INFO mapreduce.Job: The url to track the job: http://192.168.56.102:8888/proxy/application_1478509135878_0001/
16/11/07 17:17:20 INFO mapreduce.Job: Running job: job_1478509135878_0001
16/11/07 17:18:34 INFO mapreduce.Job: Job job_1478509135878_0001 running in uber mode : true
16/11/07 17:18:35 INFO mapreduce.Job: map 0% reduce 0%
16/11/07 17:18:43 INFO mapreduce.Job: map 100% reduce 0%
16/11/07 17:18:50 INFO mapreduce.Job: map 100% reduce 100%
16/11/07 17:18:55 INFO mapreduce.Job: Job job_1478509135878_0001 completed successfully
16/11/07 17:18:59 INFO mapreduce.Job: Counters: 52
File System Counters
FILE: Number of bytes read=4264
FILE: Number of bytes written=6412
FILE: Number of read operations=0
FILE: Number of large read operations=0
FILE: Number of write operations=0
HDFS: Number of bytes read=3940
HDFS: Number of bytes written=261673
HDFS: Number of read operations=35
HDFS: Number of large read operations=0
HDFS: Number of write operations=8
Job Counters
Launched map tasks=1
Launched reduce tasks=1
Other local map tasks=1
Total time spent by all maps in occupied slots (ms)=8246
Total time spent by all reduces in occupied slots (ms)=7538
TOTAL_LAUNCHED_UBERTASKS=2
NUM_UBER_SUBMAPS=1
NUM_UBER_SUBREDUCES=1
Total time spent by all map tasks (ms)=8246
Total time spent by all reduce tasks (ms)=7538
Total vcore-milliseconds taken by all map tasks=8246
Total vcore-milliseconds taken by all reduce tasks=7538
Total megabyte-milliseconds taken by all map tasks=8443904
Total megabyte-milliseconds taken by all reduce tasks=7718912
Map-Reduce Framework
Map input records=78
Map output records=256
Map output bytes=2605
Map output materialized bytes=2116
Input split bytes=99
Combine input records=256
Combine output records=156
Reduce input groups=156
Reduce shuffle bytes=2116
Reduce input records=156
Reduce output records=156
Spilled Records=312
Shuffled Maps =1
Failed Shuffles=0
Merged Map outputs=1
GC time elapsed (ms)=870
CPU time spent (ms)=1970
Physical memory (bytes) snapshot=243326976
Virtual memory (bytes) snapshot=2666557440
Total committed heap usage (bytes)=256876544
Shuffle Errors
BAD_ID=0
CONNECTION=0
IO_ERROR=0
WRONG_LENGTH=0
WRONG_MAP=0
WRONG_REDUCE=0
File Input Format Counters
Bytes Read=1829
File Output Format Counters
Bytes Written=1487
浏览器中通过YARN查看运行状态
查看最后的词频统计结果
浏览器中查看hdfs的文件系统
[iyunv@hadoop01 hadoop-2.7.3]# bin/hdfs dfs -cat /fll_out/part-r-00000
Java HotSpot(TM) Client VM warning: You have loaded library /home/softwares/hadoop-2.7.3/lib/native/libhadoop.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
16/11/07 17:29:17 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
!= 1
"$-" 1
"$2" 1
"$EUID" 2
"$HISTCONTROL" 1
"$i" 3
"${-#*i}" 1
"0" 1
":${PATH}:" 1
"`id 2
"after" 1
"ignorespace" 1
# 13
$UID 1
&& 1
() 1
*) 1
*:"$1":*) 1
-f 1
-gn`" 1
-gt 1
-r 1
-ru` 1
-u` 1
-un`" 2
-x 1
-z 1
. 2
/etc/bashrc 1
/etc/profile 1
/etc/profile.d/ 1
/etc/profile.d/*.sh 1
/usr/bin/id 1
/usr/local/sbin 2
/usr/sbin 2
/usr/share/doc/setup-*/uidgid 1
002 1
022 1
199 1
200 1
2>/dev/null` 1
; 3
;; 1
= 4
>/dev/null 1
By 1
Current 1
EUID=`id 1
Functions 1
HISTCONTROL 1
HISTCONTROL=ignoreboth 1
HISTCONTROL=ignoredups 1
HISTSIZE 1
HISTSIZE=1000 1
HOSTNAME 1
HOSTNAME=`/usr/bin/hostname 1
It's 2
JAVA_HOME=/home/softwares/jdk1.8.0_111 1
LOGNAME 1
LOGNAME=$USER 1
MAIL 1
MAIL="/var/spool/mail/$USER" 1
NOT 1
PATH 1
PATH=$1:$PATH 1
PATH=$PATH:$1 1
PATH=$PATH:$JAVA_HOME/bin 1
Path 1
System 1
This 1
UID=`id 1
USER 1
USER="`id 1
You 1
[ 9
] 3
]; 6
a 2
after 2
aliases 1
and 2
are 1
as 1
better 1
case 1
change 1
changes 1
check 1
could 1
create 1
custom 1
custom.sh 1
default, 1
do 1
doing. 1
done 1
else 5
environment 1
environment, 1
esac 1
export 5
fi 8
file 2
for 5
future 1
get 1
go 1
good 1
i 2
idea 1
if 8
in 6
is 1
it 1
know 1
ksh 1
login 2
make 1
manipulation 1
merging 1
much 1
need 1
pathmunge 6
prevent 1
programs, 1
reservation 1
reserved 1
script 1
set. 1
sets 1
setup 1
shell 2
startup 1
system 1
the 1
then 8
this 2
threshold 1
to 5
uid/gids 1
uidgid 1
umask 3
unless 1
unset 2
updates. 1
validity 1
want 1
we 1
what 1
wide 1
will 1
workaround 1
you 2
your 1
{ 1
} 1