spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raghavendra Pandey <raghavendra.pan...@gmail.com>
Subject Re: Is there a way to delete hdfs file/directory using spark API?
Date Thu, 22 Jan 2015 06:53:47 GMT
You can use Hadoop Client Api to remove files
https://hadoop.apache.org/docs/current/api/org/apache/hadoop/fs/FileSystem.html#delete(org.apache.hadoop.fs.Path,
boolean). I don't think spark has any wrapper on hadoop filesystem APIs.

On Thu, Jan 22, 2015 at 12:15 PM, LinQili <lin_qili@outlook.com> wrote:

> Hi, all
> I wonder how to delete hdfs file/directory using spark API?
>

Mime
View raw message