---
title: "hadoop 笔记"
author: "jungh"
date: "2012-10-26T11:30:41Z"
tags: []
categories: ["行业应用"]
slug: "hadoop"
draft: false
lastmod: "2012-11-02T17:29:58Z"
id: 1705842
url: "https://jungh.iteye.com/blog/1705842"
---

hadoop博客地址：

[http://langyu.iteye.com/category/177430](http://langyu.iteye.com/category/177430)

 

Shuffle，奇迹发生的地方，mapreduce的核心：

[http://langyu.iteye.com/blog/992916](http://langyu.iteye.com/blog/992916)

 

2、hadoop执行hdfs命令报错： ipc.Client: Retrying connect to server:

原因是：hadoop默认配置是把一些tmp文件放在/tmp目录下，重启系统后，tmp目录下的东西被清除，所以报错  
    解决方法：在conf/core-site.xml （0.19.2版本的为conf/hadoop-site.xml）中增加以下内容  
   &lt;property&gt;  
   &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;  
   &lt;value&gt;/var/log/hadoop/tmp&lt;/value&gt;  
  &lt;description&gt;A base for other temporary directories&lt;/description&gt;  
  &lt;/property&gt;  
  重启hadoop后，格式化namenode即可

3、

通过 [http://master](http://master) node的主机名或IP：50030 可以链接到JobTracker

通过 [http://master](http://master/) node的主机名或IP：50070 可以链接到NameNoe