惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threat Research - Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
V
Vulnerabilities – Threatpost
GbyAI
GbyAI
P
Proofpoint News Feed
L
LINUX DO - 热门话题
P
Palo Alto Networks Blog
A
About on SuperTechFans
T
Tenable Blog
M
MIT News - Artificial intelligence
IT之家
IT之家
I
Intezer
D
DataBreaches.Net
爱范儿
爱范儿
T
Threatpost
C
CERT Recently Published Vulnerability Notes
云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
K
Kaspersky official blog
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Y
Y Combinator Blog
Cyberwarzone
Cyberwarzone
酷 壳 – CoolShell
酷 壳 – CoolShell
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
Spread Privacy
Spread Privacy
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
AWS News Blog
AWS News Blog
博客园 - 聂微东
C
Check Point Blog
S
Securelist
有赞技术团队
有赞技术团队
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
D
Docker
G
GRAHAM CLULEY
T
The Exploit Database - CXSecurity.com
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tailwind CSS Blog
L
Lohrmann on Cybersecurity
G
Google Developers Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LangChain Blog

博客园 - 鄙人取个名字好难

Kafka Rebalance 机制 阿里云百炼实战-Spring AI 连接 AI应用API 阿里云百炼实战-IDEA集成Claude Code AI简介 Java进阶(八)动态代理 Hadoop(一)Linux环境搭建 Hadoop(二)基本概念 Ubuntu中SVN服务端安装 Docker(六)安装telnet命令 MySQL实用查询语句 Java进阶(七)布隆过滤器 NIO面试题 TCP/IP面试题 SPRING面试题 SpringBoot(五)原理剖析:Transaction原理 SpringBoot(四)原理剖析:AOP原理 SpringBoot(三)原理剖析:IOC原理 SpringBoot(二)原理剖析:AutoConfiguration原理 SpringBoot(一)原理剖析:SpringApplication启动原理
Hadoop(三)命令指南
鄙人取个名字好难 · 2026-03-20 · via 博客园 - 鄙人取个名字好难

概览

  All HDFS commands are invoked by the bin/hdfs script. Running the hdfs script without any arguments prints the description for all commands.
  Usage: hdfs [SHELL_OPTIONS] COMMAND [GENERIC_OPTIONS] [COMMAND_OPTIONS]

       官网地址

实例:上传文件到hdfs

-- 创建文件
[root@VM-75-149-centos file]# echo 'hello world!' > hello.text
[root@VM-75-149-centos file]# ls
hadoop-2.10.1.tar.gz  hello.text
[root@VM-75-149-centos file]# cat hello.text 
hello world!
-- hdfs创建多级目录
[root@VM-75-149-centos file]# hdfs dfs -mkdir -p /2022/05/
-- hdfs查询文件目录
[root@VM-75-149-centos file]# hdfs dfs -ls /       
Found 1 items
drwxr-xr-x   - root supergroup          0 2022-05-05 15:23 /2022
-- 上传文件到hdfs
[root@VM-75-149-centos file]# hdfs dfs -put hello.text /2022/05/ 
-- hdfs查询文件
[root@VM-75-149-centos file]# hdfs dfs -ls /2022/05/            
Found 1 items
-rw-r--r--   1 root supergroup         13 2022-05-05 15:26 /2022/05/hello.text

通过web查看上传的文件信息