Comments (5)
Oddly, specifying the fully qualified hdfs path of the tar file works. See the following example
[hdfs@node1 ~]$ hadoop fs -ls tar:///jd/files.tar
17/01/29 00:19:03 INFO tar.TarFileSystem: *** Using Tar file system ***
-ls: Pathname /tar:/jd/files.tar from /tar:/jd/files.tar is not a valid DFS filename.
Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
[hdfs@node1 ~]$
[hdfs@node1 ~]$
[hdfs@node1 ~]$ hadoop fs -ls tar://hdfs:///jd/files.tar
17/01/29 00:19:08 INFO tar.TarFileSystem: *** Using Tar file system ***
Found 3 items
-rw-rw-r-- 2 hdfs hdfs 15 2017-01-27 04:26 tar://hdfs:/jd/files.tar/f1.txt
-rw-rw-r-- 2 hdfs hdfs 15 2017-01-27 04:26 tar://hdfs:/jd/files.tar/f2.txt
-rw-rw-r-- 2 hdfs hdfs 15 2017-01-27 04:26 tar://hdfs:/jd/files.tar/f3.txt
Will look more into it.
from tarfilesystem.
I haven't tested for this version of Hadoop. Will try to reproduce this.
from tarfilesystem.
I could reproduce the issue. I am looking into it.
from tarfilesystem.
Fixed this and released an interim beta here: https://github.com/JDatta/TarFileSystem/releases/tag/2.0_beta_30_Jan_2017
Please check if this works in your setup.
from tarfilesystem.
Many thanks for the fast response - that is working in our setup now!
from tarfilesystem.
Related Issues (7)
- Long file names in tar are getting cut in index HOT 2
- Support hierarchical directory structure in TarFileSystem
- Write index to disk asynchronously
- Add unit tests for hierarchical directory support
- Stackoverflowerror with a tar containing many files HOT 12
- ReadIndexFile does not work if file name contains spaces
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tarfilesystem.