incubator-chukwa-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From frogprince <liuli....@gmail.com>
Subject mysql connector problem
Date Wed, 28 Sep 2011 05:12:14 GMT
I tried to use mysql to record the metrics, but postprocess got the following
error in postprocess.log.

2011-09-28 01:31:56,420 INFO pool-1-thread-3 MetricDataLoader - Batch mode
inserted=48records.
2011-09-28 01:31:56,687 INFO pool-1-thread-2 MetricDataLoader - Batch mode
inserted=48records.
2011-09-28 01:31:56,699 INFO pool-1-thread-1 MetricDataLoader - Batch mode
inserted=3records.
2011-09-28 01:31:56,825 INFO pool-1-thread-3 MetricDataLoader - batchMode
commit done
2011-09-28 01:31:56,825 INFO pool-1-thread-3 MetricDataLoader - Saved
(chukwaagent,hadoop-chukwa) 4 sec. numOfRecords: 48
2011-09-28 01:31:56,825 INFO pool-1-thread-3 MetricDataLoader - StreamName:
chunkQueue_20110926_0.H.evt
2011-09-28 01:31:57,427 INFO pool-1-thread-2 MetricDataLoader - batchMode
commit done
2011-09-28 01:31:57,428 INFO pool-1-thread-2 MetricDataLoader - Saved
(chukwahttpsender,hadoop-chukwa) 2 sec. numOfRecords: 48
2011-09-28 01:31:57,428 INFO pool-1-thread-1 MetricDataLoader - batchMode
commit done
2011-09-28 01:31:57,428 INFO pool-1-thread-1 MetricDataLoader - Saved
(chukwahttpsender,hadoop-chukwa) 1 sec. numOfRecords: 3
2011-09-28 01:31:57,428 INFO pool-1-thread-1 MetricDataLoader - StreamName:
chunkQueue_20110926_1_00.R.evt
2011-09-28 01:31:57,792 ERROR pool-1-thread-1 DatabaseWriter -
java.lang.ClassNotFoundException: 
java.lang.ClassNotFoundException: 
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:169)
	at
org.apache.hadoop.chukwa.util.DriverManagerUtil.loadDriver(DriverManagerUtil.java:33)
	at
org.apache.hadoop.chukwa.util.DatabaseWriter.<init>(DatabaseWriter.java:72)
	at
org.apache.hadoop.chukwa.dataloader.MetricDataLoader.initEnv(MetricDataLoader.java:102)
	at
org.apache.hadoop.chukwa.dataloader.MetricDataLoader.run(MetricDataLoader.java:202)
	at
org.apache.hadoop.chukwa.dataloader.MetricDataLoader.call(MetricDataLoader.java:571)
	at
org.apache.hadoop.chukwa.dataloader.MetricDataLoader.call(MetricDataLoader.java:50)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
2011-09-28 01:31:57,812 ERROR pool-1-thread-3 DatabaseWriter -
java.lang.ClassNotFoundException: 
java.lang.ClassNotFoundException: 
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:169)
	at
org.apache.hadoop.chukwa.util.DriverManagerUtil.loadDriver(DriverManagerUtil.java:33)
	at
org.apache.hadoop.chukwa.util.DatabaseWriter.<init>(DatabaseWriter.java:72)
	at
org.apache.hadoop.chukwa.dataloader.MetricDataLoader.initEnv(MetricDataLoader.java:102)
	at
org.apache.hadoop.chukwa.dataloader.MetricDataLoader.run(MetricDataLoader.java:202)
	at
org.apache.hadoop.chukwa.dataloader.MetricDataLoader.call(MetricDataLoader.java:571)
	at
org.apache.hadoop.chukwa.dataloader.MetricDataLoader.call(MetricDataLoader.java:50)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)

The same error occured while I was using HICC. HICC log said the same error
that driver classnotfound But I'm sure that the mysql connector/J is in
chukwa/lib. 
MySQL version: 5.1.59
MySQL connector/J: 5.1.17
chukwa: 0.4

--
View this message in context: http://apache-chukwa.679492.n3.nabble.com/mysql-connector-problem-tp3375035p3375035.html
Sent from the Chukwa - Users mailing list archive at Nabble.com.

Mime
View raw message