What steps will reproduce the problem?
1.
The c code like this,
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
int main(int argc, char **argv) {
int fp;
fp= open("/mnt/hdfs/fusetest",O_CREAT | O_RDWR , 0664);
if(fp<0){
printf("error creating...\n");
return -1;
}
}
2. compile the code with gcc and run the executable.
What is the expected output? What do you see instead?
I expect the file can be created successfully.
What version of the product are you using? On what operating system?
hadoop-0.20.2 on ubuntu 9.04 amd64. Kernel version 2.6.28.10
Please provide any additional information below.
fopen works. but open does not work.
Original issue reported on code.google.com by chinhui1...@gmail.com on 8 Jul 2011 at 8:04
Original issue reported on code.google.com by
chinhui1...@gmail.com
on 8 Jul 2011 at 8:04