After installing PHD add on for Pivotal Cloud Foundry 1.1 I quickly created some development services for PHD using the CLI as shown below.[Tue Apr 15 22:40:08 papicella@:~/vmware/pivotal/products/cloud-foundry ] $ cf create-service p-hd-hawq-cf free dev-hawqCreating service dev-hawq in org pivotal / space development as pas...OK[Tue Apr 15 22:42:31 papicella@:~/vmware/pivotal/products/cloud-foundry ] $ cf create-service p-hd-hbase-cf free dev-hbaseCreating service dev-hbase in org pivotal / space development as pas...OK[Tue Apr (more...)
I recently needed to setup a cron script which loaded CSV files from a directory into Greenplum every 2 minutes. Once loaded the files are moved onto Hadoop for archive purposes. The config below shows how to use GPLOAD data load utility which utilises GPFDIST.
1. Create a load table. In this example the data is then moved to the FACT table once the load is complete
drop table rtiadmin.rtitrans_etl4;
CREATE TABLE rtiadmin.rtitrans_etl4 (more...)
PCF AWS marketplace provides app direct services and in this example I am going to use the "newrelic
" monitoring service to monitor my spring based java application. It's really this simple.
1. Create a service as shown below.[Tue Mar 04 17:19:34 papicella@:~/cfapps/spring-travel ] $ cf create-service newrelic standard dev-newrelic
2. Create a manifest.yml for my spring application which uses the new relic service above.applications:- name: pas-springtravel memory: 1024M (more...)
I previously showed how to create a connection in IntelliJ IDEA to Cloud Foundry v2 in the post below.http://theblasfrompas.blogspot.com.au/2014/02/intellij-idea-version-13-now-includes.html
With a Cloud Foundry CLOUD connection we can now PUSH our application directly from the IDE as shown below.
1. Create a run configuration for your project as shown below. We also specify the memory and number of instances on this page as part of the push / deployment process.
Just installed IntelliJ IDEA version 13 and found that it now includes a CloudFoundry connection type. You define it under IDE settings as shown below.
Will test deploying to the publicly hosted AWS Cloud Foundry using this connection at some stage.
By creating a manifest as follows we can push multiple applications in one go as shown below.
1. manifest.ymlapplications:- name: pas-props memory: 256M instances: 1 host: pas-props domain: cfapps.io path: ./props.war- name: pas-httpsession memory: 256M instances: 1 host: pas-httpsession domain: cfapps.io path: ./haclusterdemo.war
2. Push as follows[Thu Feb 20 14:48:45 papicella@:~/vmware/pivotal/products/cloud-foundry/apps/other ] $ cf push -f (more...)