Skip to content
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

Feature request: bare minimum sample project for spark streaming + message hub #3

Open
snowch opened this issue Oct 30, 2016 · 6 comments

Comments

@snowch
Copy link

snowch commented Oct 30, 2016

Hi @DTAIEB, the streaming-twitter example comes up a lot when searching online for spark streaming + messagehub. However, as a scala noob I find it difficult to extract just the bits relating to spark streaming + messagehub.

It would be great if you had a bare minimum sample project (helloSparkStreamingMessageHub?) that could be used as a template for those who want to get started with spark streaming + messagehub without needing to understand all the twitter code or using an 'unoficial' jar file like:

%AddJar https://github.com/ibm-messaging/message-hub-samples/raw/master/java/message-hub-login-library/messagehub.login-1.0.0.jar
%Addjar https://github.com/ibm-messaging/iot-messgehub-spark-samples/releases/download/v0.1/streaming-kafka.jar
@DTAIEB
Copy link

DTAIEB commented Oct 30, 2016

@snowch That's a great idea! I'll put it on the list

@snowch
Copy link
Author

snowch commented Oct 30, 2016

Thanks @DTAIEB!

@didnotgetagoodname
Copy link

+1

1 similar comment
@allisonjberman
Copy link

+1

@allisonjberman
Copy link

I'm getting the error:
object samples is not a member of package com.ibm.cds.spark
import com.ibm.cds.spark.samples.config.DemoConfig

How do I import the jar into scala with sbt build?

@vabarbosa
Copy link
Member

vabarbosa commented Aug 7, 2017

@allisonjberman you can include the jar in your project's lib/ directory (https://stackoverflow.com/a/43073476)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants