Last active
March 25, 2020 09:31
-
-
Save pavangadagi/e9ff6be5642859e24873e67bf52f82ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int STREAM_INTERVAL_SEC = 60; | |
SparkConf sparkConf = new SparkConf().setAppName("CryptoStockAnalysis").setMaster("local[*]"); | |
JavaStreamingContext streamingContext = new JavaStreamingContext( | |
sparkConf, | |
Durations.seconds(STREAM_INTERVAL_SEC) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment