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 Threaded View
HDFS >> mail # user >> Re: Is FileSystem thread-safe?


Copy link to this message
-
Re: Is FileSystem thread-safe?
FileSystem is an abstract class, what concrete class are you using
(DistributedFileSystem, etc) ? For FileSystem, I find the following for
create() method:

   * but the implementation is thread-safe. The other option is to change
the

   * value of umask in configuration to be 0, but it is not thread-safe.

...

  public static FSDataOutputStream create(FileSystem fs,

      Path file, FsPermission permission) throws IOException {

On Sun, Mar 31, 2013 at 1:45 AM, John Lilley <[EMAIL PROTECTED]>wrote:

>  In other words, given an instance of org.apache.hadoop.fs.FileSystem,
> can multiple threads access it simultaneously?  I am assuming no since it
> is not synchronized.****
>
> ** **
>
> Thanks,****
>
> *John Lilley*
>
> ** **
>
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