Reply
New Contributor
Posts: 2
Registered: ‎03-02-2015

Cloudera 5.0.1 Installation is failing

I am trying to install Cloudera manager but it is failing and below is the log file:
I have uninstalled postgres and tried again but still the same error.
 
[root@nncloudera cloudera-manager-installer]# more 5.start-embedded-db.log
mktemp: failed to create file via template `/tmp/XXXXXXXX': Permission denied
/usr/share/cmf/bin/initialize_embedded_db.sh: line 393: $PASSWORD_TMP_FILE: ambiguous redirect
The files belonging to this database system will be owned by user "cloudera-scm".
This user must also own the server process.
The database cluster will be initialized with locale en_US.UTF8.
The default text search configuration will be set to "english".
fixing permissions on existing directory /var/lib/cloudera-scm-server-db/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 32MB
creating configuration files ... ok
creating template1 database in /var/lib/cloudera-scm-server-db/data/base/1 ... ok
initializing pg_authid ... ok
initdb: could not open file "" for reading: No such file or directory
initdb: removing contents of data directory "/var/lib/cloudera-scm-server-db/data"
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
 
 
Please suggest.
Expert Contributor
Posts: 61
Registered: ‎03-06-2015

Re: Cloudera 5.0.1 Installation is failing

It would help if you provided us with more information.

 

Example what user are you using and if you've setup rights per user to run as appropriate user, etc. Version, OS, etc

Explorer
Posts: 12
Registered: ‎05-01-2015

Re: Cloudera 5.0.1 Installation is failing

I am getting the exact same error when installling Cloudera manager 5.4 on Centos 6.6.   I am running the installer as root, so not sure why there is a permission denied message and postgres is unable to initialize.  Any help is appreciated.

Cloudera Employee
Posts: 228
Registered: ‎09-23-2013

Re: Cloudera 5.0.1 Installation is failing

[ Edited ]

Verify you have disabled SElinux as well as iptables for the installation of any release.  Stick to following the documentation on installation, the requirements are detailed here:

 

http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_ig_cm_requirements.h...

 

The document covers the networking and security requirements in the last section, but we sugges reviewing the full discussion from that page.

Explorer
Posts: 12
Registered: ‎05-01-2015

Re: Cloudera 5.0.1 Installation is failing

SELinux and iptables both are disabled.  I have tried to follow each and every step.  However, I still get the same error.

Highlighted
Expert Contributor
Posts: 61
Registered: ‎03-06-2015

Re: Cloudera 5.0.1 Installation is failing

I had similar error and found out cloudera was using a hostname ssh-key that I never setup because of nsswitch defaults were reversed.

 

If you have a multi-node cluster make sure you run :

 

# ssh-copy-id node1 thru node 200 <-- Resolved my issue

 

# ssh-copy-id node1

 

This was also causing database connection issue. The user did not have the  ssh id.

 

Hope this helps  

Explorer
Posts: 12
Registered: ‎05-01-2015

Re: Cloudera 5.0.1 Installation is failing

I do not have a cluster of node.  This is the first time I am setting up cloudera manager on a single node.  Not sure if I still need to use ssh-copy-id.  Help much appreciated.

Expert Contributor
Posts: 61
Registered: ‎03-06-2015

Re: Cloudera 5.0.1 Installation is failing

I never had that issue but I did issue this on all nodes to every other node.

 

# ssh-keygen

 

When generating keys, enter through no entry needed for generating keys {enter, enter, enter, enter}

 

# ssh-copy-id localhost   <-- have username and password used for cloudera that you setup

# ssh-copy-id 127.0.0.1   <-- have username and password used for cloudera that you setup

# ssh-copy-id {anyEx-IP-Address-you-have-configured}           <-- have username and password used for cloudera that you setup

 

I don't know how you're setup but this is worth a try.

 

I use this on Apache Hadoop as well and works perfectly.

 

 

Explorer
Posts: 12
Registered: ‎05-01-2015

Re: Cloudera 5.0.1 Installation is failing

Thanks for your help, but bad news.  Now ssh is enabled for local host and 127.0.0.1 with the password that I setup when generating rsa keys, but still the cloudera manager installer fails and gives the exact same error.  I am running out of ideas now.....  And this is single node....

Expert Contributor
Posts: 61
Registered: ‎03-06-2015

Re: Cloudera 5.0.1 Installation is failing

Can you show complete error?

Announcements