You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by rl...@apache.org on 2015/10/10 10:24:04 UTC

incubator-hawq git commit: HAWQ-33. Change initdb log location

Repository: incubator-hawq
Updated Branches:
  refs/heads/master a4d49c456 -> 4e7fe9254


HAWQ-33. Change initdb log location

So it can avoid giving write privileges to gpadmin user on parent hawq data dir.


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/4e7fe925
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/4e7fe925
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/4e7fe925

Branch: refs/heads/master
Commit: 4e7fe925472aec7bbc3a5eff85545b96f92fa270
Parents: a4d49c4
Author: rlei <rl...@pivotal.io>
Authored: Fri Oct 9 16:58:35 2015 +0800
Committer: rlei <rl...@pivotal.io>
Committed: Sat Oct 10 16:22:09 2015 +0800

----------------------------------------------------------------------
 tools/bin/lib/hawqinit.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/4e7fe925/tools/bin/lib/hawqinit.sh
----------------------------------------------------------------------
diff --git a/tools/bin/lib/hawqinit.sh b/tools/bin/lib/hawqinit.sh
index c0df4da..a98d3de 100755
--- a/tools/bin/lib/hawqinit.sh
+++ b/tools/bin/lib/hawqinit.sh
@@ -178,7 +178,7 @@ master_init() {
     ${GPHOME}/bin/initdb -E UNICODE -D ${hawq_data_directory} --locale=${locale} --lc-collate=${hawq_lc_collate} \
         --lc-ctype=${hawq_lc_ctype} --lc-messages=${hawq_lc_messages} --lc-monetary=${hawq_lc_monetary} \
         --lc-numeric=${hawq_lc_numeric} --lc-time=${hawq_lc_time} --max_connections=${master_max_connections} \
-        --shared_buffers=${shared_buffers} --backend_output=${hawq_data_directory}.initdb 1>>${MASTER_LOG_FILE} 2>&1
+        --shared_buffers=${shared_buffers} --backend_output=${log_dir}/master.initdb 1>>${MASTER_LOG_FILE} 2>&1
 
     if [ $? -ne 0 ] ; then
         echo "Master postgres initdb failed" | tee -a ${MASTER_LOG_FILE}
@@ -329,7 +329,7 @@ segment_init() {
     ${GPHOME}/bin/initdb -E UNICODE -D ${hawq_data_directory} --locale=${locale} --lc-collate=${hawq_lc_collate} \
          --lc-ctype=${hawq_lc_ctype} --lc-messages=${hawq_lc_messages} --lc-monetary=${hawq_lc_monetary} \
          --lc-numeric=${hawq_lc_numeric} --lc-time=${hawq_lc_time} --max_connections=${segment_max_connections} \
-         --shared_buffers=${shared_buffers} --backend_output=${hawq_data_directory}.initdb 1>>${SEGMENT_LOG_FILE} 2>&1
+         --shared_buffers=${shared_buffers} --backend_output=${log_dir}/segment.initdb 1>>${SEGMENT_LOG_FILE} 2>&1
 
     if [ $? -ne 0 ] ; then
         echo "Postgres initdb failed" | tee -a ${SEGMENT_LOG_FILE}