title: HDFS C Driver Error
body: <p>When I try to use HDFS C Driver, I get this error =></p>
  
  <pre><code>(unable to get stack trace for java.lang.NoClassDefFoundError exception: ExceptionUtils::getStackTrace error.)
  </code></pre>
  
  <p>But I added the output of <code>hadoop classpath --glob</code> to my system CLASSPATH var (Mint Linux 18.1 ) and nothing changed.</p>
  
  <p>Hadoop ver : 2.7.3</p>
  
  <p>my c code : </p>
  
  <pre><code>    hdfsFS fs = hdfsConnect("default",9000);
  const char * writePath = "/test.txt";
  hdfsFile writeFile = hdfsOpenFile(fs,writePath,0,sizeof(writePath),1,1024);
      if(!writeFile){
          printf("Error Opening HDFS File");
          exit(0);
      }
      const char * buffer= "Test ---- &amp;^^$#@s";
      tSize num_written_bytes = hdfsWrite(fs, writeFile, (void*)buffer, strlen(buffer)+1);
      if (hdfsFlush(fs, writeFile)) {
          fprintf(stderr, "Failed to 'flush' %s\n", writePath);
          exit(-1);
      }
      hdfsCloseFile(fs, writeFile);
  </code></pre>
  
  <p>System CLASSPATH var : </p>
  
  <pre><code>/usr/local/hadoop/etc/hadoop:/usr/local/hadoop/share/hadoop/common/lib/mockito-all-1.8.5.jar:/usr/local/hadoop/share/hadoop/common/lib/xmlenc-0.52.jar:/usr/local/hadoop/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-digester-1.8.jar:/usr/local/hadoop/share/hadoop/common/lib/stax-api-1.0-2.jar:/usr/local/hadoop/share/hadoop/common/lib/hadoop-auth-2.7.3.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-net-3.1.jar:/usr/local/hadoop/share/hadoop/common/lib/zookeeper-3.4.6.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-logging-1.1.3.jar:/usr/local/hadoop/share/hadoop/common/lib/jersey-server-1.9.jar:/usr/local/hadoop/share/hadoop/common/lib/httpcore-4.2.5.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-io-2.4.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-httpclient-3.1.jar:/usr/local/hadoop/share/hadoop/common/lib/jetty-util-6.1.26.jar:/usr/local/hadoop/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar
  </code></pre>