Hadoop环境配置

来源:互联网 发布:物流仿真软件有哪些 编辑:程序博客网 时间:2024/05/17 21:53
java配置sudo mkdir /usr/lib/jvmsudo chmod 777 /usr/lib/jvm将下载的jdk7解压到jvm文件夹sudo apt-get install vimvim /etc/profile添加
export JAVA_HOME=/usr/local/jdk1.7.0_79export JRE_HOME=${JAVA_HOME}/jreexport CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/libexport PATH=${JAVA_HOME}/bin:$PATH
source /etc/profileSSH配置sudo apt-get install ssh检测是否启动sshd服务ps -e | grep sshdssh-keygen -t dsa -P '' -f ~/.ssh/id_dsacat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keysssh -versionssh localhosthadoop配置hadoop 1.2.1hadoop-env.sh指定jdk的安装位置conf/core-site.xml
<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="configuration.xsl"?><!-- Put site-specific property overrides in this file. --><configuration><property>          <name>fs.default.name</name>          <value>hdfs://localhost:9000</value>  </property>  <property><name>hadoop.tmp.dir</name><value>/home/fd/hadoop_tmp</value><description>A base for other temporary directories.</description></property></configuration>
conf/hdfs-site.xml
<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="configuration.xsl"?><!-- Put site-specific property overrides in this file. --><configuration><property>    <name>dfs.replication</name>    <value>1</value>    </property>  </configuration>
conf/mapred-site.xml
<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="configuration.xsl"?><!-- Put site-specific property overrides in this file. --><configuration><property><name>mapred.job.tracker</name><value>localhost:9001</value></property></configuration>
hadoop namenode -formathttp://blog.csdn.net/hxpjava1/article/details/20214049
0 0
原创粉丝点击