Closed
Bug 534932
Opened 16 years ago
Closed 16 years ago
Set up new scripts for metrics on dm-kettle-stage01
Categories
(mozilla.org Graveyard :: Server Operations, task)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: Cww, Assigned: fox2mike)
References
Details
(Whiteboard: Waiting on Metrics)
1) svn up from https://svn.mozilla.com/projects/sumo/scripts/metrics
2) create ~/.kettle/kettle.properties from kettle.properties.dist filling in the appropriate data
3) run /path/to/pentaho/data-integration/kettle.sh -norep -file j_sumo_initialize.kjb
4) run /path/to/pentaho/data-integration/kettle.sh -norep -file j_populate_sumodw.kjb
5) Cronjob above to run every day at 4 AM
| Assignee | ||
Updated•16 years ago
|
Assignee: server-ops → shyam
I apparently should use the copy-paste more and stop trying to type. Here are updated instructions:
1) svn up from https://svn.mozilla.com/projects/sumo/trunk/scripts/metrics
2) create ~/.kettle/kettle.properties from kettle.properties.dist filling in
the appropriate data -- you'll need access details to the openfire database as well -- you can clobber the existing kettle.properties file
3) grant all permissions to the user of the sumodw database (full create permissions are needed for the initializations steps)
4) drop all existing tables in the sumo dw database.
5) cd /path/to/pentaho/data-integration/
6) run ./kitchen.sh -norep -file /path/to/j_sumo_initialize.kjb
7) reduce permissions to user of the sumodw database to just insert/update/delete
8) run ./kitchen.sh -norep -file /path/to/j_populate_sumodw.kjb
This will probably need to be done on prod at some point in the very near future
| Assignee | ||
Comment 2•16 years ago
|
||
An error occurred executing SQL:
SELECT count(*) as 'count',
null as user, null as article, null as lang, null as threadId, null as chatId, null as chatuser, null as status
FROM of_dump.fpSession
WHERE date_format( FROM_UNIXTIME(startTime/1000), "%Y-%m-%d" ) BETWEEN '2009-01-01' AND '2009-01-01'
AND transcript IS NULL;
SELECT command denied to user 'sumowiki'@'10.2.74.50' for table 'fpSession'
at org.pentaho.di.core.database.Database.openQuery(Database.java:1790)
at org.pentaho.di.trans.steps.tableinput.TableInput.doQuery(TableInput.java:214)
at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:127)
at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2889)
at org.pentaho.di.trans.steps.tableinput.TableInput.run(TableInput.java:345)
Caused by: java.sql.SQLException: SELECT command denied to user 'sumowiki'@'10.2.74.50' for table 'fpSession'
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3026)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1137)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1231)
at org.pentaho.di.core.database.Database.openQuery(Database.java:1751)
... 4 more
ERROR 16-12 15:52:05,715 - t_update_f_periodiccounts - Errors detected!
ERROR 16-12 15:52:05,747 - t_update_f_periodiccounts - Errors detected!
INFO 16-12 15:52:05,739 - Get kb lang activity.0 - Finished reading query, closing connection.
ERROR 16-12 15:52:05,739 - Get chats answered.0 - Unexpected error :
INFO 16-12 15:52:05,784 - Get kb lang activity.0 - Finished processing (I=5, O=0, R=0, W=5, U=0, E=0)
INFO 16-12 15:52:05,737 - Get active KB contributors.0 - Finished reading query, closing connection.
ERROR 16-12 15:52:05,736 - Get chat CSAT score.0 - Unexpected error :
INFO 16-12 15:52:05,736 - Get new chat contributors.0 - Finished reading query, closing connection.
ERROR 16-12 15:52:05,812 - Get chat CSAT score.0 - org.pentaho.di.core.exception.KettleDatabaseException:
An error occurred executing SQL:
SELECT avg(title) as 'average',
null as user, null as article, null as lang, null as threadId, null as chatId, null as chatuser, null as status
FROM sumo_dump.tiki_user_votings
LEFT JOIN sumo_dump.tiki_poll_options ON tiki_user_votings.optionId=tiki_poll_options.optionId
LEFT JOIN of_dump.fpSession ON (fpSession.sessionID = trim(leading 'feedback' from tiki_user_votings.id))
WHERE feedbackObjectType = "livechat"
AND tiki_user_votings.id regexp "feedback"
AND (title regexp "[1-5]")
AND date_format( FROM_UNIXTIME(startTime/1000), "%Y-%m-%d" ) BETWEEN '2009-01-01' AND '2009-01-01'
SELECT command denied to user 'sumowiki'@'10.2.74.50' for table 'tiki_user_votings'
at org.pentaho.di.core.database.Database.openQuery(Database.java:1790)
at org.pentaho.di.trans.steps.tableinput.TableInput.doQuery(TableInput.java:214)
at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:127)
at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2889)
at org.pentaho.di.trans.steps.tableinput.TableInput.run(TableInput.java:345)
Caused by: java.sql.SQLException: SELECT command denied to user 'sumowiki'@'10.2.74.50' for table 'tiki_user_votings'
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3026)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1137)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1231)
at org.pentaho.di.core.database.Database.openQuery(Database.java:1751)
... 4 more
INFO 16-12 15:52:05,726 - Get kb votes.0 - Finished reading query, closing connection.
INFO 16-12 15:52:05,723 - Get active contributors.0 - Finished reading query, closing connection.
INFO 16-12 15:52:05,723 - Get active Forum contributors.0 - Finished reading query, closing connection.
INFO 16-12 15:52:05,837 - Get chat CSAT score.0 - Finished reading query, closing connection.
| Assignee | ||
Comment 3•16 years ago
|
||
Still waiting on Cww/metrics for info + fixes and how to move forward. Or I forgot what else was left to be done. Cww mind jogging my memory a bit? :D
| Assignee | ||
Updated•16 years ago
|
Whiteboard: Waiting on Metrics
| Assignee | ||
Comment 6•16 years ago
|
||
Okay, first run :
INFO 07-01 19:16:32,921 - Kitchen - Finished!
INFO 07-01 19:16:32,921 - Kitchen - Start=2010/01/07 19:15:19.761, Stop=2010/01/07 19:16:32.921
INFO 07-01 19:16:32,921 - Kitchen - Processing ended after 1 minutes and 13 seconds (73 seconds total).
Second :
ERROR 07-01 19:55:02,492 - Get livechat users.0 - org.pentaho.di.core.exception.KettleDatabaseException:
An error occurred executing SQL:
SELECT
username, name, email,
date_format( from_unixtime(creationDate/1000), "%Y-%m-%d") as creationdate
FROM of_dump.ofUser
order by creationdate
SELECT command denied to user 'sumowiki'@'10.2.74.50' for table 'ofUser'
at org.pentaho.di.core.database.Database.openQuery(Database.java:1790)
at org.pentaho.di.trans.steps.tableinput.TableInput.doQuery(TableInput.java:214)
at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:127)
at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2889)
at org.pentaho.di.trans.steps.tableinput.TableInput.run(TableInput.java:345)
Caused by: java.sql.SQLException: SELECT command denied to user 'sumowiki'@'10.2.74.50' for table 'ofUser'
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3026)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1137)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1231)
at org.pentaho.di.core.database.Database.openQuery(Database.java:1751)
... 4 more
INFO 07-01 19:55:02,638 - Kitchen - Finished!
ERROR 07-01 19:55:02,638 - Kitchen - Finished with errors
INFO 07-01 19:55:02,638 - Kitchen - Start=2010/01/07 19:18:30.099, Stop=2010/01/07 19:55:02.638
INFO 07-01 19:55:02,639 - Kitchen - Processing ended after 36 minutes and 32 seconds (2192 seconds total).
| Assignee | ||
Comment 7•16 years ago
|
||
It's trying to get to a DB that doesn't exist :
An error occurred executing SQL:
SELECT
username, name, email,
date_format( from_unixtime(creationDate/1000), "%Y-%m-%d") as creationdate
FROM of_dump.ofUser
order by creationdate
The DB is openfire_chat_stage, it should just use table names, the properties file already has the DB names.
Whiteboard: Waiting on Metrics
| Assignee | ||
Comment 8•16 years ago
|
||
Reopen when you have more info!
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
Updated•11 years ago
|
Product: mozilla.org → mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•