vi hadoop-env.sh: export= JAVA_HOME=/opt/inst/jdk181
vi core-site.xml
<property> <name>fs.defaultFS</name> <value>hdfs://bigdata:9000</value> </property> <property> <name>hadoop.tmp.dir</name> <value>/opt/hadoopdata</value> </property> <property> <name>hadoop.proxyuser.root.users</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.root.groups</name> <value>*</value> </property>
vi hdfs-site.xml
<property> <name>dfs.replication</name> <value>1</value> </property>
cp mapred-site.xml.template mapred-site.xml
<property> <name>mapreduce.framework.name</name> <value>yarn</value> </property>
vi
export HADOOP_HOME=/opt/bigdata/hadoop260 export HADOOP_MAPRED_HOME=$HADOOP_HOME export HADOOP_COMMON_HOME=$HADOOP_HOME export HADOOP_HDFS_HOME=$HADOOP_HOME export YARN_HOME=$HADOOP_HOME export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin export HADOOP_INSTALL=$HADOOP_HOME
source /etc/profile hdfs namenode -format
start-all.sh
jps #查看進程
hdfs dfs -put /opt/a.txt /cm/ hdfs dfs -ls /cm
NameNode:主節點,目錄node
DataNode:從節點,數據linux
SecondaryNameNode:主節點的備份shell
調度的是內存的資源和CPU的算力框架
經過ResourceManager(只有一個) 來調度分佈式
ResourceManager主要做用:ide
1.處理客戶端請求oop
2.監控NodeManagercode
3.啓動或監控ApplicationMaster()orm
4.資源的分配或調度xml
NodeManager(多個)
NodeManager主要做用:
1.管理單個節點上的資源
2.處理來自ResourceManager的命令
3.處理來自ApplicationMaster的命令
運算的