摘要: 一、概述 接实例一,实例一中server-aget是把日志上传保存到服务器上面,随着日志越来越大,公司启动了hadoop项目,需要把日志直接上传hdfs中保存,配置文件target_hdfs.conf如下: a2.sources = r2 a2.channels = c2 a2.sinks = k2 #source a2.sources.r2.type = avro a2.sourc... 阅读全文
posted @ 2015-07-31 17:45 nemotan 阅读(665) 评论(0) 推荐(0) 编辑
摘要: 一、flume-ng简介 请参考官方文档:http://flume.apache.org/FlumeUserGuide.html 二、实例 需求说明:需要监控一个目录,并自动上传到服务器,且需要在传输过程中进行加密。 整体方案:n个client-agent -->server-agent client-agen... 阅读全文
posted @ 2015-07-31 17:09 nemotan 阅读(2080) 评论(0) 推荐(0) 编辑
摘要: 一、编译hadoop2 eclipse插件 1、安装ant 2、准备eclipse插件包,下载地址:http://pan.baidu.com/s/1i3myDvv 或者https://github.com/nemotan/hadoop2x-eclipse-plugin 3、解压插件包,进入... 阅读全文
posted @ 2015-07-21 19:01 nemotan 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1.安装jdk 2. 安装需要的库 sudo apt-get install g++ autoconf automake libtool make cmake zlib1g-dev pkg-config libssl-dev 3. sudo apt-get install openssh-... 阅读全文
posted @ 2015-07-21 18:38 nemotan 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 一、windows安装git 1、下载:http://msysgit.github.io/,下载之后直接安装,打开gitbash 2、配置用户名和邮箱: $ git config --global user.name "Your Name" $ git confi... 阅读全文
posted @ 2015-07-17 19:32 nemotan 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 一、maven常用命令 1、安装配置maven:略 2、创建 创建java项目:mvn archetype:generate -DgroupId=com.demo(包名) -DartifactId=java-app(项目名) 创... 阅读全文
posted @ 2015-07-17 17:30 nemotan 阅读(659) 评论(0) 推荐(0) 编辑