Which of the following SparkSession functions returns a DataFrameReader
A
createDataFrame(..)
B
emptyDataFrame(..)
C
read(..)Correct Answer
D
readStream(..)
QUESTION 4 OF 4
When using a notebook and a spark session. We can read a CSV file. Which of the following can be used to view the first couple thousand characters of a file?
A
%fs dir /mnt/training/wikipedia/pageviews/
B
%fs ls /mnt/training/wikipedia/pageviews/
C
%fs head /mnt/training/wikipedia/pageviews/pageviews_by_second.tsvCorrect Answer