bl双性强迫侵犯h_国产在线观看人成激情视频_蜜芽188_被诱拐的少孩全彩啪啪漫画

Hadoop常用的操作命令(2)-創新互聯

Hadoop常用的操作命令

列出目錄清單
[root@centos67 ~]# hdfs dfs -ls /

遞歸列出目錄清單
[root@centos67 ~]# hdfs dfs -lsr /

創建目錄
[root@centos67 ~]# hdfs dfs -mkdir /input/test

刪除目錄
[root@centos67 ~]# hdfs dfs -rmr /input/test

創建文件
[root@centos67 ~]# hdfs dfs -touchz /input/test/test.txt

文件重命名
[root@centos67 ~]# hdfs dfs -mv /input/test/test.txt /input/test/test.exe

上傳文件
[root@centos67 ~]# hdfs dfs -put ./test.log /input/test/

下載文件
[root@centos67 ~]# hdfs dfs -get /input/test/test.log ./

查看文件內容
[root@centos67 ~]# hdfs dfs -cat /input/test/test.log

刪除文件
[root@centos67 ~]# hdfs dfs -rm /input/test/test.log

復制文件
[root@centos67 ~]# hdfs dfs -cp /input/test/test.log /test.log

統計目錄下的所有文件大小
[root@centos67 ~]# hdfs dfs -du /input

統計整個目錄大小
[root@centos67 ~]# hdfs dfs -dus /input

將指定目錄下所有文件內容保存為一個文件,并且下載到本地
[root@centos67 ~]# hdfs dfs -getmerge /input/test ./test.txt

查看文件的最后1KB內容
[root@centos67 ~]# hdfs dfs /input/test/test.log

修改文件屬主屬組,可以加-R遞歸
[root@centos67 ~]# hdfs dfs -chown xiaomo:xiaomo /input/test/test.log

修改文件權限,可以加-R遞歸
[root@centos67 ~]# hdfs dfs -chmod 700 /input/test/test.log

統計當前文件/目錄信息
目錄數、文件數、文件大小、文件名/目錄名
[root@centos67 ~]# hdfs dfs -count /input/test/test.log

清空回收站,文件被刪除時,它首先會移到臨時目錄.Trash/中,
當超過延遲時間之后,文件才會被永久刪除 
[root@centos67 ~]# hdfs dfs -expunge

[root@centos67 ~]# hdfs dfs -test /input
對/input進行如下類型的檢查: 
-e 是否存在,如果存在,返回0,否則返回1 
-z 是否為空,如果長度為0,返回0,否則返回1 
-d 是否為目錄,如果為目錄,返回0,否則返回1 

顯示文件內容,壓縮文件會解壓
[root@centos67 ~]# hdfs dfs -text /input/test/test.log

查看某個命令的幫助
[root@centos67 ~]# hdfs dfs -help ls
[root@centos67 ~]# hdfs dfs -help touchz

將正在運行的hadoop作業kill掉
[root@centos67 ~]# hdfs job –kill [job-id]

超過十多年行業經驗,技術領先,服務至上的經營模式,全靠網絡和口碑獲得客戶,為自己降低成本,也就是為客戶降低成本。到目前業務范圍包括了:網站建設、成都做網站,成都網站推廣,成都網站優化,整體網絡托管,微信平臺小程序開發,微信開發,手機APP定制開發,同時也可以讓客戶的網站和網絡營銷和我們一樣獲得訂單和生意!

另外有需要云服務器可以了解下創新互聯scvps.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業上云的綜合解決方案,具有“安全穩定、簡單易用、服務可用性高、性價比高”等特點與優勢,專為企業上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。

當前名稱:Hadoop常用的操作命令(2)-創新互聯
網頁鏈接:http://vcdvsql.cn/article26/djjscg.html

成都網站建設公司_創新互聯,為您提供網站策劃電子商務搜索引擎優化域名注冊手機網站建設云服務器

廣告

聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯

外貿網站建設