查看#查看文件信息hdfs dfs -stat "%o %r" /mytest/1.txt上傳#上傳一個(gè)文件hdfs dfs -copyFromLocal /home/gc/1.txt /mytest/#上傳本test.txt文件到HDFS根目錄,HDFS根目錄須無同名文件,否則“File exists”hdfs fs -put file:/root/test.txt hdfs:/#上傳并重命名文件hdfs fs -put test.txt /test2.txt#一次上傳多個(gè)文件到HDFS路徑hdfs fs -put test1.txt test2.txt hdfs:/下載#下載到本地hdfs dfs -get /tmp/install.log /home/刪除#刪除文件 刪除文件之后 文件被放入回收站trashhdfs dfs -rm -r –skipTrash /mytest/1.txt#跳過回收站hdfs dfs -rm -r –skipTrash /mytest/1.txt數(shù)量hdfs dfs -count /修改權(quán)限hdfs dfs -chmod 777 /1.txt統(tǒng)計(jì)目錄各個(gè)文件大小hdfs dfs -du -h /balance/*/*.zip多線程導(dǎo)入導(dǎo)出文件hdfs com.citicbank.hdfs.CrossFileSystemCopyer –r –t 5 file:///home/ hdfs://todo【hdfs上傳下載命令 上傳文件到hdfs的命令】注:src多個(gè)逗號(hào)隔開,拷貝成功 命令返回0 失敗為1 。
Hadoop Native庫生效情況hadoop checknative -a
猜你喜歡
- 怎么用CMD命令強(qiáng)制關(guān)機(jī)
- 匯編語言中T命令和P命令的區(qū)別
- windows關(guān)閉端口命令 如何關(guān)閉電腦端口
- win10打開攝像頭命令 電腦攝像頭怎么打開win10沒有顯示
- 有哪些帶命令的成語?
- win7設(shè)置開機(jī)啟動(dòng)項(xiàng)步驟 設(shè)置啟動(dòng)項(xiàng)命令
- 我的世界手機(jī)版命令碼 詳細(xì)歸納
- cad三維建模的拉伸快捷命令是什么?
- 搜索引擎命令site,intitle,inurl,分別代表什么意思
- 如何通過命令行查看Python版本?Python查看版本的教程
