-
Notifications
You must be signed in to change notification settings - Fork 86
Using cassandra #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
if you don't need MongoDB and SOLR, you can remove the SolrBolt.java and MongodBolt.java files, also you might have to change few lines in the BoltBuilder since BoltBuilder depends on these classes. Or you can keep those files as is and remove the binding in the Topology.java file where these bolts are added to the topology. I haven't tried Cassandra integration but you can check this: |
Also the code I have was written for Storm 0.10.0 and the current version is 1.0.1. To make it work for 1.0.1 you have to do the following:
|
@soniclavier Excellent! Thanks.. If I want to use hdfs but not mongo I still need to remove mongo and solr files? Parts where I updated pom.xml:
I changed all
Error I am getting:
My SpountBuilder:
|
pom.xml should have the following.
|
@soniclavier So I was having too many issues so I downgraded to 0.10.1; so I won't have to change? So it compiles fine and creates the jar,(I think it works now) but sinkbolt should be printing the kafka output in the terminal correct? (or maybe not, since storm says - 'topology submitted')
p.s. why in the ui, the spout is showing up as 'kafka-spout' instead of 'SpoutBuilder'. I don't see kafka-spout |
hi, I executed same code you have written. Original Code - val predictionAndLabels = result.map { row => Modified Code - val predictionAndLabels = model.transform(test).rdd.map { row => val metrics = new BinaryClassificationMetrics(predictionAndLabels) I get error when i do metrics.areaUnderROC() 16/10/14 19:19:09 ERROR TaskSetManager: Task 0 in stage 130.0 failed 1 times; aborting job Driver stacktrace: |
@soniclavier Hey great work and the blog! I was trying the storm kafka code. I'm interested to try kafka-> storm-> cassandra or hadoop.. I'm sorry can you tell me which code blocks needs to be commented out if I don't want to use mongodb or solr? Alll java files in
bolt
folder and Topology file?I have storm installed and on path, but when I run:

Also where do I define the 'type', like if I want to use only mongo?The text was updated successfully, but these errors were encountered: