spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Indu Chaube <prakash.i...@gmail.com>
Subject Need Help to display output of the the command on UI
Date Thu, 08 Jan 2015 05:20:53 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message