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 088741775D for ; Tue, 3 Feb 2015 19:46:30 +0000 (UTC) Received: (qmail 28503 invoked by uid 500); 3 Feb 2015 19:46:29 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 28456 invoked by uid 500); 3 Feb 2015 19:46:29 -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 28301 invoked by uid 99); 3 Feb 2015 19:45:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2015 19:45:54 +0000 X-ASF-Spam-Status: No, hits=3.4 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of teddyyyy123@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-we0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2015 19:45:49 +0000 Received: by mail-we0-f176.google.com with SMTP id w62so46914984wes.7 for ; Tue, 03 Feb 2015 11:44:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=dVPvyHBDJjM317tZjee3FRFde4aabYvaWvHWRKRQOf8=; b=FhnIttFyshqxMtVO++QVU6yDXjjitmK0n6awkQ35kSmfGZgrdMVN3QU2Zb4CpXS4H3 fPqfaRhWIBg/Ruwl2a6AlXnza62ncGX+4BPofZQDU/TTpseaXbDlr10A+QedrVEPGgAe gek+r2w2eDGqlsUBhu40Vdvp0OEP3GoeV8E30327tBUbOG6ptyfvLJ4RkKcwU5eoz+vw u48Crsp/0f+FOTSVCXF3/lpd0svWgufj1H+3M2/EbglSlOgv8qYRzK2zX6s6pfhxU2Dq qprnBb5yLv5iCn917jsEVnKvcGmK29JW0dGWLURe1pD/mx9LWwYeS9UlpsN9bUPntLiM drJQ== X-Received: by 10.194.57.199 with SMTP id k7mr59309643wjq.1.1422992683745; Tue, 03 Feb 2015 11:44:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.217.13.70 with HTTP; Tue, 3 Feb 2015 11:44:23 -0800 (PST) In-Reply-To: References: From: Yang Date: Tue, 3 Feb 2015 11:44:23 -0800 Message-ID: Subject: Re: java API bug ? --- client.HTable init unnecessarily tries hadoop To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=047d7bacb5286ec9d9050e344d15 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bacb5286ec9d9050e344d15 Content-Type: text/plain; charset=UTF-8 the rootdir value is http://my-hbase-master.com:8020 /apps/hbase/data I'm using 0.98.0 On Wed, Jan 28, 2015 at 4:14 PM, Ted Yu wrote: > Is namenode running on my-hbase-master.com > ? > > Which hbase release are you using ? > > I assume hbase-site.xml is in the classpath of your app. What's the value > for hbase.rootdir ? > > Cheers > > On Wed, Jan 28, 2015 at 4:10 PM, Yang wrote: > > > we have a standalone java code, which simply tries to insert one record > > into an existing hbase table. > > > > here it got the following error:but it is able to proceed. so this means > > the following operation which triggered the error is useless ??? if so, > > shouldn't the useless code be removed? > > > > thanks > > Yang > > > > 2015-01-28 16:06:05,769 [pool-2-thread-1] WARN > > org.apache.hadoop.hbase.util.DynamicClassLoader - Failed to identify the > > fs of dir hdfs://my-hbase-master.com:8020/apps/hbase/data/lib, ignored > > java.io.IOException: No FileSystem for scheme: hdfs > > at > org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2385) > > at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2392) > > at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:89) > > at > org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2431) > > at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2413) > > at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:368) > > at org.apache.hadoop.fs.Path.getFileSystem(Path.java:296) > > at > > > > > org.apache.hadoop.hbase.util.DynamicClassLoader.(DynamicClassLoader.java:104) > > at > > > > > org.apache.hadoop.hbase.protobuf.ProtobufUtil.(ProtobufUtil.java:201) > > at org.apache.hadoop.hbase.ClusterId.parseFrom(ClusterId.java:64) > > at > > > > > org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:69) > > at > > > > > org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:83) > > at > > > > > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.retrieveClusterId(HConnectionManager.java:857) > > at > > > > > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.(HConnectionManager.java:662) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > > at > > > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) > > at > > > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > > at java.lang.reflect.Constructor.newInstance(Constructor.java:526) > > at > > > > > org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:414) > > at > > > > > org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:393) > > at > > > > > org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:274) > > at org.apache.hadoop.hbase.client.HTable.(HTable.java:188) > > at org.apache.hadoop.hbase.client.HTable.(HTable.java:150) > > at bdp.kafka.connector.BDPConsumer.run(BDPConsumer.java:58) > > > > > > > > > > Configuration config = HBaseConfiguration.create(); > > HTable table = new HTable(config, hTableName); > > > --047d7bacb5286ec9d9050e344d15--