-
Notifications
You must be signed in to change notification settings - Fork 13
Analyzing CodingSpectator data
reprogrammer edited this page Nov 26, 2011
·
4 revisions
Use the edu.illinois.codingspectator.logstocsv program to generate the CSV file.
Perform the following steps to import the CSV into the database:
-
cd CodingSpectator/plug-ins/edu.illinois.codingspectator.csvtosql/ant. ant clean; antcd binCS_CSV="/path/to/logs.csv" java -XX:MaxPermSize=512m -Xms40m -Xmx20G -jar csvtosql.jar
Follow the steps below to interact with the database from commond line. I found the following instructions on the web.
- Get
sqltool.jarandhsqldb.jarfromCodingSpectator/plug-ins/org.hsqldb/ant/downloads/hsqldb-2.2.6/hsqldb/lib/. cd CodingSpectator/plug-ins/edu.illinois.codingspectator.csvtosql/ant/bin- Get the Eclipse UDC data file from our private CodingSpectator SVN directory under Experiment/UDCData/commands.csv and copy it into this directory.
java -XX:MaxPermSize=512m -Xms40m -Xmx20G -jar sqltool.jar --rcFile ../../hsqldb/sqltool.rc db_file- A prompt would appear after successfully connecting (this could take several minutes depending on the size of the database).
- Enter
\i /path/to/CodingSpectator/scripts/sql-script.sql