| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you 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. |
| --> |
| |
| <configuration> |
| <property> |
| <name>hawq_master_address_host</name> |
| <value><%= @hawq_head %></value> |
| <description>The host name of hawq master.</description> |
| </property> |
| |
| <property> |
| <name>hawq_master_address_port</name> |
| <value><%= @hawq_head_port %></value> |
| <description>The port of hawq master.</description> |
| </property> |
| |
| <property> |
| <name>hawq_standby_address_host</name> |
| <value>none</value> |
| <description>The host name of hawq standby master.</description> |
| </property> |
| |
| <property> |
| <name>hawq_segment_address_port</name> |
| <value>40000</value> |
| <description>The port of hawq segment.</description> |
| </property> |
| |
| <property> |
| <name>hawq_dfs_url</name> |
| <value><%= @hadoop_head_node %>:<%= @hadoop_namenode_port %>/hawq_default</value> |
| <description>URL for accessing HDFS.</description> |
| </property> |
| |
| <property> |
| <name>hawq_master_directory</name> |
| <value><% @hawq_masterdata_dir %></value> |
| <description>The directory of hawq master.</description> |
| </property> |
| |
| <property> |
| <name>hawq_segment_directory</name> |
| <value><% @hawq_segmentdata_dir %>d</value> |
| <description>The directory of hawq segment.</description> |
| </property> |
| |
| <property> |
| <name>hawq_master_temp_directory</name> |
| <value>/tmp</value> |
| <description>The temporary directory reserved for hawq master.</description> |
| </property> |
| |
| <property> |
| <name>hawq_segment_temp_directory</name> |
| <value>/tmp</value> |
| <description>The temporary directory reserved for hawq segment.</description> |
| </property> |
| |
| <!-- HAWQ resource manager parameters --> |
| <property> |
| <name>hawq_global_rm_type</name> |
| <value>none</value> |
| <description>The resource manager type to start for allocating resource. |
| 'none' means hawq resource manager exclusively uses whole |
| cluster; 'yarn' means hawq resource manager contacts YARN |
| resource manager to negotiate resource. |
| </description> |
| </property> |
| |
| <property> |
| <name>hawq_rm_memory_limit_perseg</name> |
| <value>64GB</value> |
| <description>The limit of memory usage in a hawq segment when |
| hawq_global_rm_type is set 'none'. |
| </description> |
| </property> |
| |
| <property> |
| <name>hawq_rm_nvcore_limit_perseg</name> |
| <value>16</value> |
| <description>The limit of virtual core usage in a hawq segment when |
| hawq_global_rm_type is set 'none'. |
| </description> |
| </property> |
| |
| <property> |
| <name>hawq_rm_yarn_address</name> |
| <value><%= @hawq_yarn_rm_host %>:<%= @hawq_yarn_rm_port %></value> |
| <description>The address of YARN resource manager server.</description> |
| </property> |
| |
| <property> |
| <name>hawq_rm_yarn_scheduler_address</name> |
| <value>localhost:8030</value> |
| <description>The address of YARN scheduler server.</description> |
| </property> |
| |
| <property> |
| <name>hawq_rm_yarn_queue_name</name> |
| <value>default</value> |
| <description>The YARN queue name to register hawq resource manager.</description> |
| </property> |
| |
| <property> |
| <name>hawq_rm_yarn_app_name</name> |
| <value>hawq</value> |
| <description>The application name to register hawq resource manager in YARN.</description> |
| </property> |
| <!-- HAWQ resource manager parameters end here. --> |
| |
| <!-- HAWQ resource enforcement parameters --> |
| <property> |
| <name>hawq_re_cpu_enable</name> |
| <value>false</value> |
| <description>The control to enable/disable CPU resource enforcement.</description> |
| </property> |
| |
| <property> |
| <name>hawq_re_cgroup_mount_point</name> |
| <value>/sys/fs/cgroup</value> |
| <description>The mount point of CGroup file system for resource enforcement. |
| For example, /sys/fs/cgroup/cpu/hawq for CPU sub-system. |
| </description> |
| </property> |
| |
| <property> |
| <name>hawq_re_cgroup_hierarchy_name</name> |
| <value>hawq</value> |
| <description>The name of the hierarchy to accomodate CGroup directories/files for resource enforcement. |
| For example, /sys/fs/cgroup/cpu/hawq for CPU sub-system. |
| </description> |
| </property> |
| |
| <property> |
| <name>hawq_rm_nvseg_perquery_perseg_limit</name> |
| <value>8</value> |
| <description>This is something that init tries to push in</description> |
| </property> |
| <!-- HAWQ resource enforcement parameters end here. --> |
| </configuration> |