Hi Folk,
I need to print output of the below command on Web UI

 val conf=new SparkConf().setMaster("local")
    val sc=new SparkContext(conf)
    val file1=sc.textFile("/var/log/dpkg.log")

    //Applying filter onto the data
    val data1=file1.filter(line => line.contains("installed"))
    <b style="color:red">{data1.count() } </b>

But it is printing on console. Any Idea how to do it. That will be great
help.


Thanks,
Indu

Reply via email to