title: Error while trying to write on parquet file in datastage 11.7 (File_Connector_20,0: java.lang.NoClassDefFoundError: org.apache.hadoop.fs.FileSystem)
body: <p>we have recently upgraded the DataStage from 9.1 to 11.7 on Server AIX 7.1 .
  and i'm trying to use the new connector &quot;File Connector&quot; to write on parquet file. i created simple job takes from teradata as a source and write on the parquet file as a target.
  <a href="https://i.stack.imgur.com/vE3mv.png" rel="nofollow noreferrer">Image of the job</a></p>
  <p>but facing below error :</p>
  <pre><code>&gt; File_Connector_20,0: java.lang.NoClassDefFoundError: org.apache.hadoop.fs.FileSystem
      at java.lang.J9VMInternals.prepareClassImpl (J9VMInternals.java)
      at java.lang.J9VMInternals.prepare (J9VMInternals.java: 304)
      at java.lang.Class.getConstructor (Class.java: 594)
      at com.ibm.iis.jis.utilities.dochandler.impl.OutputBuilder.&lt;init&gt; (OutputBuilder.java: 80)
      at com.ibm.iis.jis.utilities.dochandler.impl.Registrar.getBuilder (Registrar.java: 340)
      at com.ibm.iis.jis.utilities.dochandler.impl.Registrar.getBuilder (Registrar.java: 302)
      at com.ibm.iis.cc.filesystem.FileSystem.getBuilder (FileSystem.java: 2586)
      at com.ibm.iis.cc.filesystem.FileSystem.writeFile (FileSystem.java: 1063)
      at com.ibm.iis.cc.filesystem.FileSystem.process (FileSystem.java: 935)
      at com.ibm.is.cc.javastage.connector.CC_JavaAdapter.run (CC_JavaAdapter.java: 444)
  </code></pre>
  <p>i followed the steps in below link :
  <a href="https://www.ibm.com/support/knowledgecenter/SSZJPZ_11.7.0/com.ibm.swg.im.iis.conn.s3.usage.doc/topics/amaze_file_formats.html" rel="nofollow noreferrer">https://www.ibm.com/support/knowledgecenter/SSZJPZ_11.7.0/com.ibm.swg.im.iis.conn.s3.usage.doc/topics/amaze_file_formats.html</a></p>
  <p>1- i uploaded the jar files into &quot;/ds9/IBM/InformationServer/Server/DSComponents/jars&quot;</p>
  <p>2- added them to CLASSPATH in agent.sh then restarted the datastage.</p>
  <p>3- i have set The environment variable CC_USE_LATEST_FILECC_JARS  to the value parquet-1.9.0.jar:orc-2.1.jar.</p>
  <p>i tried also to add the CLASSPATH as an environment variable in the job but not worked.</p>
  <p>noting that i'm using <code>Local</code> in File System.</p>
  <p>so any hint is appreciated as i'm searching a lot time ago.
  Thanks in advance,</p>