---
title: "CDH部署维护问题记录"
author: "horace20"
date: "2014-06-06T17:46:00Z"
tags: []
slug: "cdh"
draft: false
lastmod: "2014-09-15T11:09:32Z"
id: 2116511
url: "https://horace20.iteye.com/blog/2116511"
---

1、IOExceptionthrown**while**collectingdatafromhost:Noroutetohost

原因：agent开启了防火墙

解决：serviceiptablesstop（不推荐）

2、Cloudera recommendssetting /proc/sys/vm/swappiness to 0. Current setting is 60. Use the sysctlcommand to change this setting at runtime and edit /etc/sysctl.conf for thissetting to be saved after a reboot. You may continue with installation, but youmay run into issues with Cloudera Manager reporting that your hosts areunhealthy because they are swapping. The following hosts are affected:

解决：

\# echo 0 &gt;/proc/sys/vm/swappiness （to apply for now）

\# sysctl -wvm.swappiness=0 （to make this persistentacross reboots）

3、时钟不同步（同步至中科大时钟服务器202.141.176.110）

\# echo "0 3 * \** /usr/sbin/ntpdate 202.141.176.110;/sbin/hwclock –w"&gt;&gt;/var/spool/cron/root

\# service crondrestart

\# ntpdate202.141.176.110

4、The host's NTP service didnot respond to a request for the clock offset.

#service ntpd start

\# ntpdc -c loopinfo (thehealth will be good if this command executed successfully)

5、The Cloudera Manager Agentis not able to communicate with this role's web server.

一种原因是元数据数据库无法连接，请检查数据库配置：

![](http://img.blog.csdn.net/20140606174219046?watermark%2F2%2Ftext%2FaHR0cDovL2Jsb2cuY3Nkbi5uZXQvaG9yYWNlMjA=%2Ffont%2F5a6L5L2T%2Ffontsize%2F400%2Ffill%2FI0JBQkFCMA%3D%3D%2Fdissolve%2F70%2Fgravity%2FSouthEast)

6、Hive Metastore Server无法启动，修改Hive元数据数据库配置（当我们修改主机名后即应修改元数据数据库配置）：

![](http://img.blog.csdn.net/20140606174247859?watermark%2F2%2Ftext%2FaHR0cDovL2Jsb2cuY3Nkbi5uZXQvaG9yYWNlMjA=%2Ffont%2F5a6L5L2T%2Ffontsize%2F400%2Ffill%2FI0JBQkFCMA%3D%3D%2Fdissolve%2F70%2Fgravity%2FSouthEast)

本文产生于个人工作学习笔记，转载请注明出处[http://blog.csdn.net/horace20](http://blog.csdn.net/horace20)