博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Flume Installation
阅读量:6447 次
发布时间:2019-06-23

本文共 1755 字,大约阅读时间需要 5 分钟。

hot3.png

下载flume二进制安装包:apache-flume-1.6.0-bin.tar.gz

把apache-flume-1.6.0-bin.tar.gz文件存放在/opt/beh/core目录下,进行解压:

tar -zxvf apache-flume-1.6.0-bin.tar.gz

改名:

mv apache-flume-1.6.0-bin flume

l  设置环境变量

export FLUME_HOME=/opt/beh/core/flume

export PATH=$PATH:$ FLUME_HOME/bin

l  配置参数文件

配置文件存放在$FLUME_HOME/conf/目录下,将flume-env.sh.template文件名称改为flume-env.sh

mv flume-env.sh.template flume-env.sh

配置内容如下:

# Licensed to the Apache Software Foundation (ASF) under one# or more contributor license agreements.  See the NOTICE file# distributed with this work for additional information# regarding copyright ownership.  The ASF licenses this file# to you under the Apache License, Version 2.0 (the# "License"); you may not use this file except in compliance# with the License.  You may obtain a copy of the License at##     http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License. # If this file is placed at FLUME_CONF_DIR/flume-env.sh, it will be sourced# during Flume startup. # Enviroment variables can be set here. # export JAVA_HOME=/usr/lib/jvm/java-6-sun # Give Flume more memory and pre-allocate, enable remote monitoring via JMX export JAVA_OPTS="-Xms1024m -Xmx4096m -Dcom.sun.management.jmxremote" # Note that the Flume conf directory is always included in the classpath.#FLUME_CLASSPATH=""

配置说明:

JAVA_OPTS设置flume启动agent时JVM分配的最小内存和最大内存,根据机器配置尽量设置大一点。

l  验证是否安装成功

    进入$FLUME_HOME/bin路径下,执行:flume-ng version ,如果显示版本号说明安装成功。

转载于:https://my.oschina.net/yulongblog/blog/1506207

你可能感兴趣的文章
headfirst python 03, 04
查看>>
Git在Githib和Github上的使用
查看>>
mysql 远程访问 配置
查看>>
今优农场
查看>>
DD_belatedPNG,解决 IE6 不支持 PNG-24 绝佳解决方案
查看>>
mysql常用知识点
查看>>
JAVA学习--反射基本知识
查看>>
Python-RabbitMQ(持久化)
查看>>
从零开始学习Sencha Touch MVC应用之二
查看>>
Javascript详解
查看>>
bzoj 1774: [Usaco2009 Dec]Toll 过路费
查看>>
JAVA实现AES 解密报错Input length must be multiple of 16 when decrypting with padded cipher
查看>>
【矩阵乘法】[NOI2012]随机数生成器 /LuoGu P2044
查看>>
无线认证方案1
查看>>
django实战模拟博客系统
查看>>
使用MySQLMTOP监控MySQL性能
查看>>
eclipse中javadoc中文乱码
查看>>
C#用WebClient下载File时操作超时的问题
查看>>
phpcms 调用全站任何模型数据PC标签
查看>>
linux journel
查看>>