try 'Path outFile = new Path("/ryan/test");'
also check if there is any usefule message on Namenode log.
Raghu.
Ryan Wang wrote:
Hope this version can attract other's attention
Hadoop Version: 0.15.0
JDK version: Sun JDK 6.0.3
Platform: Ubuntu 7.10
IDE: Eclipse 3.2
Code :
public class HadoopWrite {
/**
* @param args
*/
public static void main(String[] args) throws IOException{
Configuration dfsconf = new Configuration();
FileSystem dfs;
dfs = FileSystem.get(dfsconf);
Path inFile = new Path("/nutch/out");
Path outFile = new Path("ryan/test");
dfs.copyFromLocalFile(inFile, outFile);
}
}