公司hadoop客户端试用

今天用了一下公司的hadoop客户端,从外面下载的客户端不能用,只能用这个wiki里面提供的:link

 

装在了 tc-cm-201511novam12x12n0.tc 目录 /home/work/vip/hadoop-client/hadoop/bin

命令

$./hadoop fs -D fs.default.name=afs://pegasus.afs.baidu.com:9902 -D hadoop.job.ugi=nuomi-c-vip,密码 -put abc afs://pegasus.afs.baidu.com:9902/app/nuomi/c-vip

16/11/28 14:50:22 INFO fs.LibdfsLoader: Trying to load the libdfs library...
16/11/28 14:50:22 INFO fs.LibdfsLoader: Loaded the libdfs library
16/11/28 14:50:22 INFO fs.DFileSystem: Loaded the libdfs library


$ ./hadoop fs -D fs.default.name=afs://pegasus.afs.baidu.com:9902 -D hadoop.job.ugi=nuomi-c-vip,密码 -ls afs://pegasus.afs.baidu.com:9902/app/nuomi/c-vip

16/11/28 14:50:29 INFO fs.LibdfsLoader: Trying to load the libdfs library...
16/11/28 14:50:29 INFO fs.LibdfsLoader: Loaded the libdfs library
16/11/28 14:50:29 INFO fs.DFileSystem: Loaded the libdfs library
Found 1 items
-rwxrwxrwx   3 nuomi-c-vip nuomi-c-vip          4 2016-11-28 14:50 /app/nuomi/c-vip/abc

然后再把这个文件删掉吧:

$ ./hadoop fs -D fs.default.name=afs://pegasus.afs.baidu.com:9902 -D hadoop.job.ugi=nuomi-c-vip,密码 -rm afs://pegasus.afs.baidu.com:9902/app/nuomi/c-vip/abc

16/11/28 14:54:36 INFO fs.LibdfsLoader: Trying to load the libdfs library...
16/11/28 14:54:36 INFO fs.LibdfsLoader: Loaded the libdfs library
16/11/28 14:54:36 INFO fs.DFileSystem: Loaded the libdfs library
Deleted afs://pegasus.afs.baidu.com:9902/app/nuomi/c-vip/abc

支持的命令包括:

Usage: java FsShell
           [-ls ]
           [-lsr ]
           [-du ]
           [-dus ]
           [-count[-q] ]
           [-mv  ]
           [-cp  ]
           [-ln  ]
           [-rm ]
           [-rmr ]
           [-expunge]
           [-put  ... ]
           [-copyFromLocal  ... ]
           [-moveFromLocal  ... ]
           [-get [-ignoreCrc] [-crc] [-repair]  ]
           [-getmerge [-addnl]   | -getmerge   [addnl]]
           [-cat ]
           [-text ]
           [-copyToLocal [-ignoreCrc] [-crc] [-repair]  ]
           [-copySeqFileToLocal [-ignoreLen]  ]
           [-moveToLocal [-crc]  ]
           [-mkdir ]
           [-setrep [-R] [-w] [-d]  ]
           [-setAcl   ]
           [-getAcl [-u ] [-p ] ]
           [-removeAcl [-u ] [-p ] ]
           [-touchz ]
           [-test -[ezd] ]
           [-stat [format] ]
           [-tail [-f] ]
           [-chmod [-R]  PATH...]
           [-chown [-R] [OWNER][:[GROUP]] PATH...]
           [-chgrp [-R] GROUP PATH...]
           [-help [cmd]]

 

你可能感兴趣的:(公司hadoop客户端试用)