hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajat Goel <rajatgoe...@gmail.com>
Subject Error while using libhdfs C API
Date Wed, 01 Dec 2010 15:24:43 GMT
Hi,

I am a new user of Hadoop and I am trying to access HDFS via C program
linking with libhdfs.

When I run my program, I see the following error from function
hdfsOpenFile():

Exception in thread "main" java.io.IOException: Mkdirs failed to create
/2010/12/1/abc4
        at
org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:394)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:610)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:591)
Call to
org.apache.hadoop.conf.FileSystem::create((Lorg/apache/hadoop/fs/Path;ZISJ)Lorg/apache/hadoop/fs/FSDataOutputStream;)
failed!
hdfs: failed to open file  /2010/12/1/abc4/test.txt


The path /2010/12/1/abc4/ already exists in HDFS. Can someone help me in
resolving this issue?

Thanks,
Rajat

Mime
View raw message