markdown/bestpractices/config_hawq_bestpractices.html.md.erb (7 lines of code) (raw):

--- title: Best Practices for Configuring HAWQ Parameters --- <!-- 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. --> HAWQ configuration parameters are maintained in the `$GPHOME/etc/hawq-site.xml` file. This file resides on all HAWQ instances and is modified either via Ambari or when using the HAWQ command line interface `hawq config` command. Use a consistent strategy (Ambari or command line) to maintain the contents of `hawq-site.xml`. For Ambari-managed clusters, always use Ambari for configuring `hawq-site.xml` parameters; restarting or reconfiguring HAWQ via Ambari will overwrite any configuration changes to `hawq-site.xml` made outside of the Ambari interface. If you cannot tolerate cluster downtime when updating HAWQ configuration parameters, refer to [Updating HAWQ Configuration Without Cluster Restart](../admin/ambari-admin.html#manual-cfg-norestart) for a specific procedure for Ambari-managed clusters. If you manage your cluster using command line tools instead of Ambari, use a consistent `hawq-site.xml` file to configure your entire cluster. **Note:** Do not use the `postgresql.conf` file to configure HAWQ configuration parameters; HAWQ uses only `hawq-site.xml` for this purpose.