cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu...@apache.org
Subject [1/3] cassandra git commit: Use stdout for progress and stats in sstableloader
Date Tue, 17 Mar 2015 19:38:48 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 77d58f900 -> db1a741ea
  refs/heads/trunk db1cf3e08 -> 50ea0182e


Use stdout for progress and stats in sstableloader

patch by yukim; reviewed by Brandon Williams for CASSANDRA-8982


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

Branch: refs/heads/cassandra-2.1
Commit: db1a741ea2f30e992345bd06deab843313718775
Parents: 77d58f9
Author: Yuki Morishita <yukim@apache.org>
Authored: Tue Mar 17 14:00:54 2015 -0500
Committer: Yuki Morishita <yukim@apache.org>
Committed: Tue Mar 17 14:37:55 2015 -0500

----------------------------------------------------------------------
 CHANGES.txt                                         | 1 +
 src/java/org/apache/cassandra/tools/BulkLoader.java | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/db1a741e/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 6b8618b..56a7164 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -44,6 +44,7 @@
  * cassandra-stress support for varint (CASSANDRA-8882)
  * Fix Adler32 digest for compressed sstables (CASSANDRA-8778)
  * Add nodetool statushandoff/statusbackup (CASSANDRA-8912)
+ * Use stdout for progress and stats in sstableloader (CASSANDRA-8982)
 Merged from 2.0:
  * Allow specifying the tmp dir (CASSANDRA-7712)
  * Improve compaction estimated tasks estimation (CASSANDRA-8904)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/db1a741e/src/java/org/apache/cassandra/tools/BulkLoader.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/BulkLoader.java b/src/java/org/apache/cassandra/tools/BulkLoader.java
index 73f4ec5..88a4404 100644
--- a/src/java/org/apache/cassandra/tools/BulkLoader.java
+++ b/src/java/org/apache/cassandra/tools/BulkLoader.java
@@ -227,7 +227,7 @@ public class BulkLoader
                     peak = average;
                 sb.append("(avg: ").append(average).append(" MB/s)");
 
-                System.err.print(sb.toString());
+                System.out.print(sb.toString());
             }
         }
 
@@ -250,7 +250,7 @@ public class BulkLoader
             sb.append(String.format("   %-30s: %-10d%n", "Total duration (ms): ", durationMS));
             sb.append(String.format("   %-30s: %-10d%n", "Average transfer rate (MB/s): ",
+ average));
             sb.append(String.format("   %-30s: %-10d%n", "Peak transfer rate (MB/s): ", +
peak));
-            System.err.println(sb.toString());
+            System.out.println(sb.toString());
         }
     }
 


Mime
View raw message