How to transform Strings from csv to Apache Spark MLlib
<p>I want to load data from CSV and prepare them to a multiclass classification or Regression MLlib algorithm on Apache Spark in Java. Now my CSV has 3 columns:</p>

<pre><code>id,main_user,users
1,bob,"bob,charlie,lee,john"
1,grorge,"george,charlie,smith"
2,harvey,"harvey,marley,bob"
2,smith,"smith,name1,name2"
3,william,"william,charlie,george"
3,.....etc...
</code></pre>

<p>How do I best transform the strings? column 1 and 2. 
I would appreciate any example.</p>