You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by rapelly kartheek <ka...@gmail.com> on 2014/10/13 08:26:09 UTC

Confusion with webUI parameters

Hi,

I have some confusion with display of spark WebUI. I am trying to replicate
an rdd and understand from the webUI.

First , I have this code:
val logData = sc.textFile("hdfs:/text-data/text-data.txt").cache()
    val parts=logData.repartition(10)
      println(parts.partitions.length)

I have uploaded the corresponding webUI as shot-1 in this mail.

1) Why is it that the Total Partitions=5 and "10 partitions" is displayed
at the top of second table(re-partitioning).  I feel both of them should be
consistent, right?
2) Each partition is displayed twice even though its replicated only once.
3)What I understand from the  "data distribution" table is the rdd is
replicated twice.

Can someone please correct me in my understanding, if anything is wrong.

Secondly, I have this code:
val logData =
sc.textFile("hdfs:/text-data/text-data.txt").persist(StorageLevel.MEMORY_ONLY_2)
    val parts=logData.repartition(10)
      println(parts.partitions.length)

I have uploaded the corresponding webUI as shot-2 in this mail.

1) Here I see that the total number of partitions is 5 in both places.
2)As far as I perceive, there is no rdd replication taking place, even
though the StorageLevel depicts as Memory Deserialized 2x Replicated .
3)Data distribution also infers the same thing as in 2).

One more thing is, why is it that all the work is being dumped on one
node(most of the times)  when the other is jobless.

Can someone please help me out in getting the right understanding.
Karthik