title: Efficient Count Distinct with Apache Spark
body: <p>100 million customers click 100 billion times on the pages of a few web sites (let's say 100 websites). And the click stream is available to you in a large dataset.</p>
  
  <p>Using the abstractions of Apache Spark, what is the most efficient way to count distinct visitors per website?</p>