大數據入門(六)win10對Hadoop hdfs的基本操作

打開cmd,先啓動hadoop,因爲之前把sbin放入了環境變量(可參考:大數據入門(五)windows上搭建單機版Hadoop2.8(踩坑記錄)),因此在任何路徑下,都可以用start-all.cmd來啓動Hadoop
在這裏插入圖片描述
仍然用jps檢查是否啓動成功:
在這裏插入圖片描述
hdfs的命令基本以hadoop fs開頭
比如
1\創建文件:hadoop fs -mkdir /user
在這裏插入圖片描述
2\上傳文件:hadoop fs -put [本地文件路徑] [hdfs上的路徑]
注意hdfs是基於Linux系統的,因此路徑和本地的windows路徑的斜杆方向不同。

3\查看文件:hadoop fs -ls [hdfs上的路徑]

參考:Hadoop入門系列(一)Window環境下搭建hadoop和hdfs的基本操作

系列:
大數據入門(一)環境搭建,VMware15+CentOS8.1 配置
https://blog.csdn.net/qq_34391511/article/details/104874044
大數據入門(二)Centos8,JDK 配置
https://blog.csdn.net/qq_34391511/article/details/104893587
大數據入門(三)CentOS 網絡配置
https://blog.csdn.net/qq_34391511/article/details/104895498
大數據入門(四)Hadoop 集羣搭建
https://blog.csdn.net/qq_34391511/article/details/104885278
大數據入門(五)windows 上搭建單機版 Hadoop2.8(踩坑記錄)
https://blog.csdn.net/qq_34391511/article/details/104948319
大數據入門(六)win10 對 Hadoop hdfs 的基本操作
https://blog.csdn.net/qq_34391511/article/details/105070955
大數據入門(七)win10 上 eclipse 使用 Hadoop 的配置
https://blog.csdn.net/qq_34391511/article/details/105066667
大數據入門(八)win10 下的 wordcount
https://blog.csdn.net/qq_34391511/article/details/105073076
大數據入門(九)基於 win10 的 Hadoop,java 代碼進行 hdfs 操作
https://blog.csdn.net/qq_34391511/article/details/105145380

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章