Revature HDFS Commands Flashcards

1
Q

hdfs fsck [location]

A

To check the health of our filesystem at a location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

hdfs dfs [-command]

A

Used to interact with hdfs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

hdfs dfs -ls [hdfs location]

A

List files/dir in hdfs location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

hdfs dfs -cat [hdfs file]

A

Print file contents to terminal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

hdfs dfs -copyFromLocal [local file] [hdfs location]

A

Copy file from local fs and save to hdfs location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

hdfs dfs -copyToLocal [hdfs file] [local location]

A

Copy file from hdfs and save to local location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

hdfs dfs -mkdir [hdfs location]

A

Creates directory at hdfs location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

hdfs dfs -rm [hdfs file]

A

Removes file in hdfs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

hdfs dfs -rmdir [hdfs location]

A

Removes directory in hdfs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

hdfs dfs -help

A

Lists common commands/options for use with interacting with hdfs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

hdfs dfs -put

A

Functionally same as copyFromLocal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

hdfs dfs -get

A

Functionally same as copyToLocal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly