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 >> file replication


+
Alieh Saeedi 2012-02-04, 09:37
Copy link to this message
-
RE: file replication

1- How can I replicate an existing file by an application?
[Uma Ans] : you can just set the replication factor high.
             use the following API for resetting the replication factor from application.
            FileSystem#setReplication

2- Where is the number of replicas for each file saved? I mean how can I find out number of replicas for a specific file?
Regards
[Uma Ans] : FileSystem#getFileBlockLocations should give you the locations where it stored.

Regards,
Uma
________________________________________
From: Alieh Saeedi [[EMAIL PROTECTED]]
Sent: Saturday, February 04, 2012 3:07 PM
To: [EMAIL PROTECTED]
Subject: file replication

1- How can I replicate an existing file by an application?
2- Where is the number of replicas for each file saved? I mean how can I find out number of replicas for a specific file?
Regards
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