错误:无法找到或加载主类org.apache.flume.node.Application - 在hadoop 1.2.1版上安装flume [英] Error: Could not find or load main class org.apache.flume.node.Application - Install flume on hadoop version 1.2.1

查看:1542
本文介绍了错误:无法找到或加载主类org.apache.flume.node.Application - 在hadoop 1.2.1版上安装flume的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个hadoop集群,其中1个主从节点,另一个是从属节点。现在,我想创建一个槽来获取主机上所有群集的日志。但是,当我尝试从tarball安装flume时,我总是得到:
错误:无法找到或加载主类org.apache.flume.node.Application
因此,请帮助我找到答案,或者是在我的集群上安装flume的最佳方式。
非常感谢!

解决方案

我知道这个问题差不多一年了,但我看到了!

当您使用sudo bin / flume-ng设置您的agnet时,请务必指定代理配置所在的文件。

- conf-file flume_Agent.conf - > -f conf / flume_Agent.conf



诀窍!


I have built a hadoop cluster which 1 master-slave node and the other is slave. And now, I wanna build a flume to get all log of the cluster on master machine. However, when I try to install flume from tarball and I always get: Error: Could not find or load main class org.apache.flume.node.Application So, please help me to find the answer, or the best way to install flume on my cluster. many thanks!

解决方案

I know its been almost a year for this question, but I saw it!

When you set your agnet using sudo bin/flume-ng.... make sure to specify the file where the agent configuration is.

--conf-file flume_Agent.conf -> -f conf/flume_Agent.conf

This did the trick!

这篇关于错误:无法找到或加载主类org.apache.flume.node.Application - 在hadoop 1.2.1版上安装flume的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆