Skip to content

Commit 4dbfcaf

Browse files
authoredAug 11, 2021
Merge pull request #28 from smkniazi/fix-readme
Updated Readme
2 parents 319d4ca + e09e5e6 commit 4dbfcaf

File tree

3 files changed

+46
-35
lines changed

3 files changed

+46
-35
lines changed
 

‎README.md

+42-33
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,49 @@
1-
hdfs-mount
2-
==========
1+
What is hopsfs-mount
2+
====================
33

4-
[![Build Status](https://travis-ci.org/Microsoft/hdfs-mount.svg?branch=master)](https://travis-ci.org/Microsoft/hdfs-mount)
4+
Allows to mount remote HopsFS as a local Linux filesystem and allow arbitrary applications / shell scripts to access HopsFS as normal files and directories in efficient and secure way.
55

6-
Allows to mount remote HDFS as a local Linux filesystem and allow arbitrary applications / shell scripts to access HDFS as normal files and directories in efficient and secure way.
6+
Usage
7+
-----
78

8-
Features (Planned)
9-
------------------
10-
* High performance
11-
* directly interfacing Linux kernel for FUSE and HDFS using protocol buffers (requires no JavaVM)
12-
* designed and optimized for throughput-intensive workloads (throughput is traded for latency whenever possible)
13-
* full streaming and automatic read-ahead support
14-
* concurrent operations
15-
* In-memory metadata caching (very fast ls!)
16-
* High stability and robust failure-handling behavior
17-
* automatic retries and failover, all configurable
18-
* optional lazy mounting, before HDFS becomes available
19-
* Support for both reads and writes
20-
* support for random writes [slow, but functionally correct]
21-
* support for file truncations
22-
* Optionally expands ZIP archives with extracting content on demand
23-
* this provides an effective solution to "millions of small files on HDFS" problem
24-
* CoreOS and Docker-friendly
25-
* optionally packagable as a statically-linked self-contained executable
9+
```
10+
Usage of ./hopsfs-mount:
11+
./hopsfs-mount [Options] Namenode:Port MountPoint
2612
27-
Current state
28-
-------------
29-
"Alpha", under active development. Basic R/O scenarios, key R/O throughout optimizations and ZIP support are implemented and outperform existing HDFS/FUSE solutions.
30-
If you want to use the component - come back in few weeks
31-
If you want to help - contact authors
32-
33-
Building
34-
--------
35-
Ensure that you cloned the git repository recursively, since it contains submodules.
36-
Run 'make' to build and 'make test' to run unit test.
37-
Please use Go version at least 1.6beta2. This version contains bugfix for handling zip64 archives necessary for hdfs-mount to operate normally.
13+
Options:
14+
-allowedPrefixes string
15+
Comma-separated list of allowed path prefixes on the remote file system, if specified the mount point will expose access to those prefixes only (default "*")
16+
-clientCertificate string
17+
Client certificate location (default "/srv/hops/super_crypto/hdfs/hdfs_certificate_bundle.pem")
18+
-clientKey string
19+
Client key location (default "/srv/hops/super_crypto/hdfs/hdfs_priv.pem")
20+
-fuse.debug
21+
log FUSE processing details
22+
-lazy
23+
Allows to mount HopsFS filesystem before HopsFS is available
24+
-logFile string
25+
Log file path. By default the log is written to console
26+
-logLevel string
27+
logs to be printed. error, warn, info, debug, trace (default "error")
28+
-readOnly
29+
Enables mount with readonly
30+
-retryMaxAttempts int
31+
Maxumum retry attempts for failed operations (default 10)
32+
-retryMaxDelay duration
33+
maximum delay between retries (default 1m0s)
34+
-retryMinDelay duration
35+
minimum delay between retries (note, first retry always happens immediatelly) (default 1s)
36+
-retryTimeLimit duration
37+
time limit for all retry attempts for failed operations (default 5m0s)
38+
-rootCABundle string
39+
Root CA bundle location (default "/srv/hops/super_crypto/hdfs/hops_root_ca.pem")
40+
-srcDir string
41+
HopsFS src directory (default "/")
42+
-stageDir string
43+
stage directory for writing files (default "/tmp")
44+
-tls
45+
Enables tls connections
46+
```
3847

3948
Other Platforms
4049
---------------

‎go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ require (
1010
github.com/sirupsen/logrus v1.8.1
1111
github.com/stretchr/testify v1.4.0
1212
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4
13-
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect
14-
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
13+
golang.org/x/sys v0.0.0-20210510120138-977fb7262007
14+
gopkg.in/natefinch/lumberjack.v2 v2.0.0
1515
)
1616

1717
replace github.com/colinmarc/hdfs/v2 v2.2.0 => github.com/logicalclocks/hopsfs-go-client/v2 v2.4.2

‎go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ github.com/logicalclocks/hopsfs-go-client/v2 v2.4.0 h1:QqxW1EZn++PHpduSAm0hjvi3N
3636
github.com/logicalclocks/hopsfs-go-client/v2 v2.4.0/go.mod h1:r9/8CY9llhxXZcO8p49guubKd1cakd58dQ/5CKQVlL8=
3737
github.com/logicalclocks/hopsfs-go-client/v2 v2.4.1 h1:Wax6LFsalGW0oozUyImzen3toNkHLQOJIVKB66gvS3E=
3838
github.com/logicalclocks/hopsfs-go-client/v2 v2.4.1/go.mod h1:r9/8CY9llhxXZcO8p49guubKd1cakd58dQ/5CKQVlL8=
39+
github.com/logicalclocks/hopsfs-go-client/v2 v2.4.2 h1:fnnwWMvqPdEU/lkuoQVKq77SSgT3qQar9ME0HWaTUN8=
40+
github.com/logicalclocks/hopsfs-go-client/v2 v2.4.2/go.mod h1:r9/8CY9llhxXZcO8p49guubKd1cakd58dQ/5CKQVlL8=
3941
github.com/pborman/getopt v0.0.0-20180729010549-6fdd0a2c7117/go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o=
4042
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
4143
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=

0 commit comments

Comments
 (0)