Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 4dfe27eba -> 9f9d27664


additional fixes to [TRAFODION-2806]


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/7920ef32
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/7920ef32
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/7920ef32

Branch: refs/heads/master
Commit: 7920ef32744e7c5ac65dd605065b505788668a77
Parents: 6d2213d
Author: Eason <[email protected]>
Authored: Wed Nov 29 18:10:34 2017 +0800
Committer: Eason <[email protected]>
Committed: Wed Nov 29 18:19:01 2017 +0800

----------------------------------------------------------------------
 core/sqf/sql/scripts/sqgen   | 7 +++++++
 core/sqf/sql/scripts/sqstart | 6 +++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/7920ef32/core/sqf/sql/scripts/sqgen
----------------------------------------------------------------------
diff --git a/core/sqf/sql/scripts/sqgen b/core/sqf/sql/scripts/sqgen
index 1ee8f17..aaf7157 100755
--- a/core/sqf/sql/scripts/sqgen
+++ b/core/sqf/sql/scripts/sqgen
@@ -171,10 +171,17 @@ mkdir -p $MPI_TMPDIR
 # mkdir a dir for CBF data used by SQL IUS feature
 mkdir -p $HOME/cbfs
 
+# Clean HBase classpath cache file
+echo "Clean up HBase classpath cache file: $TRAF_VAR/hbase_classpath"
+rm -rf $TRAF_VAR/hbase_classpath
+
 if  [[ -n "$node_count" ]] && [[ "$node_count" -gt "1" ]]; then    
     echo
     echo "Creating directories on cluster nodes"
 
+    # Clean HBase classpath cache file on all nodes
+    $PDSH -w ${ExNodeList[@]} -x `uname -n` $PDSH_SSH_CMD rm -rf 
$TRAF_VAR/hbase_classpath
+
     echo "$PDSH -w ${ExNodeList[@]} -x `uname -n` $PDSH_SSH_CMD mkdir -p 
$SQETC_DIR "
     $PDSH -w ${ExNodeList[@]} -x `uname -n` $PDSH_SSH_CMD mkdir -p $SQETC_DIR
     

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/7920ef32/core/sqf/sql/scripts/sqstart
----------------------------------------------------------------------
diff --git a/core/sqf/sql/scripts/sqstart b/core/sqf/sql/scripts/sqstart
index f5eeef1..cd55a49 100755
--- a/core/sqf/sql/scripts/sqstart
+++ b/core/sqf/sql/scripts/sqstart
@@ -418,8 +418,12 @@ rm -f $MPI_TMPDIR/monitor.port.*
 
 setup_sqpdsh
 
+# Clean HBase classpath cache file
+echo "Clean up HBase classpath cache file: $TRAF_VAR/hbase_classpath"
+$SQPDSHA "rm -rf $TRAF_VAR/hbase_classpath"
+
 # Clear unique strings
-$SQPDSHA 'cd $TRAF_HOME/sql/scripts; utilConfigDb -u'
+$SQPDSHA "cd $TRAF_HOME/sql/scripts; utilConfigDb -u"
 
 echoLog "Executing sqipcrm (output to sqipcrm.out)"
 sqipcrm > sqipcrm.out

Reply via email to