Thanks for the reply Hari,

I will try the below command, and let you know the result.

On Thu, Jun 28, 2012 at 7:52 AM, Hari Shreedharan <hshreedha...@cloudera.com
> wrote:

> Vijay,
>
> You are asking flume to look at /conf(rather than ./conf) for the log4j
> properties file. Please change the command to:
>
> bin/flume-ng agent -n agent1 -c conf -f conf/agent1.conf
>
> Also please remove the line you added to the log4j properties file. It is
> not valid because LifecycleSupervisor is not a Log4jAppender. Just leave
> the config as specified and you will see the log in the same folder you are
> running the agent from, or specify -Dflume.root.logger=INFO in the flume
> agent command,console to have flume dump the logs to console.
>
>
>
> Thanks
> Hari
>
>
> --
> Hari Shreedharan
>
> On Wednesday, June 27, 2012 at 7:10 PM, vijay k wrote:
>
> Can anyone respond on the below issue?
>
> On Tue, Jun 26, 2012 at 8:20 PM, vijay k <k.vija...@gmail.com> wrote:
>
>
> Hi,
>
> I have run the flume-ng, but it is not moving forward, it's got hang up,
> below are the my agent1.conf config file
>
>
>
> agent1.conf configuaration
> ---------------------------------
>
>
> agent1.sources = tail
> agent1.channels = MemoryChannel-2
> agent1.sinks = HDFS
> agent1.sources.tail.type = exec
> agent1.sources.tail.command = tail -F /var/log/syslog.1
> agent1.sources.tail.channels = MemoryChannel-2
> agent1.sinks.HDFS.channel = MemoryChannel-2
> agent1.sinks.HDFS.type = hdfs
> agent1.sinks.HDFS.hdfs.path = hdfs://10.5.114.110:9000/flume
> agent1.sinks.HDFS.hdfs.file.Type = DataStream
> agent1.channels.MemoryChannel-2.type = memory
>
>
>
> I have run agent1.conf by using following command:
>
>
> #bin/flume-ng agent -n agent1 -c /conf -f conf/agent1.conf
>
>
>
>
>
> root@md-trngpoc1:/usr/local/flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT/conf#
> ls -lrt
> total 24
> -rw-r--r-- 1 root root 2070 2012-06-26 12:57 log4j.properties
> -rw-r--r-- 1 root root 1132 2012-06-26 12:57 flume-env.sh.template
> -rw-r--r-- 1 root root 1661 2012-06-26 12:57 flume-conf.properties.template
> -rw-r--r-- 1 root root 1661 2012-06-26 19:35 flume.conf
> -rw-r--r-- 1 root root 1132 2012-06-26 19:36 flume-env.sh
> -rw-r--r-- 1 root root  438 2012-06-26 19:38 agent1.conf
>
>
> root@md-trngpoc1:/usr/local/flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT/conf#
> chmod 775 agent1.conf
>
>
> root@md-trngpoc1:/usr/local/flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT/conf#
> cd ..
>
>
> Here, i am getting the following error.
>
>
>
> root@md-trngpoc1:/usr/local/flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT#
> bin/flume-ng agent -n agent1 -c /conf -f conf/agent1.conf
>
> + exec /usr/lib/jvm/java-6-sun/bin/java -Xmx20m -cp
> '/conf:/usr/local/flume_dir/flume/flume-1.2.0-incubating-SNAPSHOT/lib/*'
> -Djava.library.path= org.apache.flume.node.Application -n agent1 -f
> conf/agent1.conf
> log4j:WARN No appenders could be found for logger
> (org.apache.flume.lifecycle.LifecycleSupervisor).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
>
> moreover, i have added the
> 'log4j.appender.LOGFILE=org.apache.flume.lifecycle.LifecycleSupervisor'
>  into the log4j.properties file, but no luck, getting same error.
>
>
> Please let me know if am doing anything wrong?
>
> Thanks,
> Vijay
>
>
>
>
>
>
>
>

Reply via email to