---
title: "cloudera manager安装问题记录"
author: "justinyao"
date: "2014-02-12T14:29:43Z"
tags: []
categories: ["开源软件"]
slug: "cloudera-manager"
draft: false
lastmod: "2014-02-12T14:29:56Z"
id: 2015651
url: "https://justinyao.iteye.com/blog/2015651"
---

使用cloudera manager安装hadoop,过程中日志记录错误如下:

```
Could not initialize database server.
  This usually means that your PostgreSQL installation failed or isn't working properly.
  PostgreSQL is installed using the set of repositories found on this machine. Please
  ensure that PostgreSQL can be installed. Please also uninstall any other instances of
  PostgreSQL and then try again., giving up
```

 

是PostgreSQL没有启动成功,查看PostgreSQL启动日志

```
cat /var/lib/pgsql/pgstartup.log  
```

 

看到如下信息

```
FATAL:  could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
FATAL:  could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
FATAL:  could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
FATAL:  could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
```

 

是因为没有权限操作/tmp目录

 

执行:

```
chmod 1777 /tmp
```

 

问题解决~!