Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9479A107AE for ; Thu, 5 Dec 2013 23:18:42 +0000 (UTC) Received: (qmail 81316 invoked by uid 500); 5 Dec 2013 23:18:37 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 81217 invoked by uid 500); 5 Dec 2013 23:18:37 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 81210 invoked by uid 99); 5 Dec 2013 23:18:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 23:18:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuzhihong@gmail.com designates 209.85.160.52 as permitted sender) Received: from [209.85.160.52] (HELO mail-pb0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 23:18:31 +0000 Received: by mail-pb0-f52.google.com with SMTP id uo5so26820413pbc.39 for ; Thu, 05 Dec 2013 15:18:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XL0fZlZBJBWZ485ZnF/MUN4ZzXxNZthsoEjtp4gSj8I=; b=MXFOxDgqe1tHroIbIFJIU9Gox6C491NwXDSrgb33KWKDVtHKlwTc5CJo2EoHVzLhPZ EucyEnrYK8vjxzB03F3Z9v3syd1r+wzO+Icqn7kxqGO8vTZ2VPc6CKk9BcFKylEwDXFh 2ZJIogBqYVwDwlKFhk/aWyPhHbTrepYjSiI8Y8aoK/ZVucF4yVJZoQ7ch9XMfl2+uHrW oy4K6spkdBfO27g7UPldZgGY0Ju711yh+2/XkkPZ/jk2zanLhQhRBAjzuc/hosCBvY4C PE+RBJXxcgFiBgsQ57zDDStke3GOkC1NMnarxsHJ8i5P1a1/IUmOAyuA8wcVC/9MrtT7 ge9Q== MIME-Version: 1.0 X-Received: by 10.68.206.171 with SMTP id lp11mr273640pbc.109.1386285491552; Thu, 05 Dec 2013 15:18:11 -0800 (PST) Received: by 10.70.16.226 with HTTP; Thu, 5 Dec 2013 15:18:11 -0800 (PST) In-Reply-To: <6F11F61B51513249B87F77ED7856EB018CF9630366@NYCWPRDADCMBX01.ahm.corp> References: <6F11F61B51513249B87F77ED7856EB018CF9630366@NYCWPRDADCMBX01.ahm.corp> Date: Fri, 6 Dec 2013 07:18:11 +0800 Message-ID: Subject: Re: Hadoop-common-2.2.0 cannot find PlatformName From: Ted Yu To: "common-user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=001a11364d30480b8704ecd1be76 X-Virus-Checked: Checked by ClamAV on apache.org --001a11364d30480b8704ecd1be76 Content-Type: text/plain; charset=ISO-8859-1 How did you launch your java client ? Take a look at the sample command in this section: http://hbase.apache.org/book.html#trouble.mapreduce.local Cheers On Fri, Dec 6, 2013 at 7:11 AM, Su, Xiandong wrote: > I am trying to have a simple java client to connect to HBase in HDP 2.0. > I am using maven to manage my dependencies and using the same version for > the jars as HDP 2.0 specified: > > org.apache.hadoop > hadoop-client > 2.2.0 > > org.apache.hbase > hbase-client > 0.96.0-hadoop2 > > I am getting the NoClassDefFoundError which is strange. It is used inside > hadoop-common-2.2.0.jar which is brought in by hadoop-client. I would > assume whatever jar that contains this class should have been a dependency > of hadoop-common-2.2.0. But that seems not be the case here. > > Has anyone on the forum using the same version running into this issue? > > Thanks > > Sean > > p.s. here is the full exception trace: > java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName > at > org.apache.hadoop.security.UserGroupInformation.getOSLoginModuleName(UserGroupInformation.java:303) > at > org.apache.hadoop.security.UserGroupInformation.(UserGroupInformation.java:348) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hbase.util.Methods.call(Methods.java:39) > at org.apache.hadoop.hbase.security.User.call(User.java:414) > at org.apache.hadoop.hbase.security.User.callStatic(User.java:404) > at org.apache.hadoop.hbase.security.User.access$200(User.java:48) > at org.apache.hadoop.hbase.security.User$SecureHadoopUser.(User.java:221) > at org.apache.hadoop.hbase.security.User$SecureHadoopUser.(User.java:216) > at org.apache.hadoop.hbase.security.User.getCurrent(User.java:139) > at org.apache.hadoop.hbase.client.HConnectionKey.(HConnectionKey.java:67) > at > org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:240) > at org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:182) > > > > ------------------------------ > IMPORTANT WARNING: Information contained in this email is intended for the > use of the individual to whom it is addressed, and may contain information > that is privileged, confidential, and exempt from disclosure under > applicable law. If you are not the intended recipient, or the employee or > agent responsible for delivering the message to the intended recipient, you > are hereby notified that any dissemination, distribution, or copying of > this communication is STRICTLY FORBIDDEN. If you have received this > communication in error, please notify us immediately by return email and > delete this document. Thank you. > --001a11364d30480b8704ecd1be76 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
How did you launch your java client ?

Take a = look at the sample command in this section:

Cheers


On Fri, Dec 6, 2013 at 7:11 AM, = Su, Xiandong <XSu@activehealth.net> wrote:

I am trying to have a simple java client to connect to HBase in HDP 2.0.= I am using maven to manage my dependencies and using the same version for = the jars as HDP 2.0 specified:

org.apache.hadoop
hadoop-client
2.2.0

org.apache.hbase
hbase-client
0.96.0-hadoop2

I am getting the NoClassDefFoundError which is strange. It is used insid= e hadoop-common-2.2.0.jar which is brought in by hadoop-client. I would ass= ume whatever jar that contains this class should have been a dependency of = hadoop-common-2.2.0. But that seems not be the case here.

Has anyone on the forum using the same version running into this issue?<= u>

Thanks

Sean

p.s. here is the full exception trace:
java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName
at org.apache.hadoop.security.UserGroupInformation.getOSLoginModuleName(Use= rGroupInformation.java:303)
at org.apache.hadoop.security.UserGroupInformation.(UserGroupInformation.ja= va:348)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.hbase.util.Methods.call(Methods.java:39)
at org.apache.hadoop.hbase.security.User.call(User.java:414)
at org.apache.hadoop.hbase.security.User.callStatic(User.java:404)
at org.apache.hadoop.hbase.security.User.access$200(User.java:48)
at org.apache.hadoop.hbase.security.User$SecureHadoopUser.(User.java:221) at org.apache.hadoop.hbase.security.User$SecureHadoopUser.(User.java:216) at org.apache.hadoop.hbase.security.User.getCurrent(User.java:139)
at org.apache.hadoop.hbase.client.HConnectionKey.(HConnectionKey.java:67) at org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnect= ionManager.java:240)
at org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:182)

=A0



IMPORTANT WARNING: Informat= ion contained in this email is intended for the use of the individual to wh= om it is addressed, and may contain information that is privileged, confide= ntial, and exempt from disclosure under applicable law. If you are not the intended recipient, or the employee or = agent responsible for delivering the message to the intended recipient, you= are hereby notified that any dissemination, distribution, or copying of th= is communication is STRICTLY FORBIDDEN. If you have received this communication in error, please notify us immedia= tely by return email and delete this document. Thank you.

--001a11364d30480b8704ecd1be76--