Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-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 C144AE6CC for ; Wed, 6 Mar 2013 09:50:51 +0000 (UTC) Received: (qmail 97869 invoked by uid 500); 6 Mar 2013 09:50:46 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 97574 invoked by uid 500); 6 Mar 2013 09:50:46 -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 97559 invoked by uid 99); 6 Mar 2013 09:50:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 09:50:46 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=5.0 tests=FSL_NEW_HELO_USER,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shubhangi.garg@oracle.com designates 156.151.31.81 as permitted sender) Received: from [156.151.31.81] (HELO userp1040.oracle.com) (156.151.31.81) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 09:50:39 +0000 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r269oIXu013136 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 6 Mar 2013 09:50:19 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r269oINc022460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 6 Mar 2013 09:50:18 GMT Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r269oI3P012774 for ; Wed, 6 Mar 2013 03:50:18 -0600 Received: from [10.178.30.185] (/10.178.30.185) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 06 Mar 2013 01:50:17 -0800 Message-ID: <51371155.9010601@oracle.com> Date: Wed, 06 Mar 2013 15:20:13 +0530 From: shubhangi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: user@hadoop.apache.org CC: Mats Kindahl , Narayanan Venkateswaran Subject: For Hadoop 2.0.3; setting CLASSPATH=$(hadoop classpath) does not work, as opposed to 1.x versions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Virus-Checked: Checked by ClamAV on apache.org I am writing an application in c++, which uses API provided by libhdfs to manipulate Hadoop DFS. I could run the application with 1.0.4 and 1.1.1; setting classpath equal to $(hadoop classpath). For Hadoop 2.0.3; setting CLASSPATH=$(hadoop classpath) does not load necessary classes required forlibhdfs; as opposed to 1.x versions; giving the following error: loadFileSystems error: (unable to get stack trace for java.lang.NoClassDefFoundError exception: ExceptionUtils::getStackTrace error.) hdfsBuilderConnect(forceNewInstance=0, nn=default, port=0, kerbTicketCachePath=(NULL), userName=(NULL)) error: (unable to get stack trace for java.lang.NoClassDefFoundError exception: ExceptionUtils::getStackTrace error.) I tried loading the jar files with their full path specified (as opposed to wildcard characters used in the classpath); and the application runs, but gives the following warning: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 13/03/04 11:17:23 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable