I think IBM has a plugin that can access HDFS, I don't know whether it contains source code, but maybe it helps.
www.alphaworks.*ibm*.com/tech/mapreducetools On Tue, Aug 5, 2008 at 5:16 AM, Alberto Forcén <[EMAIL PROTECTED]> wrote: > Hi all. > > I'm running a clustering HDFS on linux and I need to access files (I/O) > from eclipse Java application running on Windows. It seems simple, but is it > possible? > > I have write code using API but I have a problem: when code invokes > DistributedFileSystem.initialize() method I receive an exception: > java.net.SocketTimeoutException > > > [code] > String ipStr = "192.168.75.191"; > String portStr = "9000"; > String uriStr = "http://" + ipStr + ":" + portStr; > > Configuration conf = new Configuration(); > conf.set("hadoop.job.ugi", "user,group"); // Usuario y grupos a los que > pertenece > > DistributedFileSystem dfs = new DistributedFileSystem(); > dfs.initialize(new URI(uriStr), conf); > [/code] > > [trace] > Exception in thread "main" java.net.SocketTimeoutException: timed out > waiting for rpc response > at org.apache.hadoop.ipc.Client.call(Client.java:559) > at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:212) > at org.apache.hadoop.dfs.$Proxy0.getProtocolVersion(Unknown Source) > at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:313) > at org.apache.hadoop.dfs.DFSClient.createRPCNamenode(DFSClient.java:102) > at org.apache.hadoop.dfs.DFSClient.<init>(DFSClient.java:178) > at > org.apache.hadoop.dfs.DistributedFileSystem.initialize(DistributedFileSystem.java:68) > at examples.HadoopDFS.main(HadoopDFS.java:153) > [/trace] > > > ______________________________________________ > Enviado desde Correo Yahoo! La bandeja de entrada más inteligente. >
