Sha256: c880061d34806560543ff7542a969ec3f0ee3ddf00fbc8ede0d5379e9c55e67a

Contents?: true

Size: 789 Bytes

Versions: 13

Compression:

Stored size: 789 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_dir %>/bin/pig -exectype local \
    -log4jconf <%= @log4j_conf %> \
    -propertyFile <%= @local_install_dir %>/lib-common/conf/pig-hawk-global.properties \
    -propertyFile <%= @local_install_dir %>/lib-common/conf/pig-cli-local-dev.properties \
    -param_file <%= @pig_params_file %> \
    <%= @pig_sub_command %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mortar-0.13.5 lib/mortar/templates/script/runpig.sh
mortar-0.13.4 lib/mortar/templates/script/runpig.sh
mortar-0.13.3 lib/mortar/templates/script/runpig.sh
mortar-0.13.2 lib/mortar/templates/script/runpig.sh
mortar-0.13.1 lib/mortar/templates/script/runpig.sh
mortar-0.13.0 lib/mortar/templates/script/runpig.sh
mortar-0.12.6 lib/mortar/templates/script/runpig.sh
mortar-0.12.5 lib/mortar/templates/script/runpig.sh
mortar-0.12.4 lib/mortar/templates/script/runpig.sh
mortar-0.12.3 lib/mortar/templates/script/runpig.sh
mortar-0.12.2 lib/mortar/templates/script/runpig.sh
mortar-0.12.1 lib/mortar/templates/script/runpig.sh
mortar-0.12.0 lib/mortar/templates/script/runpig.sh