You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by li...@apache.org on 2018/01/18 00:33:13 UTC

[1/3] trafodion git commit: [TRAFODION-1966]TrafexportSnapshot ran into NoClassDefFoundError on HDP2.4

Repository: trafodion
Updated Branches:
  refs/heads/master 63e1083d1 -> cdc788e41


[TRAFODION-1966]TrafexportSnapshot ran into NoClassDefFoundError on HDP2.4


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

Branch: refs/heads/master
Commit: 6f60da57df0d2c8f2e0c26588298dcaf7e3b7cfa
Parents: 8e332e5
Author: Liu Ming <ov...@sina.com>
Authored: Sun Jan 14 03:08:53 2018 +0000
Committer: Liu Ming <ov...@sina.com>
Committed: Sun Jan 14 03:08:53 2018 +0000

----------------------------------------------------------------------
 .../backup_and_restore/run_full_trafodion_backup.sh |  9 +++++++++
 .../utility/backuprestore/TrafExportSnapshot.java   | 16 +++++++++++++++-
 2 files changed, 24 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/6f60da57/core/sqf/hbase_utilities/backup_and_restore/run_full_trafodion_backup.sh
----------------------------------------------------------------------
diff --git a/core/sqf/hbase_utilities/backup_and_restore/run_full_trafodion_backup.sh b/core/sqf/hbase_utilities/backup_and_restore/run_full_trafodion_backup.sh
index d36f665..8f7972b 100755
--- a/core/sqf/hbase_utilities/backup_and_restore/run_full_trafodion_backup.sh
+++ b/core/sqf/hbase_utilities/backup_and_restore/run_full_trafodion_backup.sh
@@ -119,6 +119,15 @@ do
   esac
 done
 
+#check the HBase compatiblity if TrafExportSnapshot is able to be used
+java org.trafodion.utility.backuprestore.TrafExportSnapshot -test
+if [[ $? -ne 0 ]]; then
+  echo 'not able to use TrafExportSnapshot'
+  mr_limit=0
+else
+  echo 'able to use TrafExportSnapshot'
+fi
+
 echo "logging output to: ${log_file}"
 
 #create tmp and log folders if they don't exist

http://git-wip-us.apache.org/repos/asf/trafodion/blob/6f60da57/core/sqf/hbase_utilities/src/main/java/org/trafodion/utility/backuprestore/TrafExportSnapshot.java
----------------------------------------------------------------------
diff --git a/core/sqf/hbase_utilities/src/main/java/org/trafodion/utility/backuprestore/TrafExportSnapshot.java b/core/sqf/hbase_utilities/src/main/java/org/trafodion/utility/backuprestore/TrafExportSnapshot.java
index 3abf8ac..c4003d3 100644
--- a/core/sqf/hbase_utilities/src/main/java/org/trafodion/utility/backuprestore/TrafExportSnapshot.java
+++ b/core/sqf/hbase_utilities/src/main/java/org/trafodion/utility/backuprestore/TrafExportSnapshot.java
@@ -1103,9 +1103,23 @@ public class TrafExportSnapshot extends Configured implements Tool {
   static int innerMain(final Configuration conf, final String [] args) throws Exception {
     return ToolRunner.run(conf, new TrafExportSnapshot(), args);
   }
-
+  private void testMobAvail()  {
+      MobUtils.getMobHome(HBaseConfiguration.create());
+  }
   public static void main(String[] args) throws Exception {
 	  LOG.info("Trafodion Export Snapshot Utility");
+    if(args.length == 1)
+    {
+      String cmd = args[0];
+      if (cmd.equals("-h") || cmd.equals("--help")) {
+        System.exit(innerMain(HBaseConfiguration.create(), args));
+      }
+      //test if MobUtils is aviable in this system
+      //doing something meanless
+      TrafExportSnapshot ti = new TrafExportSnapshot(); 
+      ti.testMobAvail();
+      System.exit(0); //normal
+    } 
     System.exit(innerMain(HBaseConfiguration.create(), args));
   }
 }


[2/3] trafodion git commit: enhance the code

Posted by li...@apache.org.
enhance the code


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

Branch: refs/heads/master
Commit: 92df0c5f878ef8d6fad3c6d4f964d19a5816d3f5
Parents: 6f60da5
Author: Liu Ming <ov...@sina.com>
Authored: Wed Jan 17 08:47:13 2018 +0000
Committer: Liu Ming <ov...@sina.com>
Committed: Wed Jan 17 08:47:13 2018 +0000

----------------------------------------------------------------------
 .../backup_and_restore/run_full_trafodion_backup.sh    |  2 +-
 .../utility/backuprestore/TrafExportSnapshot.java      | 13 ++++++-------
 2 files changed, 7 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/92df0c5f/core/sqf/hbase_utilities/backup_and_restore/run_full_trafodion_backup.sh
----------------------------------------------------------------------
diff --git a/core/sqf/hbase_utilities/backup_and_restore/run_full_trafodion_backup.sh b/core/sqf/hbase_utilities/backup_and_restore/run_full_trafodion_backup.sh
index 8f7972b..dd49e21 100755
--- a/core/sqf/hbase_utilities/backup_and_restore/run_full_trafodion_backup.sh
+++ b/core/sqf/hbase_utilities/backup_and_restore/run_full_trafodion_backup.sh
@@ -120,7 +120,7 @@ do
 done
 
 #check the HBase compatiblity if TrafExportSnapshot is able to be used
-java org.trafodion.utility.backuprestore.TrafExportSnapshot -test
+java org.trafodion.utility.backuprestore.TrafExportSnapshot -t
 if [[ $? -ne 0 ]]; then
   echo 'not able to use TrafExportSnapshot'
   mr_limit=0

http://git-wip-us.apache.org/repos/asf/trafodion/blob/92df0c5f/core/sqf/hbase_utilities/src/main/java/org/trafodion/utility/backuprestore/TrafExportSnapshot.java
----------------------------------------------------------------------
diff --git a/core/sqf/hbase_utilities/src/main/java/org/trafodion/utility/backuprestore/TrafExportSnapshot.java b/core/sqf/hbase_utilities/src/main/java/org/trafodion/utility/backuprestore/TrafExportSnapshot.java
index c4003d3..e38c0f1 100644
--- a/core/sqf/hbase_utilities/src/main/java/org/trafodion/utility/backuprestore/TrafExportSnapshot.java
+++ b/core/sqf/hbase_utilities/src/main/java/org/trafodion/utility/backuprestore/TrafExportSnapshot.java
@@ -1111,14 +1111,13 @@ public class TrafExportSnapshot extends Configured implements Tool {
     if(args.length == 1)
     {
       String cmd = args[0];
-      if (cmd.equals("-h") || cmd.equals("--help")) {
-        System.exit(innerMain(HBaseConfiguration.create(), args));
+      if (cmd.equals("-t") || cmd.equals("--test")) {
+        //test if MobUtils is aviable in this system
+        //doing something meanless
+        TrafExportSnapshot ti = new TrafExportSnapshot(); 
+        ti.testMobAvail();
+        System.exit(0); //normal
       }
-      //test if MobUtils is aviable in this system
-      //doing something meanless
-      TrafExportSnapshot ti = new TrafExportSnapshot(); 
-      ti.testMobAvail();
-      System.exit(0); //normal
     } 
     System.exit(innerMain(HBaseConfiguration.create(), args));
   }


[3/3] trafodion git commit: [TRAFODION-1966]TrafexportSnapshot ran into NoClassDefFoundError on HDP24

Posted by li...@apache.org.
[TRAFODION-1966]TrafexportSnapshot ran into NoClassDefFoundError on HDP24


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

Branch: refs/heads/master
Commit: cdc788e41ca0b551df5f9a1e7bac31f84d39f6f8
Parents: 63e1083 92df0c5
Author: Liu Ming <ov...@sina.com>
Authored: Wed Jan 17 19:19:18 2018 +0000
Committer: Liu Ming <ov...@sina.com>
Committed: Wed Jan 17 19:19:18 2018 +0000

----------------------------------------------------------------------
 .../backup_and_restore/run_full_trafodion_backup.sh  |  9 +++++++++
 .../utility/backuprestore/TrafExportSnapshot.java    | 15 ++++++++++++++-
 2 files changed, 23 insertions(+), 1 deletion(-)
----------------------------------------------------------------------