Support Questions

Find answers, ask questions, and share your expertise

Cloudera Manager Install: scm_prepare_database.sh does not exist

avatar
New Contributor

I'm trying to install Cloudera Manager for a production deployment on Ubuntu 14.04.  I'm following the instructions here: https://www.cloudera.com/documentation/enterprise/latest/topics/install_cm_cdh.html

 

Through step 4, things are going well.  When I get to step 5: "Set up the Cloudera Manager Database", the instructions tell me to run 

/opt/cloudera/cm/schema/scm_prepare_database.sh

However, this script doesn't exist.  Notably, /opt/cloudera/ contains only two folders, csd and parcel-repo, both empty.  How could this be?  All previous steps ran without error.

 

This is my first Cloudera installation, and I apologize if this question contains too little detail.  Please let me know if there is more I should add.

1 ACCEPTED SOLUTION

avatar
Master Collaborator

The location of "scm_prepare_database.sh" will change in CM 6.x, I will check with our documentation team as this may be a doc issue. 

 

For CM 5.x please use the default location, such as "/usr/share/cmf/schema/scm_prepare_database.sh"

 

You can check this by listing the rpm contents.

 

# rpm -qlp http://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5.15/RPMS/x86_64/cloudera-manager-daemons-5.15.0-1.cm5150.p0.62.el7.x86_64.rpm | grep scm_prepare_database.sh
/usr/share/cmf/schema/scm_prepare_database.sh

Let me know if this helps

View solution in original post

6 REPLIES 6

avatar
Master Collaborator

The location of "scm_prepare_database.sh" will change in CM 6.x, I will check with our documentation team as this may be a doc issue. 

 

For CM 5.x please use the default location, such as "/usr/share/cmf/schema/scm_prepare_database.sh"

 

You can check this by listing the rpm contents.

 

# rpm -qlp http://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5.15/RPMS/x86_64/cloudera-manager-daemons-5.15.0-1.cm5150.p0.62.el7.x86_64.rpm | grep scm_prepare_database.sh
/usr/share/cmf/schema/scm_prepare_database.sh

Let me know if this helps

avatar
New Contributor

Yes, this solved my problem.  Thank you.

avatar
New Contributor

avatar
New Contributor

Hi,

 

I'm still getting an error even when I've done that

 

 

I tried running,

 

rpm -qlp http://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5.15/RPMS/x86_64/cloudera-manager-daemons-5.15.0-1.cm5150.p0.62.el7.x86_64.rpm | grep scm_prepare_database.sh

And nothing showed up. 

 

 

 

 

Also:

sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql scm scm

 

Gave the following Error:

sudo: /opt/cloudera/cm/schema/scm_prepare_database.sh: command not found

avatar
New Contributor

I tried running,

 

rpm -qlp http://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5.15/RPMS/x86_64/cloudera-manager-daemons-5.15.0-1.cm5150.p0.62.el7.x86_64.rpm | grep scm_prepare_database.sh

And nothing showed up. 

avatar
Master Collaborator

 

rpm -qlp http://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5.15/RPMS/x86_64/cloudera-manager-daemons-5.15.0-1.cm5150.p0.62.el7.x86_64.rpm | grep scm_prepare_database.sh

 

I've noticed that the url you've given is /5.15/ that redirects to the latest maintenance release of the CM 5.15 which is 5.15.2.

 

And you've given file "cloudera-manager-daemons-5.15.0-1.cm5150.p0.62.el7.x86_64.rpm" 5.15.0 which is not present in that folder.

 

For your rpm -qlp to work try the /5.15.0/

 

rpm -qlp http://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5.15.0/RPMS/x86_64/cloudera-manager-daemons-5.15.... | grep scm_prepare_database.sh