Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HDFS >> mail # user >> FileSystem API for 0.19


Copy link to this message
-
FileSystem API for 0.19
Hello,

I am using the FS API to write into files in HDFS.

FileSystem fs = FileSystem.get(jobconf);

Path pt = new Path(some_string);

BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(fs.create(pt,
true)));

C_init.write("Hello!");
This works wells in Hadoop 0.20.203.0 but doesn't work for 0.19.

Please help!

Many thanks in advance!

Warm regards

Arko
+
Harsh J 2011-10-11, 02:34
+
Arko Provo Mukherjee 2011-10-11, 15:42
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB