OSDN Git Service

bug fix.
[metasearch/grid-chef-repo.git] / roles / hadoop-ptolemy.rb
index a5e76af..68d39cd 100644 (file)
@@ -1,5 +1,21 @@
-$LOAD_PATH.push("#{File.dirname(__FILE__)}/../_lib")
-#${chef-repo}/_lib/grid.rb
+#
+# Copyright 2013-2014, whitestar
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+$LOAD_PATH.push("#{File.dirname(__FILE__)}/_lib")
+#${chef-repo}/roles/_lib/grid.rb
 require 'grid'
 
 cluster_name = 'ptolemy'
@@ -40,12 +56,20 @@ hadoop_attributes = {
     'hadoop-env.sh' => {
       #'HADOOP_HEAPSIZE' => '2000',               # default: 1000 MB
       #'HADOOP_NAMENODE_INIT_HEAPSIZE' => '2000'  # default: 1000 MB (ver. 2.x)
+      #'HADOOP_NAMENODE_OPTS' => '',
+      #'HADOOP_SECONDARYNAMENODE_OPTS' => '',
+      #'HADOOP_DATANODE_OPTS' => '',
+      #'HADOOP_BALANCER_OPTS' => '',
+      #'HADOOP_JOBTRACKER_OPTS' => '',
     },
     'yarn-env.sh' => {  # ver. 2.x
       #'YARN_HEAPSIZE' => '2000'  # default: 1000 MB
+      #'YARN_RESOURCEMANAGER_OPTS' => '',
+      #'YARN_NODEMANAGER_OPTS' => '',
     },
     'mapred-env.sh' => {  # ver. 2.x
-      #'HADOOP_JOB_HISTORYSERVER_HEAPSIZE' => '2000'  # default: 1000 MB
+      #'HADOOP_JOB_HISTORYSERVER_HEAPSIZE' => '2000',  # default: 1000 MB
+      #'HADOOP_JOB_HISTORYSERVER_OPTS' => '',
     },
     'core-site.xml' => {
     },
@@ -80,7 +104,9 @@ hadoop_attributes = {
   }
 }
 
-default_attributes(
+#default_attributes()
+
+override_attributes(
   'grid' => {
     'vol_root' => grid_vol_root,
     'max_vol_nums' => '4'
@@ -88,5 +114,3 @@ default_attributes(
   'hadoop' => hadoop_attributes
 )
 
-#override_attributes()
-