Hi,

I found my problem -- the datanodes name should not be dn1 -- in my case it 
should be the ip of the computer

datanode1: nutch datanode /tmp/nutch/ndfs/data 192.xxx.xxx.xxx 
192.xxx.xxx.xx:9100

Ok,
Thanks anyways,
George


On 8/22/05, George A. Papayiannis <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I'm trying to test out NDFS and I'm having some problems. My set up is 
> straightforward, each of these in their own directory:
> 
> namenode: nutch namenode 9100 /tmp/nutch/ndfs/name
> datanode1: nutch datanode /tmp/nutch/ndfs/data dn1 localhost:9100
> datanode2: nutch datanode /tmp/nutch/ndfs/data dn2 localhost:9100
> 
> Everything appears to connect properly and running TestClient.java -report 
> shows the datanodes
> 
> But when I try and write anything to NDFS, even creating a directory, I 
> get the following exception:
> Exception in thread "main" java.lang.NullPointerException
> at java.net.Socket.<init>(Socket.java:301)
> at java.net.Socket.<init>(Socket.java:153)
> at net.nutch.ndfs.NDFSClient$NDFSOutputStream.nextBlockOutputStream(
> NDFSClient.java:613)
> at net.nutch.ndfs.NDFSClient$NDFSOutputStream.<init>(NDFSClient.java:584)
> at net.nutch.ndfs.NDFSClient.create(NDFSClient.java:72)
> at net.nutch.fs.NDFSFileSystem.create(NDFSFileSystem.java:48)
> at net.nutch.fs.NDFSFileSystem.create(NDFSFileSystem.java:43)
> at net.nutch.io.SequenceFile$Writer.<init>(SequenceFile.java:44)
> at net.nutch.io.MapFile$Writer.<init>(MapFile.java:75)
> at net.nutch.db.WebDBWriter.<init>(WebDBWriter.java:1494)
> at net.nutch.db.WebDBWriter.createWebDB(WebDBWriter.java:1425)
> 
> From what I gather, its looking for the datanodes, but is not finding 
> them.
> Has anyone come across this problem? I'm using Fedora
> 
> Thanks
>

Reply via email to