which account i can use to run pg_dump in the original? I tried the one
in /etc/cloudera-scm-server/db.properties, but it can only backup database
scm, i can not use that dump amon/hmon/...
# pg_dump -h localhost -U scm -p 7432 amon > amon.sql
Password:
pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: permission denied for relation
cmon_schema_version
pg_dump: The command was: LOCK TABLE public.cmon_schema_version IN ACCESS
SHARE MODE
any idea?
On Thursday, August 15, 2013 2:47:55 PM UTC-7, Philip Zeyliger wrote:
Hi Rex,
Use "pg_dump" and "pg_restore" which are Postgres utilities, against the
database as specified by /etc/cloudera-scm-server/db.properties.
Strictly speaking, there's no need to turn off the cluster, though it
won't hurt. I'd shut down the management services and CM, take a database
dump, start CM on the new machine and restore the DB. Then update the
agent configs and restart them.
-- Philip
On Thu, Aug 15, 2013 at 2:45 PM, Rex Zhen <rex....@gmail.com <javascript:>
To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.Hi Rex,
Use "pg_dump" and "pg_restore" which are Postgres utilities, against the
database as specified by /etc/cloudera-scm-server/db.properties.
Strictly speaking, there's no need to turn off the cluster, though it
won't hurt. I'd shut down the management services and CM, take a database
dump, start CM on the new machine and restore the DB. Then update the
agent configs and restart them.
-- Philip
On Thu, Aug 15, 2013 at 2:45 PM, Rex Zhen <rex....@gmail.com <javascript:>
wrote:
This is the plan, let me know if there is anything wrong here.
1. stop the cluster and all the cluster services.
2. make a backup for the embedded postgresql database for CM.
3. Install a CM in a new box, point the agent to the cluster.
4. Restore the database back to CM.
I have one more question, how to backup and restore embedded database
here?
an email to scm-users+...@cloudera.org <javascript:>.
This is the plan, let me know if there is anything wrong here.
1. stop the cluster and all the cluster services.
2. make a backup for the embedded postgresql database for CM.
3. Install a CM in a new box, point the agent to the cluster.
4. Restore the database back to CM.
I have one more question, how to backup and restore embedded database
here?
On Thursday, August 15, 2013 11:11:31 AM UTC-7, Rex Zhen wrote:
Hi,
For some reason I install CM in the same box as name node at the
beginning, and I realize that it is not a good idea when I have HA deployed
in the cluster.
Is there a way to migrate the CM out to another dedicate box or event a
virtualized box?
To unsubscribe from this group and stop receiving emails from it, sendHi,
For some reason I install CM in the same box as name node at the
beginning, and I realize that it is not a good idea when I have HA deployed
in the cluster.
Is there a way to migrate the CM out to another dedicate box or event a
virtualized box?
an email to scm-users+...@cloudera.org <javascript:>.