Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let's document: HDFS #15619

Open
strokie opened this issue Jan 27, 2025 · 1 comment
Open

Let's document: HDFS #15619

strokie opened this issue Jan 27, 2025 · 1 comment
Labels
help wanted You can help make tldr-pages better! let's document Tracker issue to document multiple subcommands/commands of a tool or utility or category. new command Issues requesting creation of a new page or PRs adding a new page for a command.

Comments

@strokie
Copy link

strokie commented Jan 27, 2025

Command description

The HDFS command allows users to interact with the Hadoop Distributed File System (HDFS) via a command-line interface. It provides operations to manage files and directories, such as listing, uploading, downloading, and modifying data stored in HDFS.

Documentation

https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html

Platform

Common

VCS repository link (e.g. GitHub, GitLab)

No response

Additional information

No response

Commands

•	hdfs dfs -ls [directory] – List directory contents.
•	hdfs dfs -mkdir [directory] – Create a new directory.
•	hdfs dfs -put [local_path] [hdfs_path] – Upload files to HDFS.
•	hdfs dfs -get [hdfs_path] [local_path] – Download files from HDFS.
•	hdfs dfs -rm [hdfs_path] – Remove a file.
•	hdfs dfs -rmdir [directory] – Remove an empty directory.
•	hdfs dfs -cat [file_path] – Display file contents.
•	hdfs dfs -copyFromLocal [local_path] [hdfs_path] – Copy local files to HDFS.
•	hdfs dfs -copyToLocal [hdfs_path] [local_path] – Copy files from HDFS to local.
•	hdfs dfs -du [directory] – Show disk usage.
•	hdfs dfs -chmod [mode] [path] – Change file permissions.
•	hdfs dfs -chown [user:group] [path] – Change ownership.
•	hdfs dfs -moveFromLocal [local_path] [hdfs_path] – Move files to HDFS.
•	hdfs dfs -df – Report HDFS disk capacity.
@strokie strokie added help wanted You can help make tldr-pages better! let's document Tracker issue to document multiple subcommands/commands of a tool or utility or category. new command Issues requesting creation of a new page or PRs adding a new page for a command. labels Jan 27, 2025
@kbdharun
Copy link
Member

Hi, thanks for opening the let's document issue.

I have updated the platform from macOS to common since Hadoop HDFS commands work on Linux and Windows too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted You can help make tldr-pages better! let's document Tracker issue to document multiple subcommands/commands of a tool or utility or category. new command Issues requesting creation of a new page or PRs adding a new page for a command.
Projects
None yet
Development

No branches or pull requests

2 participants