您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
http://archive-primary.cloudera.com/cdh6/cdh/5/
# useradd hadoop
# vi /etc/sudoers
hadoop ALL=(root) NOPASSWD:ALL
# su - hadoop
[hadoop@hadoop000 softwore]$ wget http://archive-primary.cloudera.com/cdh6/cdh/5/hadoop-2.6.0-cdh6.7.0.tar.gz
[hadoop@hadoop000 app]$ tar -zxvf ../softwore/hadoop-2.6.0-cdh6.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-cdh6.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-cdh6.7.0]$ bin/hdfs namenode -format
[hadoop@hadoop000 hadoop-2.6.0-cdh6.7.0]$ sbin/start-dfs.sh
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。