📚 The CoCalc Library - books, templates and other resources
License: OTHER
Kernel: Python 2
This notebook was prepared by Donne Martin. Source and license info is on GitHub.
HDFS
Run an HDFS command:
In [ ]:
Run a file system command on the file systems (FsShell):
In [ ]:
List the user's home directory:
In [ ]:
List the HDFS root directory:
In [ ]:
Copy a local file to the user's directory on HDFS:
In [ ]:
Display the contents of the specified HDFS file:
In [ ]:
Print the last 10 lines of the file to the terminal:
In [ ]:
View a directory and all of its files:
In [ ]:
Copy an HDFS file to local:
In [ ]:
Create a directory on HDFS:
In [ ]:
Recursively delete the specified directory and all of its contents:
In [ ]:
Specify HDFS file in Spark (paths are relative to the user's home HDFS directory):
In [ ]: