Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D38F11024 for ; Tue, 29 Jul 2014 15:47:14 +0000 (UTC) Received: (qmail 94665 invoked by uid 500); 29 Jul 2014 15:47:12 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 94597 invoked by uid 500); 29 Jul 2014 15:47:12 -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 94574 invoked by uid 99); 29 Jul 2014 15:47:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2014 15:47:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bharathv@cloudera.com designates 209.85.219.50 as permitted sender) Received: from [209.85.219.50] (HELO mail-oa0-f50.google.com) (209.85.219.50) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2014 15:47:10 +0000 Received: by mail-oa0-f50.google.com with SMTP id g18so10538894oah.23 for ; Tue, 29 Jul 2014 08:46:44 -0700 (PDT) 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:content-type; bh=IdFZHk3DakgTvrJQAApM11hWZIzIuZX33dHzZOBpJLk=; b=HzSv1WdFTpFFH7Px0HX/RWeLDb34GHBnesqcAwbU8oQ0fq86YSfQ0gNmUrYNZuTFRF rEecSXfSfcmQ3twkUIr1kMwY4mxtlaHrLcDH8wCMBesz17odma21Y9E4J0ZifmmXLa6h Xwj9YI8Z/Rk1jyiPz3FiXmyRD2UbDGWmG82l0Bu9BkYCdwM0j0E/zimZYDTadaYj5hqG vphBQFTb7XSOyRWm3JamRkwl4+jDNz7t99ZiQggbf2CP8Bea+XmCnzwJUB7RyLm2xJG2 nCGaammK9nQ4OPFYblGIBpR688228qxPGEOt6EHqbxkvPVFjUkA0AwbfVDgQDqcXEK2j rQ7Q== X-Gm-Message-State: ALoCoQl5JsvJpXy4PSGUYjbgCPckJIFfJBmkDrPjsV+H+qJL2zewjV+RFhQx2be7WEuaR+r9TJbE X-Received: by 10.60.77.68 with SMTP id q4mr4665041oew.1.1406648804656; Tue, 29 Jul 2014 08:46:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.105.243 with HTTP; Tue, 29 Jul 2014 08:46:24 -0700 (PDT) In-Reply-To: References: From: Bharath Vissapragada Date: Tue, 29 Jul 2014 21:16:24 +0530 Message-ID: Subject: Re: Completebulkload with namespace option? To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=047d7b33d164535fa204ff56f290 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b33d164535fa204ff56f290 Content-Type: text/plain; charset=UTF-8 Appears to be a bug. It should be TableName.valueOf(...) or something similar. Mind filing a jira? On Tue, Jul 29, 2014 at 12:22 PM, Jianshi Huang wrote: > I see why, looking at the source code of LoadIncrementalHFiles.java, it > seems the temporary path created for splitting will contain ':', > > The error part should be this: > String uniqueName = getUniqueName(table.getName()); > HColumnDescriptor familyDesc = > table.getTableDescriptor().getFamily(item.family); > Path botOut = new Path(tmpDir, uniqueName + ".bottom"); > Path topOut = new Path(tmpDir, uniqueName + ".top"); > splitStoreFile(getConf(), hfilePath, familyDesc, splitKey, > botOut, topOut); > > uniqueName will be "namespce:table" so new Path will fail. > > A bug right? > > Jianshi > > > On Tue, Jul 29, 2014 at 2:42 PM, Jianshi Huang > wrote: > > > I'm using hbase 0.98 with HDP 2.1. > > > > > > On Tue, Jul 29, 2014 at 2:39 PM, Jianshi Huang > > wrote: > > > >> I'm using completebulkload to load 500GB of data to a table > >> (presplitted). However, it reports the following errors: > >> > >> Looks like completebulkload didn't recognize the namespace part > >> (namespace:table). > >> > >> Is there an option to do it? I can't find one in Google... > >> > >> Exception in thread "main" 14/07/28 23:32:19 INFO > >> mapreduce.LoadIncrementalHFiles: Trying to load > >> hfile=hdfs://xxx/vertices/PROP/f5cbf0965ff44cb8bdabd038e66485c3 > >> first=dc595cfe#cust#1812199228741466242 > >> last=dc68cedc#cust#2251647837553603393 > >> java.lang.reflect.InvocationTargetException > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> at > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > >> at > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> at java.lang.reflect.Method.invoke(Method.java:606) > >> at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:54) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> at > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > >> at > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> at java.lang.reflect.Method.invoke(Method.java:606) > >> at org.apache.hadoop.util.RunJar.main(RunJar.java:212) > >> Caused by: java.lang.IllegalStateException: > >> java.lang.IllegalArgumentException: java.net.URISyntaxException: > Relative > >> path in absolute URI: grapple:vertices,37.bottom > >> at > >> > org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.groupOrSplitPhase(LoadIncrementalHFiles.java:421) > >> at > >> > org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.doBulkLoad(LoadIncrementalHFiles.java:291) > >> at > >> > org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.run(LoadIncrementalHFiles.java:825) > >> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) > >> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84) > >> at > >> > org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.main(LoadIncrementalHFiles.java:831) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> at > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > >> at > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> at java.lang.reflect.Method.invoke(Method.java:606) > >> at > >> > org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72) > >> at > >> org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:145) > >> at > >> org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:153) > >> ... 10 more > >> Caused by: java.lang.IllegalArgumentException: > >> java.net.URISyntaxException: Relative path in absolute URI: > >> grapple:vertices,37.bottom > >> at org.apache.hadoop.fs.Path.initialize(Path.java:206) > >> at org.apache.hadoop.fs.Path.(Path.java:172) > >> at org.apache.hadoop.fs.Path.(Path.java:94) > >> at > >> > org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.splitStoreFile(LoadIncrementalHFiles.java:450) > >> at > >> > org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.groupOrSplit(LoadIncrementalHFiles.java:516) > >> at > >> > org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles$2.call(LoadIncrementalHFiles.java:400) > >> at > >> > org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles$2.call(LoadIncrementalHFiles.java:398) > >> at java.util.concurrent.FutureTask.run(FutureTask.java:262) > >> at > >> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > >> at > >> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > >> at java.lang.Thread.run(Thread.java:724) > >> Caused by: java.net.URISyntaxException: Relative path in absolute URI: > >> grapple:vertices,37.bottom > >> at java.net.URI.checkPath(URI.java:1804) > >> at java.net.URI.(URI.java:752) > >> at org.apache.hadoop.fs.Path.initialize(Path.java:203) > >> ... 10 more > >> > >> -- > >> Jianshi Huang > >> > >> LinkedIn: jianshi > >> Twitter: @jshuang > >> Github & Blog: http://huangjs.github.com/ > >> > > > > > > > > -- > > Jianshi Huang > > > > LinkedIn: jianshi > > Twitter: @jshuang > > Github & Blog: http://huangjs.github.com/ > > > > > > -- > Jianshi Huang > > LinkedIn: jianshi > Twitter: @jshuang > Github & Blog: http://huangjs.github.com/ > -- Bharath Vissapragada --047d7b33d164535fa204ff56f290--