flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandeep L <sandeepvre...@outlook.com>
Subject Error: Could not find or load main class org.apache.flume.tools.GetJavaProperty
Date Tue, 11 Jun 2013 09:57:30 GMT
Hi,

When we are trying to write data to HBase from flume we are getting following error

$ bin/flume-ng agent -n a1 -c conf -f conf/example.conf

Info: Sourcing environment configuration script /home/xyz/apache-flume-1.3.1-bin/conf/flume-env.sh
Info: Including Hadoop libraries found via (/home/xyz/hadoop-1.0.2/bin/hadoop) for HDFS access
Error: Could not find or load main class org.apache.flume.tools.GetJavaProperty
Info: Excluding /home/xyz/hadoop-1.0.2/libexec/../lib/slf4j-api-1.4.3.jar from classpath
Info: Excluding /home/xyz/hadoop-1.0.2/libexec/../lib/slf4j-log4j12-1.4.3.jar from classpath
Info: Excluding /home/xyz/hbase-0.94.1/lib/slf4j-api-1.4.3.jar from classpath
Info: Excluding /home/xyz/hbase-0.94.1/lib/slf4j-log4j12-1.4.3.jar from classpath
Info: Including HBASE libraries found via (/home/xyz/hbase-0.94.1/bin/hbase) for HBASE access
Info: Excluding /home/xyz/hbase-0.94.1/lib/slf4j-api-1.4.3.jar from classpath
Info: Excluding /home/xyz/hbase-0.94.1/lib/slf4j-log4j12-1.4.3.jar from classpath
Info: Excluding /home/xyz/hadoop-1.0.2/libexec/../lib/slf4j-api-1.4.3.jar from classpath
Info: Excluding /home/xyz/hadoop-1.0.2/libexec/../lib/slf4j-log4j12-1.4.3.jar from classpath
Info: Excluding /home/xyz/hbase-0.94.1/lib/slf4j-api-1.4.3.jar from classpath
Info: Excluding /home/xyz/hbase-0.94.1/lib/slf4j-log4j12-1.4.3.jar from classpath

Following is our flume configuration file:
a1.sources = r1
a1.sinks = k1
a1.channels = c1

a1.sources.r1.type = spooldir
a1.sources.r1.spoolDir = /home/xyz/FlumeFiles
a1.sources.r1.fileSuffix = .COMPLETED

a1.sinks.k1.type = org.apache.flume.sink.hbase.HBaseSink
a1.sinks.k1.table = flumetest
a1.sinks.k1.columnFamily = colfam1
a1.sinks.k1.serializer.keyType = timestamp
a1.sinks.k1.serializer.rowPrefix = 1
a1.sinks.k1.serializer.suffix = timestamp
a1.sinks.k1.serializer= org.apache.flume.sink.hbase.SimpleHbaseEventSerializer

a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100

a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1

Can someone please help us to resolve this issue.

Thanks,
Sandeep.
 		 	   		  
Mime
View raw message