正気に見えますか??
public static void main(String[] args) throws IOException, URISyntaxException, InterruptedException {
// TODO Auto-generated method stub
Configuration conf = new Configuration();
conf.addResource(new Path("/hadoop/projects/hadoop-1.0.4/conf/core-site.xml"));
conf.addResource(new Path("/hadoop/projects/hadoop-1.0.4/conf/hdfs-site.xml"));
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the directory URI...");
String dirPath = br.readLine();
URI uri = new URI(dirPath);
System.out.println("Enter the user...");
String user = br.readLine();
FileSystem fs = FileSystem.get(uri, conf, user);
fs.mkdirs(new Path(uri.toString()), FsPermission.getDefault());
FSDataOutputStream fsDataOutputStream = fs.create(new Path(uri.toString()+"/file.txt"));
fsDataOutputStream.writeBytes("This is a demo file..!!!!");
}