1HDFSCLI(1) User Commands HDFSCLI(1)
2
3
4
6 hdfscli – a command line interface for HDFS
7
9 hdfscli [interactive] [-a ALIAS] [-v...]
10
11 hdfscli download [-fsa ALIAS] [-v...] [-t THREADS] HDFS_PATH LO‐
12 CAL_PATH
13
14 hdfscli upload [-sa ALIAS] [-v...] [-A | -f] [-t THREADS] LOCAL_PATH
15 HDFS_PATH
16
17 hdfscli -L | -v | -h
18
20 COMMANDS
21 download
22 Download a file or folder from HDFS. If a single file is down‐
23 loaded, - can be specified as LOCAL_PATH to stream it to stan‐
24 dard out.
25
26 interactive
27 Upload a file or folder to HDFS. - can be specified as LO‐
28 CAL_PATH to read from standard in. Start the client and expose
29 it via the python interpreter (using ipython(1) if available).
30
31 upload Upload a file or folder to HDFS. - can be specified as LO‐
32 CAL_PATH to read from standard in.
33
34 ARGUMENTS
35 HDFS_PATH
36 Remote HDFS path.
37
38 LOCAL_PATH
39 Path to local file or directory.
40
41 OPTIONS
42 -A --append
43 Append data to an existing file. Only supported if uploading a
44 single file or from standard in.
45
46 -L --log
47 Show path to current log file and exit.
48
49 -V --version
50 Show version and exit.
51
52 -a ALIAS--alias=ALIAS
53 Alias of namenode to connect to.
54
55 -f --force
56 Allow overwriting any existing files.
57
58 -s --silent
59 Don’t display progress status.
60
61 -t THREADS--threads=THREADS
62 Number of threads to use for parallelization. 0 allocates a
63 thread per file. [default: 0]
64
65 -v --verbose
66 Enable log output. Can be specified up to three times (increas‐
67 ing verbosity each time).
68
70 HdfsCLI exits with return status 1 if an error occurred and 0 other‐
71 wise.
72
74 hdfscli -a prod /user/foo
75 hdfscli download features.avro dat/
76 hdfscli download logs/1987-03-23 - >>logs
77 hdfscli upload -f - data/weights.tsv <weights.tsv
78
80 hdfscli-avro(1)
81
82 ipython(1)
83
84
85
86 October 2021 HDFSCLI(1)