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 776146595 for ; Thu, 9 Jun 2011 06:57:02 +0000 (UTC) Received: (qmail 37094 invoked by uid 500); 9 Jun 2011 06:57:01 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 37061 invoked by uid 500); 9 Jun 2011 06:57:00 -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 37052 invoked by uid 99); 9 Jun 2011 06:56:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2011 06:56:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of saint.ack@gmail.com designates 209.85.216.41 as permitted sender) Received: from [209.85.216.41] (HELO mail-qw0-f41.google.com) (209.85.216.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2011 06:56:54 +0000 Received: by qwa26 with SMTP id 26so805008qwa.14 for ; Wed, 08 Jun 2011 23:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=EVhCxtOvibLqANgN3kuPY97yJROMo44njzCe0bD3MxM=; b=Wf9mANobT18eAOQidnYRpkEt+jPMstGmnijUEvGolm7V/q7et6TLFA0ZSnqiEeZtJv FIcjTEbmbHUd1+QNkYfegT80YBi9RxdHXiZq4GuyjBudX7F8kdI57f3krYY8+urjKech rcganaPLZETfOifxGmlvO2o/RZ/2zDmu6dM04= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=o9IeoQf27Fg5101fg/vJqKbxLiueDebjGSREmh1iAYSqvkS5rpbhae5x3CDhkaQ5Kz oyT+Y1PTu93ygMQ4BnvQjRYYOyHlvT/QQp/4jn+gyerwzCMJeMN6oiINx0kuRJKpHQjs PVuqs//RsytnP24onuC/avsjxS/1q+ysqVYIE= MIME-Version: 1.0 Received: by 10.224.205.138 with SMTP id fq10mr282792qab.91.1307602593765; Wed, 08 Jun 2011 23:56:33 -0700 (PDT) Sender: saint.ack@gmail.com Received: by 10.224.19.135 with HTTP; Wed, 8 Jun 2011 23:56:33 -0700 (PDT) In-Reply-To: References: Date: Wed, 8 Jun 2011 23:56:33 -0700 X-Google-Sender-Auth: KfnDr4SL3ex-lpY6IARCioHT9IE Message-ID: Subject: Re: How to create config object using HBase 0.90.3 ? From: Stack To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Well, our example should have had that for an import. If you get the example working, paste it to a JIRA and I'll update our doc. St.Ack On Wed, Jun 8, 2011 at 11:32 PM, praveenesh kumar wr= ote: > Oh..!!! > Sorry Sorry.. My mistake.. > I was searching org.apache.hadoop.conf.Configuration in the HBase API.. I= ts > in the Hadoop-core. jar file.. > My mistake.. > Extremely Sorry.. :-) > > On Thu, Jun 9, 2011 at 12:00 PM, praveenesh kumar w= rote: > >> The link you send to me showing HBASE 0.91.0 - SNAPSHOT API >> >> and in the link >> http://hbase.apache.org/apidocs/overview-summary.html#overview_descripti= on, >> I am not able to see org.apache.hadoop.conf.Configuration Class. >> >> If I am following the given example -- >> http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/package-s= ummary.html#package_description >> >> >> import org.apache.hadoop.hbase.HBaseConfiguration; >> import org.apache.hadoop.hbase.client.Get; >> import org.apache.hadoop.hbase.client.HTable; >> import org.apache.hadoop.hbase.client.Put; >> import org.apache.hadoop.hbase.client.Result; >> import org.apache.hadoop.hbase.client.ResultScanner; >> import org.apache.hadoop.hbase.client.Scan; >> import org.apache.hadoop.hbase.util.Bytes; >> >> >> // Class that has nothing but a main. >> // Does a Put, Get and a Scan against an hbase table. >> public class MyLittleHBaseClient { >> =A0 public static void main(String[] args) throws IOException { >> =A0 =A0 // You need a configuration object to tell the client where to c= onnect. >> =A0 =A0 // When you create a HBaseConfiguration, it reads in whatever yo= u've >> set >> =A0 =A0 // into your hbase-site.xml and in hbase-default.xml, as long as= these >> can >> =A0 =A0 // be found on the CLASSPATH >> =A0 =A0 Configuration config =3D HBaseConfiguration.create(); >> >> >> I am not able to create the config object.. because I am not finding >> org.apache.hadoop.conf.Configuration class in the API. >> >> If I just use >> HBaseConfiguration conf =3D new HBaseConfiguration(); >> Its showing its deprecated. >> >> and HBaseConfiguration.create() is returning >> org.apache.hadoop.conf.Configuration object. >> >> Can anyone show me how to create a conf object using HBase 0.90.3 API. >> >> Thanks, >> Praveenesh >> >> >> On Thu, Jun 9, 2011 at 11:42 AM, Stack wrote: >> >>> Where are you reading? =A0I just checked the javadoc, >>> http://hbase.apache.org/apidocs/overview-summary.html#overview_descript= ion >>> , >>> and it seems to be current. >>> >>> St.Ack >>> >>> On Wed, Jun 8, 2011 at 11:06 PM, praveenesh kumar >>> wrote: >>> > Hello guys, >>> > >>> > I just started doing HBase programming. I am using HBase 0.90.3 API. >>> > All tutorials I am getting are based on previous version. >>> > >>> > I am not able to create conf object using HBase 0.90.3 API.. >>> > In the HBASE 0.90.3 API link , its saying HBaseConfiguration is using >>> > org.apache.hadoop.conf.Configuration object.. >>> > But there is no conf.Configuration in the API. >>> > >>> > I am not able to create conf object. Anyone facing this kind of >>> situation ? >>> > >>> > Thanks, >>> > Praveenesh >>> > >>> >> >> >