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 292B2200B98 for ; Mon, 3 Oct 2016 16:11:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 27B34160ADC; Mon, 3 Oct 2016 14:11:00 +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 65073160ACC for ; Mon, 3 Oct 2016 16:10:59 +0200 (CEST) Received: (qmail 4713 invoked by uid 500); 3 Oct 2016 14:10:58 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 4697 invoked by uid 99); 3 Oct 2016 14:10:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 14:10:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5BE84C0595 for ; Mon, 3 Oct 2016 14:10:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.48 X-Spam-Level: ** X-Spam-Status: No, score=2.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=spaggiari-org.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rtXhX8yxM2TN for ; Mon, 3 Oct 2016 14:10:53 +0000 (UTC) Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 3051D5F39A for ; Mon, 3 Oct 2016 14:10:53 +0000 (UTC) Received: by mail-vk0-f45.google.com with SMTP id b186so25852881vkb.1 for ; Mon, 03 Oct 2016 07:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spaggiari-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=L5cikU1WMLxHtr1E6Kbxyb004g/c7TrfRR4CXG4bZEw=; b=T7VtHe0gng3H5v0XZmztq6tLYlMMxFHd0lAiYQmgZ3F8uqt5uANQDoxbZF15bwhbZm kFklirF+UOsLiUiuVWazk78ah2ezah1Jsw6con9LA5x1W7dHn0AjtVWBMyawQWsx/H0V MgtPakH9j5Grwwmw6rUeA2Y2/ToAsPVWEKd6+eRHQwFkB51pHAARem2pNPNPtQYFqQmL fNR4PpJdDHA2A0+JSDE1D7xPhb5EuPwpPJVl6OFCE4hjQHeBBYsQ6A8YjyCmTj6fBoCy SKDOTLt3sKTckZ2b/gECSA10oTGMuQUg2QZe4JVywGR8fcR/qBxy6xNKdJLatDcssCVo 3B6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=L5cikU1WMLxHtr1E6Kbxyb004g/c7TrfRR4CXG4bZEw=; b=QvMRKmyH3aob837X/DuUe2NV8KPuMccafO8yg0FzowtJuGbfXieuU8X1VsuDE6J4Cz r/Gn5namclzakS0LmMo7lVLX/aTsrTqNAGq+2rQyo71L6QPOYIXWXmiCGIF4slNKbj+w AdbpS7Zm1q6nYa+kFvlnPZ2OyHOqEsGxFGFTG2MHAjZ/b/ZnyHnTV3ehHZ2bZrHNaWbu Q9LFOiRYlB3GrJ8MYHr3wGDaQwOi3exKo9H+PVYkX9zFNmuWw5o5+K4BBd/dr1g0IN2z iz2fdTjmp30DSSPFcswqgzUTYxJDyiYbO308lZ1kuSlZoDuBvsnAUTtlxSOcbIE8qDwB 4p1A== X-Gm-Message-State: AA6/9RnvXRynivFe4OOuEFM/sQ4L0j0Aqwp0GMcijmqxinzzVjTuVuLm5WAKjK4p95Zh/ZOGMZJTLZkSDI7Y4A== X-Received: by 10.31.16.73 with SMTP id g70mr11812299vki.175.1475503846722; Mon, 03 Oct 2016 07:10:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.197.67 with HTTP; Mon, 3 Oct 2016 07:10:26 -0700 (PDT) In-Reply-To: References: From: Jean-Marc Spaggiari Date: Mon, 3 Oct 2016 10:10:26 -0400 Message-ID: Subject: Re: Loading into hbase from csv file issue To: user Content-Type: multipart/alternative; boundary=001a11431d70a6172a053df68215 archived-at: Mon, 03 Oct 2016 14:11:00 -0000 --001a11431d70a6172a053df68215 Content-Type: text/plain; charset=UTF-8 Hi Mich, As you said, it's most probably because it's all the same key... If you want to be 200% sure, just alter VERSIONS => '1' to be greater (like, 10) and scan all the versions of the cells. You should see the others. JMS 2016-10-03 3:41 GMT-04:00 Mich Talebzadeh : > Hi, > > when I use the command line utility ImportTsv to load a file into Hbase > with the following table format > > describe 'marketDataHbase' > Table marketDataHbase is ENABLED > marketDataHbase > COLUMN FAMILIES DESCRIPTION > {NAME => 'price_info', BLOOMFILTER => 'ROW', VERSIONS => '1', IN_MEMORY => > 'false', KEEP_DELETED_CELLS => 'FALSE', DATA_BLOCK_ENCODING => 'NONE', TTL > => 'FOREVER', COMPRESSION => 'NONE', MIN_VERSIONS => '0', BLOCKC > ACHE => 'true', BLOCKSIZE => '65536', REPLICATION_SCOPE => '0'} > 1 row(s) in 0.0930 seconds > > > hbase org.apache.hadoop.hbase.mapreduce.ImportTsv > -Dimporttsv.separator=',' > -Dimporttsv.columns="HBASE_ROW_KEY, stock_daily:ticker, > stock_daily:tradedate, stock_daily:open,stock_daily: > high,stock_daily:low,stock_daily:close,stock_daily:volume" tsco > hdfs://rhes564:9000/data/stocks/tsco.csv > > There are with 1200 rows in the csv file,* but it only loads the first > row!* > > scan 'tsco' > ROW COLUMN+CELL > Tesco PLC > column=stock_daily:close, timestamp=1475447365118, value=325.25 > Tesco PLC > column=stock_daily:high, timestamp=1475447365118, value=332.00 > Tesco PLC > column=stock_daily:low, timestamp=1475447365118, value=324.00 > Tesco PLC > column=stock_daily:open, timestamp=1475447365118, value=331.75 > Tesco PLC > column=stock_daily:ticker, timestamp=1475447365118, value=TSCO > Tesco PLC > column=stock_daily:tradedate, timestamp=1475447365118, value= 3-Jan-06 > Tesco PLC > column=stock_daily:volume, timestamp=1475447365118, value=46935045 > 1 row(s) in 0.0390 seconds > > Is this because the hbase_row_key --> Tesco PLC is the same for all? I > thought that the row key can be anything. > > Thanks > > Dr Mich Talebzadeh > > > > LinkedIn * https://www.linkedin.com/profile/view?id= > AAEAAAAWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw > OABUrV8Pw>* > > > > http://talebzadehmich.wordpress.com > > > *Disclaimer:* Use it at your own risk. Any and all responsibility for any > loss, damage or destruction of data or any other property which may arise > from relying on this email's technical content is explicitly disclaimed. > The author will in no case be liable for any monetary damages arising from > such loss, damage or destruction. > --001a11431d70a6172a053df68215--