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 96B88F44E for ; Thu, 4 Apr 2013 12:07:21 +0000 (UTC) Received: (qmail 497 invoked by uid 500); 4 Apr 2013 12:07:19 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 99459 invoked by uid 500); 4 Apr 2013 12:07:17 -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 99424 invoked by uid 99); 4 Apr 2013 12:07:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 12:07:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.177] (HELO mail-vc0-f177.google.com) (209.85.220.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 12:07:12 +0000 Received: by mail-vc0-f177.google.com with SMTP id ia10so2249005vcb.8 for ; Thu, 04 Apr 2013 05:06:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding :x-gm-message-state; bh=PHFgO835gTnPTHSWsgNWs3WHThDj7yEdkTZl+038a+U=; b=U3sVngfC2+g7tqeE0vfnzeVqst8/wCBM8qhXTL4hDXN3p3xujyftNQVDgV/qBu7TIA xWMvED7EPAbLFStA5cw7Z0KeyYL7exUeFHLMnrW07RB3qaX9XJyIx/a8VH6DJMhhlRNG +DBVdqBbwQJTum9YP5pgzyGoJN4bPQshZDw5F5nblCSAZ5Fb0plGhShRAx8SQbQfwjPO IlDMVc/Mxmfwae9W8qN3ISog51zdFqkqU1NDSTuEL0Tq/j4X8SRTfXxbcdHwsFopG6Qc W18Abjhoir41+4DXL4dm/JlgwipOgXA/htr9Esm0BpMoQnMScH4fsIkXdwvpYnkMdUzx T2dQ== X-Received: by 10.220.9.3 with SMTP id j3mr4409940vcj.56.1365077211215; Thu, 04 Apr 2013 05:06:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.248.176 with HTTP; Thu, 4 Apr 2013 05:06:30 -0700 (PDT) In-Reply-To: References: <515C5FD6.7050604@gmail.com> <35B25F290CC841B282B66B0267AB5BA5@defun.org> From: Jean-Marc Spaggiari Date: Thu, 4 Apr 2013 08:06:30 -0400 Message-ID: Subject: Re: connecting Hbase using java To: user@hbase.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQkdHxLybREgfwRJLsHmOVEm6sQdAN/uZZ6INQRpkoguAQqLvZvvkJpvqCCMcziTJO4qCfw2 X-Virus-Checked: Checked by ClamAV on apache.org Ok. Classpath looks good. Few points: - org.apache.hadoop.hbase.client.Scanner doesn't exist for 0.94.6. - org.apache.hadoop.hbase.io.BatchUpdate doesn't exist for 0.94.6. - org.apache.hadoop.hbase.io.Cell doesn't exist for 0.94.6. - etc. http://hbase.apache.org/0.94/apidocs/index.html You might want to review you source code. JM 2013/4/4 Alok Singh Mahor : > thanks Jean, output of ~/packages/hbase-0.94.6/bin/hbase classpath is > > alok@alok:~/exp/hbase/exp$ ~/packages/hbase-0.94.6/bin/hbase classpath > /home/alok/packages/hbase-0.94.6/bin/../conf:/usr/lib/jvm/default-java/li= b/tools.jar:/home/alok/packages/hbase-0.94.6/bin/..:/home/alok/packages/hba= se-0.94.6/bin/../hbase-0.94.6.jar:/home/alok/packages/hbase-0.94.6/bin/../h= base-0.94.6-tests.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/activatio= n-1.1.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/asm-3.1.jar:/home/alo= k/packages/hbase-0.94.6/bin/../lib/avro-1.5.3.jar:/home/alok/packages/hbase= -0.94.6/bin/../lib/avro-ipc-1.5.3.jar:/home/alok/packages/hbase-0.94.6/bin/= ../lib/commons-beanutils-1.7.0.jar:/home/alok/packages/hbase-0.94.6/bin/../= lib/commons-beanutils-core-1.8.0.jar:/home/alok/packages/hbase-0.94.6/bin/.= ./lib/commons-cli-1.2.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/commo= ns-codec-1.4.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/commons-collec= tions-3.2.1.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/commons-configu= ration-1.6.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/commons-digester= -1.8.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/commons-el-1.0.jar:/ho= me/alok/packages/hbase-0.94.6/bin/../lib/commons-httpclient-3.1.jar:/home/a= lok/packages/hbase-0.94.6/bin/../lib/commons-io-2.1.jar:/home/alok/packages= /hbase-0.94.6/bin/../lib/commons-lang-2.5.jar:/home/alok/packages/hbase-0.9= 4.6/bin/../lib/commons-logging-1.1.1.jar:/home/alok/packages/hbase-0.94.6/b= in/../lib/commons-math-2.1.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/= commons-net-1.4.1.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/core-3.1.= 1.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/guava-11.0.2.jar:/home/al= ok/packages/hbase-0.94.6/bin/../lib/hadoop-core-1.0.4.jar:/home/alok/packag= es/hbase-0.94.6/bin/../lib/high-scale-lib-1.1.1.jar:/home/alok/packages/hba= se-0.94.6/bin/../lib/httpclient-4.1.2.jar:/home/alok/packages/hbase-0.94.6/= bin/../lib/httpcore-4.1.3.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/j= ackson-core-asl-1.8.8.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/jacks= on-jaxrs-1.8.8.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/jackson-mapp= er-asl-1.8.8.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/jackson-xc-1.8= .8.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/jamon-runtime-2.3.1.jar:= /home/alok/packages/hbase-0.94.6/bin/../lib/jasper-compiler-5.5.23.jar:/hom= e/alok/packages/hbase-0.94.6/bin/../lib/jasper-runtime-5.5.23.jar:/home/alo= k/packages/hbase-0.94.6/bin/../lib/jaxb-api-2.1.jar:/home/alok/packages/hba= se-0.94.6/bin/../lib/jaxb-impl-2.2.3-1.jar:/home/alok/packages/hbase-0.94.6= /bin/../lib/jersey-core-1.8.jar:/home/alok/packages/hbase-0.94.6/bin/../lib= /jersey-json-1.8.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/jersey-ser= ver-1.8.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/jettison-1.1.jar:/h= ome/alok/packages/hbase-0.94.6/bin/../lib/jetty-6.1.26.jar:/home/alok/packa= ges/hbase-0.94.6/bin/../lib/jetty-util-6.1.26.jar:/home/alok/packages/hbase= -0.94.6/bin/../lib/jruby-complete-1.6.5.jar:/home/alok/packages/hbase-0.94.= 6/bin/../lib/jsp-2.1-6.1.14.jar:/home/alok/packages/hbase-0.94.6/bin/../lib= /jsp-api-2.1-6.1.14.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/jsr305-= 1.3.9.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/junit-4.10-HBASE-1.ja= r:/home/alok/packages/hbase-0.94.6/bin/../lib/libthrift-0.8.0.jar:/home/alo= k/packages/hbase-0.94.6/bin/../lib/log4j-1.2.16.jar:/home/alok/packages/hba= se-0.94.6/bin/../lib/metrics-core-2.1.2.jar:/home/alok/packages/hbase-0.94.= 6/bin/../lib/netty-3.2.4.Final.jar:/home/alok/packages/hbase-0.94.6/bin/../= lib/protobuf-java-2.4.0a.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/se= rvlet-api-2.5-6.1.14.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/slf4j-= api-1.4.3.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/slf4j-log4j12-1.4= .3.jar:/home/alok/packages/hbase-0.94.6/bin/../lib/snappy-java-1.0.3.2.jar:= /home/alok/packages/hbase-0.94.6/bin/../lib/stax-api-1.0.1.jar:/home/alok/p= ackages/hbase-0.94.6/bin/../lib/velocity-1.7.jar:/home/alok/packages/hbase-= 0.94.6/bin/../lib/xmlenc-0.52.jar:/home/alok/packages/hbase-0.94.6/bin/../l= ib/zookeeper-3.4.5.jar: > > > > On Thu, Apr 4, 2013 at 5:54 AM, Jean-Marc Spaggiari > wrote: > >> What's the output of ~/packages/hbase-0.94.6/bin/hbase classpath? >> >> 2013/4/3 Alok Singh Mahor : >> > thank you Harsha >> > with your advice I used command to compile that example code >> > alok@alok:~/exp/hbase/exp$ javac -classpath >> > `~/packages/hbase-0.94.6/bin/hbase classpath` HBaseExample.java >> > >> > so errors reduced to 15 from 18 >> > could you please what else I have to add >> > >> > please see the error >> > >> > alok@alok:~/exp/hbase/exp$ javac -classpath >> > `~/packages/hbase-0.94.6/bin/hbase classpath` HBaseExample.java >> > HBaseExample.java:5: error: cannot find symbol >> > import org.apache.hadoop.hbase.client.Scanner; >> > ^ >> > symbol: class Scanner >> > location: package org.apache.hadoop.hbase.client >> > HBaseExample.java:6: error: cannot find symbol >> > import org.apache.hadoop.hbase.io.BatchUpdate; >> > ^ >> > symbol: class BatchUpdate >> > location: package org.apache.hadoop.hbase.io >> > HBaseExample.java:7: error: cannot find symbol >> > import org.apache.hadoop.hbase.io.Cell; >> > ^ >> > symbol: class Cell >> > location: package org.apache.hadoop.hbase.io >> > HBaseExample.java:8: error: cannot find symbol >> > import org.apache.hadoop.hbase.io.RowResult; >> > ^ >> > symbol: class RowResult >> > location: package org.apache.hadoop.hbase.io >> > HBaseExample.java:20: error: cannot find symbol >> > BatchUpdate batchUpdate =3D new BatchUpdate("test_row1"); >> > ^ >> > symbol: class BatchUpdate >> > location: class HBaseExample >> > HBaseExample.java:20: error: cannot find symbol >> > BatchUpdate batchUpdate =3D new BatchUpdate("test_row1"); >> > ^ >> > symbol: class BatchUpdate >> > location: class HBaseExample >> > HBaseExample.java:25: error: cannot find symbol >> > Cell cell =3D table.get("test_row1", "columnfamily1:column1"); >> > ^ >> > symbol: class Cell >> > location: class HBaseExample >> > HBaseExample.java:25: error: no suitable method found for >> get(String,String) >> > Cell cell =3D table.get("test_row1", "columnfamily1:column1"); >> > ^ >> > method HTable.get(List) is not applicable >> > (actual and formal argument lists differ in length) >> > method HTable.get(Get) is not applicable >> > (actual and formal argument lists differ in length) >> > HBaseExample.java:31: error: cannot find symbol >> > RowResult singleRow =3D table.getRow(Bytes.toBytes("test_row1"= )); >> > ^ >> > symbol: class RowResult >> > location: class HBaseExample >> > HBaseExample.java:31: error: cannot find symbol >> > RowResult singleRow =3D table.getRow(Bytes.toBytes("test_row1"= )); >> > ^ >> > symbol: method getRow(byte[]) >> > location: variable table of type HTable >> > HBaseExample.java:32: error: cannot find symbol >> > Cell cell =3D >> singleRow.get(Bytes.toBytes("columnfamily1:column1")); >> > ^ >> > symbol: class Cell >> > location: class HBaseExample >> > HBaseExample.java:42: error: cannot find symbol >> > Scanner scanner =3D table.getScanner( >> > ^ >> > symbol: class Scanner >> > location: class HBaseExample >> > HBaseExample.java:42: error: no suitable method found for >> > getScanner(String[]) >> > Scanner scanner =3D table.getScanner( >> > ^ >> > method HTable.getScanner(byte[],byte[]) is not applicable >> > (actual and formal argument lists differ in length) >> > method HTable.getScanner(byte[]) is not applicable >> > (actual argument String[] cannot be converted to byte[] by metho= d >> > invocation conversion) >> > method HTable.getScanner(Scan) is not applicable >> > (actual argument String[] cannot be converted to Scan by method >> > invocation conversion) >> > HBaseExample.java:46: error: cannot find symbol >> > RowResult rowResult =3D scanner.next(); >> > ^ >> > symbol: class RowResult >> > location: class HBaseExample >> > HBaseExample.java:55: error: cannot find symbol >> > for (RowResult result : scanner) { >> > ^ >> > symbol: class RowResult >> > location: class HBaseExample >> > Note: HBaseExample.java uses or overrides a deprecated API. >> > Note: Recompile with -Xlint:deprecation for details. >> > 15 errors >> > >> > >> > On Thu, Apr 4, 2013 at 2:50 AM, Harsha wrote: >> > >> >> Alok, >> >> run "hbase classpath" and try putting everything in it in class >> path. >> >> -Harsha >> >> >> >> >> >> -- >> >> Harsha >> >> >> >> >> >> On Wednesday, April 3, 2013 at 9:59 AM, Andrea Gazzarini wrote: >> >> >> >> > I don't have my laptop with me at the momemt and honestly last time= I >> >> > ran a javac from command line it was about ten years ago but my >> >> > questions is : are you sure you can use wildcard this way? >> >> > If I remember well, prior to JDK 1.6 you could not use widlcards at >> all, >> >> > and starting from 1.6 you can use *only* wildcard, without the ".ja= r" >> >> suffix >> >> > >> >> > Best, >> >> > Andrea >> >> > >> >> > >> >> > On 04/03/2013 06:37 PM, Alok Singh Mahor wrote: >> >> > > Hi all, >> >> > > today I start afresh a Example code on >> >> > > http://blog.rajeevsharma.in/2009/06/using-hbase-in-java-0193.html >> >> > > but I guess luck is not with me. >> >> > > I run >> >> > > javac -classpath >> >> > > >> >> >> ~/packages/hbase-0.94.6/hbase-0.94.6.jar:~/packages/hbase-0.94.6/lib/*:~= /packages/hadoop-1.1.2/*.jar:~/packages/hadoop-1.1.2/lib/*.jar >> >> > > HBaseExample.java -verbose >> >> > > >> >> > > please tell me what else I need to add in path to resolve these >> errors >> >> > > >> >> > > thank you >> >> > > >> >> > > >> >> > > alok@alok:~/exp/hbase/exp$ javac -classpath >> >> > > >> >> >> ~/packages/hbase-0.94.6/hbase-0.94.6.jar:~/packages/hbase-0.94.6/lib/*:~= /packages/hadoop-1.1.2/*.jar:~/packages/hadoop-1.1.2/lib/*.jar >> >> > > HBaseExample.java -verbose >> >> > > [parsing started RegularFileObject[HBaseExample.java]] >> >> > > [parsing completed 29ms] >> >> > > [search path for source files: >> >> > > >> >> >> /home/alok/packages/hbase-0.94.6/hbase-0.94.6.jar,~/packages/hbase-0.94.= 6/lib/*,~/packages/hadoop-1.1.2/*.jar,~/packages/hadoop-1.1.2/lib/*.jar] >> >> > > [search path for class files: >> >> > > >> >> >> /usr/lib/jvm/java-7-openjdk-i386/jre/lib/resources.jar,/usr/lib/jvm/java= -7-openjdk-i386/jre/lib/rt.jar,/usr/lib/jvm/java-7-openjdk-i386/jre/lib/sun= rsasign.jar,/usr/lib/jvm/java-7-openjdk-i386/jre/lib/jsse.jar,/usr/lib/jvm/= java-7-openjdk-i386/jre/lib/jce.jar,/usr/lib/jvm/java-7-openjdk-i386/jre/li= b/charsets.jar,/usr/lib/jvm/java-7-openjdk-i386/jre/lib/netx.jar,/usr/lib/j= vm/java-7-openjdk-i386/jre/lib/plugin.jar,/usr/lib/jvm/java-7-openjdk-i386/= jre/lib/rhino.jar,/usr/lib/jvm/java-7-openjdk-i386/jre/lib/jfr.jar,/usr/lib= /jvm/java-7-openjdk-i386/jre/classes,/usr/lib/jvm/java-7-openjdk-i386/jre/l= ib/ext/zipfs.jar,/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ext/sunjce_provid= er.jar,/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ext/sunpkcs11.jar,/usr/lib/= jvm/java-7-openjdk-i386/jre/lib/ext/pulse-java.jar,/usr/lib/jvm/java-7-open= jdk-i386/jre/lib/ext/dnsns.jar,/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ext= /java-atk-wrapper.jar,/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ext/localeda= ta.jar,/home/alok/pack >> >> >> >> >> ages/hbase-0.94.6/hbase-0.94.6.jar,~/packages/hbase-0.94.6/lib/*,~/packa= ges/hadoop-1.1.2/*.jar,~/packages/hadoop-1.1.2/lib/*.jar] >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/io/IOException.class)]] >> >> > > HBaseExample.java:2: error: package org.apache.hadoop.fs does not >> exist >> >> > > import org.apache.hadoop.fs.Path; >> >> > > ^ >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/home/alok/packages/hbase-0.94.6/hbase-0.94.6.jar= (org/apache/hadoop/hbase/HBaseConfiguration.class)]] >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/home/alok/packages/hbase-0.94.6/hbase-0.94.6.jar= (org/apache/hadoop/hbase/client/HTable.class)]] >> >> > > HBaseExample.java:5: error: cannot find symbol >> >> > > import org.apache.hadoop.hbase.client.Scanner; >> >> > > ^ >> >> > > symbol: class Scanner >> >> > > location: package org.apache.hadoop.hbase.client >> >> > > HBaseExample.java:6: error: cannot find symbol >> >> > > import org.apache.hadoop.hbase.io.BatchUpdate; >> >> > > ^ >> >> > > symbol: class BatchUpdate >> >> > > location: package org.apache.hadoop.hbase.io ( >> >> http://org.apache.hadoop.hbase.io) >> >> > > HBaseExample.java:7: error: cannot find symbol >> >> > > import org.apache.hadoop.hbase.io.Cell; >> >> > > ^ >> >> > > symbol: class Cell >> >> > > location: package org.apache.hadoop.hbase.io ( >> >> http://org.apache.hadoop.hbase.io) >> >> > > HBaseExample.java:8: error: cannot find symbol >> >> > > import org.apache.hadoop.hbase.io.RowResult; >> >> > > ^ >> >> > > symbol: class RowResult >> >> > > location: package org.apache.hadoop.hbase.io ( >> >> http://org.apache.hadoop.hbase.io) >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/home/alok/packages/hbase-0.94.6/hbase-0.94.6.jar= (org/apache/hadoop/hbase/util/Bytes.class)]] >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/lang/Object.class)]] >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/lang/String.class)]] >> >> > > [checking HBaseExample] >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/lang/AutoCloseable.class)]] >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/lang/Exception.class)]] >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/lang/Throwable.class)]] >> >> > > HBaseExample.java:16: error: cannot find symbol >> >> > > conf.addResource(new Path("/opt/hbase-0.19.3/conf/hbase-site.xml"= )); >> >> > > ^ >> >> > > symbol: class Path >> >> > > location: class HBaseExample >> >> > > HBaseExample.java:16: error: cannot access Configuration >> >> > > conf.addResource(new Path("/opt/hbase-0.19.3/conf/hbase-site.xml"= )); >> >> > > ^ >> >> > > class file for org.apache.hadoop.conf.Configuration not found >> >> > > HBaseExample.java:20: error: cannot find symbol >> >> > > BatchUpdate batchUpdate =3D new BatchUpdate("test_row1"); >> >> > > ^ >> >> > > symbol: class BatchUpdate >> >> > > location: class HBaseExample >> >> > > HBaseExample.java:20: error: cannot find symbol >> >> > > BatchUpdate batchUpdate =3D new BatchUpdate("test_row1"); >> >> > > ^ >> >> > > symbol: class BatchUpdate >> >> > > location: class HBaseExample >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/math/BigDecimal.class)]] >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/nio/ByteBuffer.class)]] >> >> > > HBaseExample.java:25: error: cannot find symbol >> >> > > Cell cell =3D table.get("test_row1", "columnfamily1:column1"); >> >> > > ^ >> >> > > symbol: class Cell >> >> > > location: class HBaseExample >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/util/List.class)]] >> >> > > HBaseExample.java:25: error: no suitable method found for >> >> get(String,String) >> >> > > Cell cell =3D table.get("test_row1", "columnfamily1:column1"); >> >> > > ^ >> >> > > method HTable.get(List) is not applicable >> >> > > (actual and formal argument lists differ in length) >> >> > > method HTable.get(Get) is not applicable >> >> > > (actual and formal argument lists differ in length) >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/lang/System.class)]] >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/io/PrintStream.class)]] >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/io/FilterOutputStream.class)]] >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-= INF/sym/rt.jar/java/io/OutputStream.class)]] >> >> > > HBaseExample.java:31: error: cannot find symbol >> >> > > RowResult singleRow =3D table.getRow(Bytes.toBytes("test_row1")); >> >> > > ^ >> >> > > symbol: class RowResult >> >> > > location: class HBaseExample >> >> > > HBaseExample.java:31: error: cannot find symbol >> >> > > RowResult singleRow =3D table.getRow(Bytes.toBytes("test_row1")); >> >> > > ^ >> >> > > symbol: method getRow(byte[]) >> >> > > location: variable table of type HTable >> >> > > HBaseExample.java:32: error: cannot find symbol >> >> > > Cell cell =3D singleRow.get(Bytes.toBytes("columnfamily1:column1"= )); >> >> > > ^ >> >> > > symbol: class Cell >> >> > > location: class HBaseExample >> >> > > HBaseExample.java:42: error: cannot find symbol >> >> > > Scanner scanner =3D table.getScanner( >> >> > > ^ >> >> > > symbol: class Scanner >> >> > > location: class HBaseExample >> >> > > [loading >> >> > > >> >> >> ZipFileIndexFileObject[/home/alok/packages/hbase-0.94.6/hbase-0.94.6.jar= (org/apache/hadoop/hbase/client/Scan.class)]] >> >> > > HBaseExample.java:42: error: no suitable method found for >> >> > > getScanner(String[]) >> >> > > Scanner scanner =3D table.getScanner( >> >> > > ^ >> >> > > method HTable.getScanner(byte[],byte[]) is not applicable >> >> > > (actual and formal argument lists differ in length) >> >> > > method HTable.getScanner(byte[]) is not applicable >> >> > > (actual argument String[] cannot be converted to byte[] by method >> >> > > invocation conversion) >> >> > > method HTable.getScanner(Scan) is not applicable >> >> > > (actual argument String[] cannot be converted to Scan by method >> >> > > invocation conversion) >> >> > > HBaseExample.java:46: error: cannot find symbol >> >> > > RowResult rowResult =3D scanner.next(); >> >> > > ^ >> >> > > symbol: class RowResult >> >> > > location: class HBaseExample >> >> > > HBaseExample.java:55: error: cannot find symbol >> >> > > for (RowResult result : scanner) { >> >> > > ^ >> >> > > symbol: class RowResult >> >> > > location: class HBaseExample >> >> > > [total 461ms] >> >> > > Note: HBaseExample.java uses or overrides a deprecated API. >> >> > > Note: Recompile with -Xlint:deprecation for details. >> >> > > 18 errors >> >> > > >> >> > >> >> > >> >> > >> >> >> >> >> >> >>