标签:code namenode usr -o get property proc 删除 sof
cdh地址# useradd hadoop
# vi /etc/sudoers
hadoop ALL=(root) NOPASSWD:ALL
# su - hadoop
[hadoop@hadoop000 softwore]$ wget http://archive-primary.cloudera.com/cdh5/cdh/5/hadoop-2.6.0-cdh5.7.0.tar.gz
[hadoop@hadoop000 app]$ tar -zxvf ../softwore/hadoop-2.6.0-cdh5.7.0.tar.gz
[root@hadoop000 jdk1.7.0_80]# echo $JAVA_HOME
/usr/java/jdk1.7.0_80
在hadoop-env.sh文件中修改java_home
export JAVA_HOME=/usr/java/jdk1.7.0_80
增加HADOOP_PREFIX
export HADOOP_PREFIX=/home/hadoop/app/hadoop-2.6.0-cdh5.7.0
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://hadoop:9000</value>
</property>
</configuration>
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>
hadoop
删除.ssh文件夹 防止冲突
# rm -rf .ssh
生成ssh秘钥
# ssh-keygen -t dsa -P ‘‘ -f ~/.ssh/id_dsa
# cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
修改authorized_keys 文件权限
chmod 600 authorized_keys
[hadoop@hadoop000 hadoop-2.6.0-cdh5.7.0]$ bin/hdfs namenode -format
[hadoop@hadoop000 hadoop-2.6.0-cdh5.7.0]$ sbin/start-dfs.sh
标签:code namenode usr -o get property proc 删除 sof
原文地址:http://blog.51cto.com/14017865/2304833