asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From buyin...@apache.org
Subject asterixdb git commit: Fix log redirection in Ansible start cluster scripts.
Date Tue, 07 Mar 2017 01:12:47 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master 7109cc18c -> a5bfa8b4b


Fix log redirection in Ansible start cluster scripts.

Change-Id: Ia62a9f5d313c5d7ad0629af95199c2f7b4538435
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1553
Reviewed-by: Michael Blow <mblow@apache.org>
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>


Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/a5bfa8b4
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/a5bfa8b4
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/a5bfa8b4

Branch: refs/heads/master
Commit: a5bfa8b4b14079deca7aaa440054a75ba7787310
Parents: 7109cc1
Author: Yingyi Bu <yingyi@couchbase.com>
Authored: Mon Mar 6 15:31:55 2017 -0800
Committer: Yingyi Bu <buyingyi@gmail.com>
Committed: Mon Mar 6 17:11:03 2017 -0800

----------------------------------------------------------------------
 asterixdb/asterix-server/src/main/opt/ansible/conf/cc.conf       | 2 +-
 asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml  | 4 +++-
 .../asterix-server/src/main/opt/ansible/yaml/start_ncservice.yml | 4 +++-
 3 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/a5bfa8b4/asterixdb/asterix-server/src/main/opt/ansible/conf/cc.conf
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-server/src/main/opt/ansible/conf/cc.conf b/asterixdb/asterix-server/src/main/opt/ansible/conf/cc.conf
index f5164ae..ff95344 100644
--- a/asterixdb/asterix-server/src/main/opt/ansible/conf/cc.conf
+++ b/asterixdb/asterix-server/src/main/opt/ansible/conf/cc.conf
@@ -16,7 +16,7 @@
 ; under the License.
 
 [app]
-log.level=WARNING
+log.level=INFO
 
 [nc]
 txnlogdir=txnlog

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/a5bfa8b4/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml b/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml
index bb170d8..9d371d2 100644
--- a/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml
+++ b/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml
@@ -26,7 +26,9 @@
   shell: find -P "{{ binarydir }}/cc.conf" | xargs perl -pi -e 's|command=asterixnc|command={{
ncbin }}|g'
 
 - name: Start CC
-  shell: nohup "{{ cc }}" -config-file "{{ binarydir }}/cc.conf" &> "{{ binarydir
}}/logs/cc.log" &
+  shell: |
+    nohup "{{ cc }}" -config-file "{{ binarydir }}/cc.conf" >> "{{ binarydir }}/logs/cc.log"
2>&1 &
+    sleep 1
   args:
     chdir: "{{ binarydir }}"
   async: 10

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/a5bfa8b4/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_ncservice.yml
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_ncservice.yml b/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_ncservice.yml
index 0f2f85d..42c7a75 100644
--- a/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_ncservice.yml
+++ b/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_ncservice.yml
@@ -18,7 +18,9 @@
 # ------------------------------------------------------------
 
 - name: Start NC Service
-  shell: nohup "{{ ncservice }}" &> "{{ binarydir }}/logs/ncservice.log" &
+  shell: |
+    nohup "{{ ncservice }}" >> "{{ binarydir }}/logs/ncservice.log" 2>&1 &
+    sleep 1
   args:
     chdir: "{{ binarydir }}"
   async: 10


Mime
View raw message