A CSV Connector for WSO2 BAM
I’ve worked on a small tool to publish your spreadsheets (after converting to CSVs of course!) to WSO2 BAM.
The cool thing is you can publish 1 (or 1000s) of spread sheets to WSO2 BAM, and use the HiveAnalytics UI to slice and dice them to produce neat results.
So, you need maven to build and run this (and of course, WSO2 BAM up and running). Here are the steps:
1. Download and unzip the source from this link.
2. Run ‘mvn clean install’ at the unzipped location.
3. Now run the exec command in maven as per the following example: ‘mvn exec:java -Dexec.mainClass=org.wso2.carbon.bam.CSVAgent -DcsvFile=../ExportCustomerAccounts.csv -DstreamName=CustomerAccounts -DstreamVersion=1.2.0′
Here is what happens:
“CustomerAccounts” is the stream that will get created out of the CSV file, “ExportCustomerAccounts.csv”. All streams are versioned in BAM, so this stream will have the version “1.2.0″. Versioning means you can publish different versions of the CSV (columns deleted or added) with different versions.
The potential of this is you can publish any number of CSVs to BAM and make use of the SQL-like Hive query language to do joins and group bys to get valuable information out of your spread sheets.
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)