You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Peter Rudenko <pe...@gmail.com> on 2015/09/29 20:39:03 UTC
input file from tar.gz
Hi, i have a huge tar.gz file on dfs. This file contains several files,
but i want to use only one of them as input. Is it possible to filter
somehow a tar.gz schema, something like this:
sc.textFile("hdfs:///data/huge.tar.gz#input.txt")
Thanks,
Peter Rudenko
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org
Re: input file from tar.gz
Posted by Ted Yu <yu...@gmail.com>.
The syntax using '#' is not supported by hdfs natively.
YARN resource localization supports such notion. See
http://hadoop.apache.org/docs/r2.7.1/hadoop-mapreduce-client/hadoop-mapreduce-client-core/DistributedCacheDeploy.html
Not sure about Spark.
On Tue, Sep 29, 2015 at 11:39 AM, Peter Rudenko <pe...@gmail.com>
wrote:
> Hi, i have a huge tar.gz file on dfs. This file contains several files,
> but i want to use only one of them as input. Is it possible to filter
> somehow a tar.gz schema, something like this:
> sc.textFile("hdfs:///data/huge.tar.gz#input.txt")
>
> Thanks,
> Peter Rudenko
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>