- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Oozie db to PGSQL in Ambari install.
- Labels:
-
Apache Ambari
-
Apache Oozie
Created 01-15-2016 07:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
While installing Ambari on CentOS7, i was asked about the Oozie db target. I opted to use PGSQL, but that failed, since i did not have any idea what the UserName, Pwd or DBName defaulted to or where to set them. The instructions page gives not idea what to use for them.
Created 01-15-2016 07:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Dave Woodruff I highly recommend using the search tool on Hortonworks Documentation page to find what you're looking for. Here's the doc that can help.
Created 01-15-2016 07:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Dave Woodruff I highly recommend using the search tool on Hortonworks Documentation page to find what you're looking for. Here's the doc that can help.
Created 01-16-2016 02:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Please see this guide http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_ambari_reference_guide/content/_using_ooz...
Using Oozie with PostgreSQL
To set up PostgreSQL for use with Oozie:
- On the Ambari Server host, stage the appropriate PostgreSQL connector for later deployment.
- Install the connector.
RHEL/CentOS/Oracle Linux
yum install postgresql-jdbcSLES
zypper install -y postgresql-jdbcUBUNTU
apt-get install -y postgresql-jdbcDEBIAN
apt-get install -y postgresql-jdbc - Confirm that .jar is in the Java share directory.
ls /usr/share/java/postgresql-jdbc.jar - Change the access mode of the .jar file to 644.
chmod 644 /usr/share/java/postgresql-jdbc.jar - Execute the following command:
ambari-server setup --jdbc-db=postgres --jdbc-driver=/usr/share/java/postgresql-jdbc.jar
- Install the connector.
- Create a user for Oozie and grant it permissions.
- Using the PostgreSQL database admin utility:
echo "CREATE DATABASE <OOZIEDATABASE>;" | psql -U postgresecho "CREATE USER <OOZIEUSER> WITH PASSWORD '<OOZIEPASSWORD>';" | psql -U postgresecho "GRANT ALL PRIVILEGES ON DATABASE <OOZIEDATABASE> TO <OOZIEUSER>;" | psql -U postgres - Where <OOZIEUSER> is the Oozie user name, <OOZIEPASSWORD> is the Oozie user password and <OOZIEDATABASE> is the Oozie database name.
- Using the PostgreSQL database admin utility:
Created 02-10-2016 04:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is not reqired anymore when deploying ?
oozie.service.JPAService.create.db.schema=true
Created 02-10-2016 04:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Peter Bartal I would follow the documentation.