Permalink
Browse files

Added JAVA_HOME set to the pig start wrapper (/usr/bin/pig).

Improved code documentation.
  • Loading branch information...
1 parent 952a257 commit 6a488eef4b777a2355ac4b78b75ca9f65af1421e Paul Webster committed Sep 30, 2011
@@ -31,4 +31,6 @@ for expressing data algorithms.
# See the License for the specific language governing permissions and
# limitations under the License.
#
+# Author: Paul Webster
+#
@@ -16,6 +16,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+# Author: Paul Webster
+#
#######################################################################
# Site Specific PIG settings (/etc/pig/conf/pig-properties).
@@ -16,6 +16,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+# Author: Paul Webster
+#
#######################################################################
# Crowbar barclamp configuration parameters.
@@ -16,6 +16,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+# Author: Paul Webster
+#
#######################################################################
# Begin recipe transactions
@@ -18,11 +18,16 @@
#
#######################################################################
+# Generated and maintained by Crowbar for <%= @node[:fqdn] %>
+#######################################################################
+
+#######################################################################
# Pig configuration file (/etc/pig/conf/pig-properties).
# All values can be overwritten by command line arguments.
# see bin/pig -help
#######################################################################
+
# log4jconf log4j configuration file
# log4jconf=./conf/log4j.properties
@@ -1,5 +1,8 @@
#!/bin/sh
+#######################################################################
+# Generated and maintained by Crowbar for <%= @node[:fqdn] %>
+#######################################################################
<% if !node[:pig][:java_home].nil? and !node[:pig][:java_home].empty? -%>
export JAVA_HOME=<%= @node[:pig][:java_home] %>
<% end -%>
-exec /usr/lib/pig/bin/pig "$@"
+exec /usr/lib/pig/bin/pig "$@"
@@ -16,6 +16,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+# Author: Paul Webster
+#
name "pig-interpreter"
description "Hadoop Pig Interpreter Role"
@@ -16,6 +16,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+# Author: Paul Webster
+#
class PigController < BarclampController
def initialize
@@ -16,6 +16,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+# Author: Paul Webster
+#
class PigService < ServiceObject

0 comments on commit 6a488ee

Please sign in to comment.