From 247d9df8d07522c249a06c529e530e53415bcc42 Mon Sep 17 00:00:00 2001 From: Matt Van Dijk Date: Wed, 6 Jan 2016 12:14:56 -0500 Subject: Build Vertica UDx examples Vertica comes with SDK example code that provides a number of User Defined Functions and Loads. However they need to be built manually, which isn't possible to do in a running instance. Therefore they should be built by the elements so that they are available in the built images. Change-Id: Icb7d9b1551124a700ad767eeba10be939ffa9aaa Partial-Bug: bug/1531510 --- scripts/files/elements/ubuntu-vertica/install.d/97-vertica | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/files/elements/ubuntu-vertica/install.d/97-vertica b/scripts/files/elements/ubuntu-vertica/install.d/97-vertica index 65baf82..afcfec3 100755 --- a/scripts/files/elements/ubuntu-vertica/install.d/97-vertica +++ b/scripts/files/elements/ubuntu-vertica/install.d/97-vertica @@ -16,6 +16,8 @@ dd if=/tmp/in_target.d/vertica.deb of=/vertica.deb apt-get install -qy build-essential bc iptables apt-get install -qy curl sysstat pstack mcelog apt-get install -qy python-dev g++ unixODBC unixODBC-dev +apt-get install -qy dialog libbz2-dev libboost-all-dev libcurl4-gnutls-dev +apt-get install -qy openjdk-7-jdk # Install Vertica package dpkg -i /vertica.deb @@ -32,3 +34,8 @@ chown dbadmin:verticadba /var/lib/vertica # Backup /etc/hosts cp -p /etc/hosts /etc/hosts.bkp + +# Compile the SDK examples - the supplied UDFs can then be loaded +cd /opt/vertica/sdk/examples +TMPDIR=/tmp JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 make +cd -- cgit v1.2.1