title: Error while building kafka source using gradle
body: <p>I have executed the following commands:</p>
  
  <pre><code>   $cd /opt/kafka-0.8.2.1-src/
     $gradle
  </code></pre>
  
  <p>Following error is coming:</p>
  
  <p>Building project 'core' with Scala version 2.10.4
  :downloadWrapper</p>
  
  <p>FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li><p>What went wrong:
  Could not create service of type TaskArtifactStateCacheAccess using TaskExecutionServices.createCacheAccess().</p>
  
  <blockquote>
    <p>Failed to create parent directory '/opt/kafka-0.8.2.1-src/.gradle' when creating directory '/opt/kafka-0.8.2.1-src/.gradle/2.4/taskArtifacts'</p>
  </blockquote></li>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</p></li>
  </ul>
  
  <p>BUILD FAILED</p>
  
  <p>Total time: 1.511 secs</p>
  
  <p>I cannot figure out what is going wrong here. </p>