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 4DAB8200D28 for ; Mon, 23 Oct 2017 19:42:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4C153160BF1; Mon, 23 Oct 2017 17:42:05 +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 91D6F1609E0 for ; Mon, 23 Oct 2017 19:42:04 +0200 (CEST) Received: (qmail 88558 invoked by uid 500); 23 Oct 2017 17:42:03 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 88547 invoked by uid 99); 23 Oct 2017 17:42:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Oct 2017 17:42:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DE7971A04E8 for ; Mon, 23 Oct 2017 17:42:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 8aIBQFDkR3Yo for ; Mon, 23 Oct 2017 17:42:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 991775FC1C for ; Mon, 23 Oct 2017 17:42:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2E01CE0FCE for ; Mon, 23 Oct 2017 17:42:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9321024390 for ; Mon, 23 Oct 2017 17:42:00 +0000 (UTC) Date: Mon, 23 Oct 2017 17:42:00 +0000 (UTC) From: "Manjeet Singh (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-19071) Import from Hbase version 0.94.27 to higher version 1.2.1 not working MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 23 Oct 2017 17:42:05 -0000 Manjeet Singh created HBASE-19071: ------------------------------------- Summary: Import from Hbase version 0.94.27 to higher version 1.2.1 not working Key: HBASE-19071 URL: https://issues.apache.org/jira/browse/HBASE-19071 Project: HBase Issue Type: Bug Components: hbase Affects Versions: 1.2.1 Reporter: Manjeet Singh Data migration from one cluster to another cluster in same N/W, but with a different version of hbase one is 0.94.27 (source cluster hbase) and another is destination cluster hbase version is 1.2.1. is not working. I have used below command to take backup of hbase table on source cluster is: ./hbase org.apache.hadoop.hbase.mapreduce.Export SPDBRebuild /data/backupData/ and as a result below files were genrated by using above command:- drwxr-xr-x 3 root root 4096 Dec 9 2016 _logs -rw-r--r-- 1 root root 788227695 Dec 16 2016 part-m-00000 -rw-r--r-- 1 root root 1098757026 Dec 16 2016 part-m-00001 -rw-r--r-- 1 root root 906973626 Dec 16 2016 part-m-00002 -rw-r--r-- 1 root root 1981769314 Dec 16 2016 part-m-00003 -rw-r--r-- 1 root root 2099785782 Dec 16 2016 part-m-00004 -rw-r--r-- 1 root root 4118835540 Dec 16 2016 part-m-00005 -rw-r--r-- 1 root root 14217981341 Dec 16 2016 part-m-00006 -rw-r--r-- 1 root root 0 Dec 16 2016 _SUCCESS I import these file in another Hbase version (1.2.1) in order to restore these files I am assuming I have to move these files in destination cluster and have to run below command hbase org.apache.hadoop.hbase.mapreduce.Import sudo -u hdfs hbase org.apache.hadoop.hbase.mapreduce.Import test_table hdfs://:8020/data/ExportedFiles I am getting below error 17/10/23 16:13:50 INFO mapreduce.Job: Task Id : attempt_1505781444745_0070_m_000003_0, Status : FAILED Error: java.io.IOException: keyvalues=NONE read 2 bytes, should read 121347 at org.apache.hadoop.io.SequenceFile$Reader.getCurrentValue(SequenceFile.java:2306) at org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader.nextKeyValue(SequenceFileRecordReader.java:78) at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:556) at org.apache.hadoop.mapreduce.task.MapContextImpl.nextKeyValue(MapContextImpl.java:80) at org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.nextKeyValue(WrappedMapper.java:91) at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:787) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341) at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693) at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158) -- This message was sent by Atlassian JIRA (v6.4.14#64029)