You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by an...@apache.org on 2016/09/25 02:01:13 UTC
[1/2] incubator-trafodion git commit: JIRA [TRAFODION-2236] TM
crashes during startup
Repository: incubator-trafodion
Updated Branches:
refs/heads/master b37c1a170 -> 3756e10f1
JIRA [TRAFODION-2236]
TM crashes during startup
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/a84e0527
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/a84e0527
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/a84e0527
Branch: refs/heads/master
Commit: a84e0527571e920a08a577aba50fc4741078fe45
Parents: b07378d
Author: Sean Broeder <sb...@edev05.esgyn.local>
Authored: Thu Sep 22 19:38:16 2016 +0000
Committer: Sean Broeder <sb...@edev05.esgyn.local>
Committed: Thu Sep 22 19:38:16 2016 +0000
----------------------------------------------------------------------
core/sqf/sql/scripts/cleanZKNodes | 33 ++++++++++++++++++++++++++
core/sqf/sql/scripts/install_local_hadoop | 8 +++++++
core/sqf/sql/scripts/sqstart | 2 ++
3 files changed, 43 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/a84e0527/core/sqf/sql/scripts/cleanZKNodes
----------------------------------------------------------------------
diff --git a/core/sqf/sql/scripts/cleanZKNodes b/core/sqf/sql/scripts/cleanZKNodes
new file mode 100755
index 0000000..9a9320e
--- /dev/null
+++ b/core/sqf/sql/scripts/cleanZKNodes
@@ -0,0 +1,33 @@
+!/bin/bash
+#
+# @@@ START COPYRIGHT @@@
+#
+# 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.
+#
+# @@@ END COPYRIGHT @@@
+
+if [ -f $MY_SQROOT/sql/scripts/swzkcli ]
+then swzkcli <<EOF
+rmr /hbase/Trafodion/recovery
+EOF
+else hbase zkcli <<EOF
+rmr /hbase/Trafodion/recovery
+EOF
+fi
+
+
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/a84e0527/core/sqf/sql/scripts/install_local_hadoop
----------------------------------------------------------------------
diff --git a/core/sqf/sql/scripts/install_local_hadoop b/core/sqf/sql/scripts/install_local_hadoop
index 4670872..ecd2bf4 100755
--- a/core/sqf/sql/scripts/install_local_hadoop
+++ b/core/sqf/sql/scripts/install_local_hadoop
@@ -947,6 +947,14 @@ EOF
${MY_SW_ROOT}/hbase/bin/hbase shell "\$@"
EOF
+ cat <<EOF >$MY_SW_SCRIPTS_DIR/swzkcli
+#!/bin/sh
+# command to run hbase zkcli
+
+. $MY_SW_SCRIPTS_DIR/sw_env.sh
+${MY_SW_ROOT}/hbase/bin/hbase zkcli "\$@"
+EOF
+
cat <<EOF >$MY_SW_SCRIPTS_DIR/swuninstall_local_hadoop
#!/bin/sh
# uninstall local Hadoop instance.
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/a84e0527/core/sqf/sql/scripts/sqstart
----------------------------------------------------------------------
diff --git a/core/sqf/sql/scripts/sqstart b/core/sqf/sql/scripts/sqstart
index 05117ac..e231ee0 100755
--- a/core/sqf/sql/scripts/sqstart
+++ b/core/sqf/sql/scripts/sqstart
@@ -455,6 +455,8 @@ $SQPDSHA 'cd $MY_SQROOT/sql/scripts; utilConfigDb -u'
echoLog "Executing sqipcrm (output to sqipcrm.out)"
sqipcrm > sqipcrm.out
+echoLog "Executing cleanZKNodes (output to cleanZKNodes.out)"
+cleanZKNodes > cleanZKNodes.out 2>&1
rm -f $SQSTART_EXIT_STATUS
SQStartProcesses &
[2/2] incubator-trafodion git commit: Merge [TRAFODION-2236] PR-723
TM crashes during startup
Posted by an...@apache.org.
Merge [TRAFODION-2236] PR-723 TM crashes during startup
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/3756e10f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/3756e10f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/3756e10f
Branch: refs/heads/master
Commit: 3756e10f1111fc58f33a7eb5a1343c55c8f78866
Parents: b37c1a1 a84e052
Author: Anoop Sharma <an...@esgyn.com>
Authored: Sun Sep 25 02:00:56 2016 +0000
Committer: Anoop Sharma <an...@esgyn.com>
Committed: Sun Sep 25 02:00:56 2016 +0000
----------------------------------------------------------------------
core/sqf/sql/scripts/cleanZKNodes | 33 ++++++++++++++++++++++++++
core/sqf/sql/scripts/install_local_hadoop | 8 +++++++
core/sqf/sql/scripts/sqstart | 2 ++
3 files changed, 43 insertions(+)
----------------------------------------------------------------------