hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Biju G.S Nair" <bijun...@acm.org>
Subject Re: ANNOUNCE: hbase-0.96.1.1 available for download.
Date Fri, 20 Dec 2013 17:04:42 GMT
Tried to run a simple program using 0.96 Hadoop2 against Hadoop 2 cluster
and getting errors about some cloudera class not found. Following are the
details. Which other jars need to be included in the classpath?

Executed Code:
  public static void main(String[] args) throws IOException {
    Configuration conf = HBaseConfiguration.create();
    HBaseHelper helper = HBaseHelper.getHelper(conf);
    HTable table = new HTable(conf, "t1");
    Get get = new Get(Bytes.toBytes("r1"));
    Result res = table.get(get);
    System.out.println(res.toString());
    byte[] val = res.getValue(Bytes.toBytes("colfam1"),
Bytes.toBytes("c1"));
    byte[] key = res.getRow();
    System.out.println(Bytes.toString(val)+' '+Bytes.toString(key));
  }

HBASE Jars in classpath:
  hbase-client-0.96.0-hadoop2.jar,
  hbase-common-0.96.0-hadoop2.jar,
  hbase-hadoop2-compat-0.96.0-hadoop2.jar,
  hbase-protocol-0.96.0-hadoop2.jar

Error:
Exception in thread "main" java.io.IOException:
java.lang.reflect.InvocationTargetException
at
org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:383)
 at
org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:360)
 at
org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:244)
at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:182)
 at com.hadoop.sample.hbase.HBaseHelper.<init>(HBaseHelper.java:29)
at com.hadoop.sample.hbase.HBaseHelper.getHelper(HBaseHelper.java:33)
 at com.hadoop.sample.hbase.GetExample.main(GetExample.java:15)
Caused by: java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:381)
 ... 6 more
Caused by: java.lang.NoClassDefFoundError: org/cloudera/htrace/Trace
 at
org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:196)
 at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:479)
at
org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)
 at
org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:83)
 at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.retrieveClusterId(HConnectionManager.java:794)
 at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:627)
 ... 11 more
Caused by: java.lang.ClassNotFoundException: org.cloudera.htrace.Trace
 at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 ... 17 more


Thanks,
Biju



On Fri, Dec 20, 2013 at 9:01 AM, Jay Vyas <jayunit100@gmail.com> wrote:

> ... I assume you mean the latest hdfs versions... Since hbase 96 doesn't
> run on YARN container nodes yet. (See Hoya project which aims to port it
> over).
>
> While were on the subject... @steve which version of hbase is expected to
> contain the Hoya stuff?
>
> Sent from my iPhone
>
> > On Dec 20, 2013, at 8:56 AM, Jignesh Patel <jigneshmpatel@gmail.com>
> wrote:
> >
> > Just curious !!! has anybody started using hbase-0.96.1.1 with hadoop
> 2.x?
> > How stable it is?
> >
> >
> >> On Thu, Dec 19, 2013 at 6:39 PM, Elliott Clark <eclark@apache.org>
> wrote:
> >>
> >> Thanks.
> >>
> >> Should we now go remove the 0.96.1 release from mirrors ?
> >>
> >>
> >>> On Thu, Dec 19, 2013 at 1:29 PM, Jonathan Hsieh <jon@cloudera.com>
> wrote:
> >>>
> >>> The HBase Team is pleased to announce the immediate release of  HBase
> >>> 0.96.1.1.
> >>>
> >>> You should be able to download it from you favorite apache mirrors[1].
> >> It
> >>> has also been pushed to apache's maven repository.
> >>>
> >>> Note that hbase-0.96.1.1 comes in two flavors; a build that includes
> and
> >>> runs on hadoop-1.x and another for hadoop-2.x. You must chose the hbase
> >>> that suits your hadoop context.
> >>>
> >>> Upgrades from 0.92.x/0.94.x can requires shutdown and then an upgrade
> >>> procedure [2].  Upgrades from 0.96.x can be done via rolling upgrade
> >>> without downtime.
> >>>
> >>> This was a quick fix release with only 1 bug fix [3] that addressed an
> >> api
> >>> compatibility problem introduced between 0.96.0 ad 0.96.1.  We will be
> >>> removing 0.96.1.
> >>>
> >>> Thanks!
> >>> Your HBase Team
> >>>
> >>> [1] http://www.apache.org/dyn/closer.cgi/hbase/
> >>> [2] http://hbase.apache.org/book.html#upgrade0.96
> >>> [3] http://goo.gl/q4S94X
> >>>
> >>>
> >>> --
> >>> // Jonathan Hsieh (shay)
> >>> // Software Engineer, Cloudera
> >>> // jon@cloudera.com
> >>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message