Install Cdh Via Cloudera Manager


$ /etc/init.d/cloudera-scm-server-db start


[root@xxxxx cloudera-scm-server-db]# /etc/init.d/cloudera-scm-server-db start The file host belonging to this database system is the user 'cloudera-scm'. This user must also be the host of the server process. The database cluster will be initialized with locale en_US.UTF8. The default text search configuration will be set to'english' Fix permissions for the existing directory /var/lib/cloudera-scm-server-db/data ... initdb: cannot change directory '/var/lib/cloudera-scm-server-db/data' Permissions: insufficient permissions 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


$ su -s /bin/bash cloudera-scm -c 'touch /var/log/cloudera-scm-server/db.log /usr/share/cmf/bin/ /var/lib/cloudera-scm-server-db/data /var/log/cloudera-scm-server/db.log' $ su -s /bin/bash cloudera-scm -c 'pg_ctl start -w -D /var/lib/cloudera-scm-server-db/data -l /var/log/cloudera-scm-server/db.log'