Skip to content

Instantly share code, notes, and snippets.

@tygern
Last active November 6, 2015 17:13
Show Gist options
  • Select an option

  • Save tygern/3230952d7845f02251e1 to your computer and use it in GitHub Desktop.

Select an option

Save tygern/3230952d7845f02251e1 to your computer and use it in GitHub Desktop.
Connect a Spring Boot Application to HAWQ
  1. Download Pivotal HD 3.0 VM from https://github.com/tzolov/vagrant-pivotalhd/.
  2. Install the VM with the default blueprint following instructions in the readme.
  3. Start the VM with vagrant up.
  4. Change the postgres config on phd3.
vagrant ssh phd3
sudo vi /data/hawq/master/gpseg-1/pg_hba.conf

add the following line

host     all         gpadmin         10.211.55.1/32       trust
  1. Use Ambari to restart the HAWQ service.
  2. To check that everthing is configured correctly, try to connect with psql
psql -h10.211.55.103 -Ugpadmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment