ClouderaManagerを介してCDHをインストールする
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/initialize_embedded_db.sh /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'