I am working on Hortonworks.I have stored tweets from Twitter to Kafka topic using flume.I am performing sentiment analysis on tweets using Kafka as a Producer and Spark as a Consumer using Scala on Spark-shell. But I want to fetch only specific content from tweets like Text, HashTag, Sentiment Analysis result (tweets is positive or negative), words from the tweets which I have selected as a positive or negative word. My training data is Data.txt.