Hello Reena,

No there isn't a programmatic way to invoke the block scanner. Note
though that the property to control its period is DN-local, so you can
change it on DNs and do a DN rolling restart to make it take effect
without requiring a HDFS downtime.

On Fri, Mar 28, 2014 at 3:07 PM, reena upadhyay <reena2...@outlook.com> wrote:
> How to run data node block scanner on data node in a cluster from a remote
> machine?
> By default data node executes block scanner in 504 hours. This is the
> default value of dfs.datanode.scan.period . If I want to run the data node
> block scanner then one way is to configure the property of
> dfs.datanode.scan.period in hdfs-site.xml but is there any other other way.
> Is it possible to run data node block scanner on data node either through
> command or pragmatically.



-- 
Harsh J

Reply via email to