1、 killpid :ps -ef | grep 'apache-flume-1.6.0-bin' |grep -v 'grep'| awk '{print $2}' | xargs kill -9
a.切换到hdfs用户 :su hdfs ;
b. 执行:hadoop fs -chmod -R 777 /user/ecer/web-access-log/business-sites
3. 在idea中打包可执行jar包在centos目录中运行:
a.直接运行:java -jar ecer-HdfsCatalogue.jar
b.带参数运行,并指定main方法:java -cp ecer-HdfsCatalogue.jar com.ecer.HDFSCatalogue.CountDoc 20161123
原文链接:https://www.f2er.com/centos/379772.html