-
Notifications
You must be signed in to change notification settings - Fork 1
Cloudera PostgreSQL Backups
-
The PostgreSQL instance used by Cloudera is located on the cdh-manager host.
-
The database is installed by the cloudera-manager-server-db-2 package, and is an postgresql 8.0 listening on port 7432.
-
The default root user is cloudera-scm and the default root password is located in the /var/lib/cloudera-scm-server-db/data/generated_password.txt file:
-
The backup script is scheduled to run automatically and store log information in syslog, located in the /var/log/messages file. It is also possible to run the backup script manually as root user:
sudo su -
~/DumpPSQL.py
To restore PostgreSQL databases or tables, you will need access to the AWS S3 backups bucket.
-
Download tar.xz file (ENV_PSQL_YY-MM-DDUhh_mm_ss.tar.xz) containing PostgreSQL all dump (PSQL.all.out) from AWS S3, with the following command:<br>
aws s3 cp s3://backups/[file] .
<br>To list all files in bucket use:<br>
aws s3 ls s3://backups
-
Unpack tar:<br>
tar -xvJf [file].tar.xz
To restore all databases:<br>
~/RestorePSQL.py [PSQL.all.out] all
To restore single database:<br>
~/RestorePSQL.py -LIST=databasename [PSQL.all.out] dbs
To restore specified databases:<br>
~/RestorePSQL.py -LIST=databasename1,...,databasenameN [PSQL.all.out] dbs
To reload roles privileges (to create/recreate users you have to use 'all' command):<br>
~/RestorePSQL.py [PSQL.all.out] users
- [Overview of Trusted Analytics Platform](Overview of Trusted Analytics Platform)
- [Getting Started Guide](Getting Started Guide)
- Space Shuttle Demo Application
- Trusted Analytics JIRA Project
- [Building TAP from sources] (Building-TAP-from-sources)
- PaaS Architecture
- Use-cases
- [High Level Use Case](High Level Use Case)
- [Model Development for Data Scientists](Model Development for Data Scientists)
- Platform Tips and Tricks
- Platform Security Features
- Platform Configurations
- Release Notes
- Additional Deployment Information