Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6DDF5200CBB for ; Tue, 4 Jul 2017 22:42:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6BFEB161EE4; Tue, 4 Jul 2017 20:42:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BA9EF161EE3 for ; Tue, 4 Jul 2017 22:42:22 +0200 (CEST) Received: (qmail 16336 invoked by uid 500); 4 Jul 2017 20:42:21 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 16327 invoked by uid 99); 4 Jul 2017 20:42:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jul 2017 20:42:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C7FF0DFEF5; Tue, 4 Jul 2017 20:42:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tedyu@apache.org To: commits@hbase.apache.org Message-Id: <1ebb2291fef44722a3be36938735ed79@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-18310 LoadTestTool unable to write data Date: Tue, 4 Jul 2017 20:42:21 +0000 (UTC) archived-at: Tue, 04 Jul 2017 20:42:23 -0000 Repository: hbase Updated Branches: refs/heads/branch-2 8039a7d8c -> 590979aac HBASE-18310 LoadTestTool unable to write data Signed-off-by: tedyu Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/590979aa Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/590979aa Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/590979aa Branch: refs/heads/branch-2 Commit: 590979aac39625b1d6a07649ccab75d1448b28d6 Parents: 8039a7d Author: Samir Ahmic Authored: Tue Jul 4 15:30:49 2017 +0200 Committer: tedyu Committed: Tue Jul 4 13:42:16 2017 -0700 ---------------------------------------------------------------------- .../test/java/org/apache/hadoop/hbase/util/LoadTestTool.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/590979aa/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java ---------------------------------------------------------------------- diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java index 27c4282..ad832e3 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java @@ -40,13 +40,13 @@ import org.apache.hadoop.hbase.HBaseInterfaceAudience; import org.apache.hadoop.hbase.HBaseTestingUtility; import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HConstants; -import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.classification.InterfaceAudience; import org.apache.hadoop.hbase.client.Admin; import org.apache.hadoop.hbase.client.Connection; import org.apache.hadoop.hbase.client.ConnectionFactory; import org.apache.hadoop.hbase.client.Durability; +import org.apache.hadoop.hbase.client.TableDescriptor; import org.apache.hadoop.hbase.io.compress.Compression; import org.apache.hadoop.hbase.io.crypto.Cipher; import org.apache.hadoop.hbase.io.crypto.Encryption; @@ -275,11 +275,11 @@ public class LoadTestTool extends AbstractHBaseTool { byte[][] columnFamilies) throws IOException { try (Connection conn = ConnectionFactory.createConnection(conf); Admin admin = conn.getAdmin()) { - HTableDescriptor tableDesc = admin.getTableDescriptor(tableName); + TableDescriptor tableDesc = admin.getTableDescriptor(tableName); LOG.info("Disabling table " + tableName); admin.disableTable(tableName); for (byte[] cf : columnFamilies) { - HColumnDescriptor columnDesc = tableDesc.getFamily(cf); + HColumnDescriptor columnDesc = (HColumnDescriptor) tableDesc.getColumnFamily(cf); boolean isNewCf = columnDesc == null; if (isNewCf) { columnDesc = new HColumnDescriptor(cf);