Sha256: 48ea7db08286dec6e803f36b3477e0601b8fb1df0f916352c6c6878ac7719848

Contents?: true

Size: 810 Bytes

Versions: 31

Compression:

Stored size: 810 Bytes

Contents

#!/bin/bash

set -e

export PIG_HOME=<%= @pig_home %>
export PIG_CLASSPATH=<%= @pig_classpath %>
export CLASSPATH=<%= @classpath %>
export PIG_MAIN_CLASS=com.mortardata.hawk.HawkMain
export PIG_OPTS="<% @pig_opts.each do |k,v| %>-D<%= k %>=<%= v %> <% end %>"

# UDF paths are relative to this direectory
cd <%= @project_home %>/pigscripts

# Setup python environment
source <%= @local_install_dir %>/pythonenv/bin/activate

# Run Pig
<%= @local_install_dir %>/pig/bin/pig -exectype local \
    -log4jconf <%= @local_install_dir %>/pig/conf/log4j-cli-local-dev.properties \
    -propertyFile <%= @local_install_dir %>/pig/conf/pig-hawk-global.properties \
    -propertyFile <%= @local_install_dir %>/pig/conf/pig-cli-local-dev.properties \
    -param_file <%= @pig_params_file %> \
    <%= @pig_sub_command %>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
mortar-0.10.1 lib/mortar/templates/script/runpig.sh
mortar-0.10.0 lib/mortar/templates/script/runpig.sh
mortar-0.9.10 lib/mortar/templates/script/runpig.sh
mortar-0.9.8 lib/mortar/templates/script/runpig.sh
mortar-0.9.7 lib/mortar/templates/script/runpig.sh
mortar-0.9.6 lib/mortar/templates/script/runpig.sh
mortar-0.9.5 lib/mortar/templates/script/runpig.sh
mortar-0.9.4 lib/mortar/templates/script/runpig.sh
mortar-0.9.3 lib/mortar/templates/script/runpig.sh
mortar-0.9.2 lib/mortar/templates/script/runpig.sh
mortar-0.9.1 lib/mortar/templates/script/runpig.sh
mortar-0.9.0 lib/mortar/templates/script/runpig.sh
mortar-0.8.8 lib/mortar/templates/script/runpig.sh
mortar-0.8.7 lib/mortar/templates/script/runpig.sh
mortar-0.8.6 lib/mortar/templates/script/runpig.sh
mortar-0.8.5 lib/mortar/templates/script/runpig.sh
mortar-0.8.4 lib/mortar/templates/script/runpig.sh
mortar-0.8.3 lib/mortar/templates/script/runpig.sh
mortar-0.8.2 lib/mortar/templates/script/runpig.sh
mortar-0.8.1 lib/mortar/templates/script/runpig.sh