Hi,
We hava a mapred setup on 4 machines. (1 namenode and 3 datanodes)
I can access the file system from these machines without any problem.
However, when I tried to write a file to the NDFS on a machine other than
these 4 machines
I got the following error:
~/nutch-mapred/bin$ ./nutch ndfs -put nutch nutch
051206 152157 parsing file:/home/agmlab/nutch-mapred/conf/nutch-default.xml
051206 152158 parsing file:/home/agmlab/nutch-mapred/conf/nutch-site.xml
051206 152158 No FS indicated, using default:192.168.15.118:9001
051206 152158 Client connection to 192.168.15.118:9001: starting
Exception in thread "main" java.io.IOException: Cannot create file
/user/agmlab/nutch on client NDFSClient_1904460956
at org.apache.nutch.ipc.Client.call(Client.java:294)
at org.apache.nutch.ipc.RPC$Invoker.invoke(RPC.java:128)
at $Proxy0.create(Unknown Source)
at
org.apache.nutch.ndfs.NDFSClient$NDFSOutputStream.nextBlockOutputStream(
NDFSClient.java:537)
at org.apache.nutch.ndfs.NDFSClient$NDFSOutputStream.<init>(
NDFSClient.java:512)
at org.apache.nutch.ndfs.NDFSClient.create(NDFSClient.java:74)
at org.apache.nutch.fs.NDFSFileSystem.createRaw(NDFSFileSystem.java
:67)
at org.apache.nutch.fs.NFSDataOutputStream$Summer.<init>(
NFSDataOutputStream.java:41)
at org.apache.nutch.fs.NFSDataOutputStream.<init>(
NFSDataOutputStream.java:129)
at org.apache.nutch.fs.NutchFileSystem.create(NutchFileSystem.java
:175)
at org.apache.nutch.fs.NutchFileSystem.create(NutchFileSystem.java
:162)
at org.apache.nutch.fs.NDFSFileSystem.doFromLocalFile(
NDFSFileSystem.java:174)
at org.apache.nutch.fs.NDFSFileSystem.copyFromLocalFile(
NDFSFileSystem.java:149)
at org.apache.nutch.fs.NDFSShell.copyFromLocal(NDFSShell.java:46)
at org.apache.nutch.fs.NDFSShell.main(NDFSShell.java:234)
>From the same machine I was able to list the files and create directories.
What may be the problem?
Thanks.
--
Hamza Kaya