faint hadoop

xianmin posted @ 2011年3月24日 10:39 in bug移除 , 1126 阅读

失误删除了服务器上的hadoop,不得不重新配置。

格式化后,说啥也启动不起来。

没办法,放弃自己diy后的hadoop版本,然后下载了最新的hadoop。

还是启动不起来。

记录一下全新配置hadoop的问题:

(1)更改conf下的hadoop-env.sh

export JAVA_HOME=

(2)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://cn50:9000</value>
        </property>
        <property>
                <name>hadoop.tmp.dir</name>
                <value>/workspace/xianmin/tmp</value>
        </property>
</configuration>

(3)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>
        <property>
                <name>dfs.data.dir</name>
                <value>/workspace/xianmin/data</value>
        </property>
        <property>
                <name>dfs.name.dir</name>
                <value>/workspace/xianmin/name</value>
        </property>
</configuration>

(4)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>cn50:9001</value>
        </property>
</configuration>

注意这里一定要用cnxx,调试了两天的错误就是因为format的时候找不到host,fuck。

当然需要/etc/hosts要设定cnxx

(5)把hdfs-site.xml和mapred-site.xml复制到hdfs/conf和mapred/conf下

format 然后 启动

 

Avatar_small
seo service london 说:
2024年2月27日 19:38

Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter