Hadoop archives - HarFileSystem / HadoopArchives
Asked Answered
R

0

6

Hadoop V1 java api had HarFileSystem1 class to archive and access small files in hdfs. I want to use the same feature in current version of hadoop, but cannot find any FileSystem class for the same in the current docs2. How do I do it using java API?

The command line interface has hadoop archive command to do it. Hadoop CLI is a bash script that uses org.apache.hadoop.tools.HadoopArchives for the archive command. But there is no info in docs as to how to use this class.

Thanks.

Romelda answered 16/5, 2016 at 8:39 Comment(1)
It's not much but if you import org.apache.hadoop.fs.HarFileSystem you can use it and at least look at the java doc in your IDE. FileSystem harFS = HarFileSystem.get(URI.create("/"), conf);Renny

© 2022 - 2024 — McMap. All rights reserved.