I pasted the below code in a DSX notebook in one cell and got %%scala not found. Then I separated it out into 3 cells and scala directive error was gone but I got this below error. Can you please help ?
pixiedustRunner.scala:38: error: object cds is not a member of package com.ibm
val demo = com.ibm.cds.spark.samples.PixiedustStreamingTwitter
^
one error found
I pasted the below code in a DSX notebook in one cell and got %%scala not found. Then I separated it out into 3 cells and scala directive error was gone but I got this below error. Can you please help ?
pixiedustRunner.scala:38: error: object cds is not a member of package com.ibm val demo = com.ibm.cds.spark.samples.PixiedustStreamingTwitter ^ one error found
import pixiedust
twitterConsumerKey = ""
twitterConsumerSecret = ""
twitterAccessToken = ""
twitterAccessTokenSecret = ""
toneAnalyzerPassword = ""
toneAnalyzerUserName = ""
%%scala val demo = com.ibm.cds.spark.samples.PixiedustStreamingTwitter demo.setConfig("twitter4j.oauth.consumerKey",twitterConsumerKey) demo.setConfig("twitter4j.oauth.consumerSecret",twitterConsumerSecret) demo.setConfig("twitter4j.oauth.accessToken",twitterAccessToken) demo.setConfig("twitter4j.oauth.accessTokenSecret",twitterAccessTokenSecret) demo.setConfig("watson.tone.url","https://gateway.watsonplatform.net/tone-analyzer/api") demo.setConfig("watson.tone.password",toneAnalyzerPassword) demo.setConfig("watson.tone.username",toneAnalyzerUserName) demo.setConfig("checkpointDir", System.getProperty("user.home") + "/pixiedust/ssc")
from pixiedust_twitterdemo import *
twitterDemo()