Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 95399 invoked from network); 22 Feb 2008 17:38:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2008 17:38:23 -0000 Received: (qmail 83646 invoked by uid 500); 22 Feb 2008 17:38:11 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 83618 invoked by uid 500); 22 Feb 2008 17:38:11 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 83609 invoked by uid 99); 22 Feb 2008 17:38:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 09:38:11 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.145.54.172] (HELO mrout2.yahoo.com) (216.145.54.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 17:37:23 +0000 Received: from [10.72.104.13] (walkduty-lm.corp.yahoo.com [10.72.104.13]) by mrout2.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id m1MHb08x082024 for ; Fri, 22 Feb 2008 09:37:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:content-type:message-id: content-transfer-encoding:from:subject:date:to:x-mailer; b=p+hC0jn9ILP1NaLlm0K8Um8YO/83oVzh0Fnn2txChJU6n3v0PvPes+ORgwvt5/ET Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <964c3b910802210329h637cdca8x9dc5350bc760c590@mail.gmail.com> References: <964c3b910802210329h637cdca8x9dc5350bc760c590@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <679B8AE4-12F3-4C30-BEBA-C04242C5802B@yahoo-inc.com> Content-Transfer-Encoding: 7bit From: Arun C Murthy Subject: Re: Problem with LibHDFS Date: Fri, 22 Feb 2008 09:36:29 -0800 To: core-user@hadoop.apache.org X-Mailer: Apple Mail (2.753) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 21, 2008, at 3:29 AM, Raghavendra K wrote: > Hi, > I am able to get Hadoop running and also able to compile the > libhdfs. > But when I run the hdfs_test program it is giving Segmentation Fault. Unfortunately the documentation for using libhdfs is sparse, our apologies. You'll need to set the CLASSPATH to include your hadoop-core.jar and the conf/ directory to run libhdfs since it is a JNI wrapper over the HDFS java api. Please take a look at the 'test-libhdfs' target in the top-level build.xml for hints on how to set them... Arun > Just a small program like this > #include "hdfs.h" > int main() { > return(0); > } > and compiled using the command > gcc -ggdb -m32 -I/garl/garl-alpha1/home1/raghu/Desktop/jre1.5.0_14/ > include > -I/garl/garl-alpha1/home1/raghu/Desktop/jre1.5.0_14/include/ > hdfs_test.c > -L/garl/garl-alpha1/home1/raghu/Desktop/hadoop-0.15.3/libhdfs -lhdfs > -L/garl/garl-alpha1/home1/raghu/Desktop/jre1.5.0_14/lib/i386/server > -ljvm > -shared -m32 -Wl,-x -o hdfs_test > running hdfs_test gives segmentation fault. > please tell me as to how to fix it. > > > > -- > Regards, > Raghavendra K