Sha256: 8571dfe3c77d02594480ba7d434398115e6e6ef8434a3660a9bd28a1b3f2c51c

Contents?: true

Size: 1.05 KB

Versions: 40

Compression:

Stored size: 1.05 KB

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 %>"
#Uncomment to debug pig code
#export PIG_OPTS="$PIG_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000"


# UDF paths are relative to this direectory
if [ -d "<%= @project_home %>/pigscripts" ]; then
    export LOG4J_CONF_FILE=<%= @log4j_conf %>
    cd <%= @project_home %>/pigscripts
else
    export LOG4J_CONF_FILE=<%= @no_project_log4j_conf %>
fi

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

# Run Pig
<%= @local_install_dir %>/<%= @pig_dir %>/bin/pig -exectype local \
    -log4jconf "$LOG4J_CONF_FILE" \
    -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

40 entries across 40 versions & 1 rubygems

Version Path
mortar-0.15.53 lib/mortar/templates/script/runpig.sh
mortar-0.15.52 lib/mortar/templates/script/runpig.sh
mortar-0.15.51 lib/mortar/templates/script/runpig.sh
mortar-0.15.50 lib/mortar/templates/script/runpig.sh
mortar-0.15.49 lib/mortar/templates/script/runpig.sh
mortar-0.15.48 lib/mortar/templates/script/runpig.sh
mortar-0.15.47 lib/mortar/templates/script/runpig.sh
mortar-0.15.46 lib/mortar/templates/script/runpig.sh
mortar-0.15.45 lib/mortar/templates/script/runpig.sh
mortar-0.15.44 lib/mortar/templates/script/runpig.sh
mortar-0.15.43 lib/mortar/templates/script/runpig.sh
mortar-0.15.42 lib/mortar/templates/script/runpig.sh
mortar-0.15.41 lib/mortar/templates/script/runpig.sh
mortar-0.15.40 lib/mortar/templates/script/runpig.sh
mortar-0.15.39 lib/mortar/templates/script/runpig.sh
mortar-0.15.38 lib/mortar/templates/script/runpig.sh
mortar-0.15.37 lib/mortar/templates/script/runpig.sh
mortar-0.15.36 lib/mortar/templates/script/runpig.sh
mortar-0.15.35 lib/mortar/templates/script/runpig.sh
mortar-0.15.34 lib/mortar/templates/script/runpig.sh