title: java.lang.NoSuchMethodError: com.google.common.collect.Sets.newConcurrentHashSet
body: <p>I am trying to use the sstableloader for bulk loading to Cassandra. I am trying to use code from here : <a href="https://github.com/yukim/cassandra-bulkload-example" rel="nofollow noreferrer">https://github.com/yukim/cassandra-bulkload-example</a></p>
  
  <p>I run into java.lang.NoSuchMethodError: com.google.common.collect.Sets.newConcurrentHashSet exception during running of application. The application imports the following libraries : </p>
  
  <pre><code>import java.io.BufferedReader;
  import java.io.File;
  import java.io.FileReader;
  import java.io.IOException;
  import java.text.SimpleDateFormat;
  import java.util.List;
  
  import org.supercsv.io.CsvListReader;
  import org.supercsv.prefs.CsvPreference;
  
  import org.apache.cassandra.config.Config;
  import org.apache.cassandra.dht.Murmur3Partitioner;
  import org.apache.cassandra.exceptions.InvalidRequestException;
  import org.apache.cassandra.io.sstable.CQLSSTableWriter;
  </code></pre>
  
  <p>The exception is coming from the following line of code :</p>
  
  <pre><code>    // Prepare SSTable writer
  CQLSSTableWriter.Builder builder = CQLSSTableWriter.builder();
  </code></pre>
  
  <p>I am using the following external jars for my application :</p>
  
  <pre><code>super-csv-2.0.0.jar
  cassandra-all-3.4.jar
  gradle-wrapper.jar
  slf4j-api-1.7.19.jar
  concurrentlinkedhashmap-lru-1.3.jar
  slf4j-simple-1.7.19.jar
  guava.jar
  google-collections-1.0.jar
  </code></pre>
  
  <p>I am unable to figure which libraries i am missing.</p>
  
  <p><a href="https://i.stack.imgur.com/Ifa89.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ifa89.png" alt="enter image description here"></a></p>
  
  <p>Digging into com.google.comman.collect.Sets i cannot find the newConcurrentHashSet method. However the code seems to be calling it</p>
  
  <p><a href="https://i.stack.imgur.com/ED05C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ED05C.png" alt="enter image description here"></a></p>