hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject incubator-hawq git commit: HAWQ-33. Change initdb log location
Date Sat, 10 Oct 2015 08:24:04 GMT
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 <rlei@pivotal.io>
Authored: Fri Oct 9 16:58:35 2015 +0800
Committer: rlei <rlei@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}


Mime
View raw message