简体   繁体   English

尝试在数据阶段 11.7 中写入镶木地板文件时出错(File_Connector_20,0: java.lang.NoClassDefFoundError: org.apache.Z0238775C7BD96E2EAB9803)

[英]Error while trying to write on parquet file in datastage 11.7 (File_Connector_20,0: java.lang.NoClassDefFoundError: org.apache.hadoop.fs.FileSystem)

we have recently upgraded the DataStage from 9.1 to 11.7 on Server AIX 7.1.我们最近在 Server AIX 7.1 上将 DataStage 从 9.1 升级到了 11.7。 and i'm trying to use the new connector "File Connector" to write on parquet file.我正在尝试使用新的连接器“文件连接器”来写入镶木地板文件。 i created simple job takes from teradata as a source and write on the parquet file as a target.我创建了简单的作业,从 teradata 作为源并在镶木地板文件上写入作为目标。 Image of the job工作图片

but facing below error:但面临以下错误:

> 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.<init> (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)

i followed the steps in below link: https://www.ibm.com/support/knowledgecenter/SSZJPZ_11.7.0/com.ibm.swg.im.iis.conn.s3.usage.doc/topics/amaze_file_formats.html i followed the steps in below link: https://www.ibm.com/support/knowledgecenter/SSZJPZ_11.7.0/com.ibm.swg.im.iis.conn.s3.usage.doc/topics/amaze_file_formats.html

1- i uploaded the jar files into "/ds9/IBM/InformationServer/Server/DSComponents/jars" 1-我将 jar 文件上传到“/ds9/IBM/InformationServer/Server/DSComponents/jars”

2- added them to CLASSPATH in agent.sh then restarted the datastage. 2-将它们添加到 agent.sh 中的 CLASSPATH,然后重新启动数据阶段。

3- i have set The environment variable CC_USE_LATEST_FILECC_JARS to the value parquet-1.9.0.jar:orc-2.1.jar. 3-我已将环境变量 CC_USE_LATEST_FILECC_JARS 设置为值 parquet-1.9.0.jar:orc-2.1.jar。

i tried also to add the CLASSPATH as an environment variable in the job but not worked.我还尝试将 CLASSPATH 作为环境变量添加到作业中,但没有奏效。

noting that i'm using Local in File System.注意到我在文件系统中使用Local

so any hint is appreciated as i'm searching a lot time ago.所以任何提示都值得赞赏,因为我很久以前就在搜索。 Thanks in advance,提前致谢,

Which File System mode you are using?您正在使用哪种文件系统模式? If you are using Native HDFS as File System mode, then you would need to configure CLASSPATH to include some third party jars.如果您使用Native HDFS作为文件系统模式,那么您需要配置 CLASSPATH 以包含一些第三方 jars。

Perhaps these links should provide you with some guidance.也许这些链接应该为您提供一些指导。

Note : Based on the hadoop distribution and version you are using, the version of the jars could be different.注意:根据您使用的 hadoop 发行版和版本,jars 的版本可能不同。

If the above information does not help in resolving the issue, then you may have to reach out to IBM Support to get this addressed.如果上述信息无助于解决问题,那么您可能需要联系 IBM 支持来解决此问题。

TO use File Connector, there is no need to add CLASSPATH in agent.sh unless you want to import HDFS files from IMAM.要使用文件连接器,无需在 agent.sh 中添加 CLASSPATH,除非您想从 IMAM 导入 HDFS 文件。

If your requirement is reading Parquet files, then set $CC_USE_LATEST_FILECC_JARS=parquet-1.9.0.jar $FILECC_PARQUET_AVRO_COMPAT_MODE=TRUE如果您的要求是读取 Parquet 文件,请设置 $CC_USE_LATEST_FILECC_JARS=parquet-1.9.0.jar $FILECC_PARQUET_AVRO_COMPAT_MODE=TRUE

If you are still seeing issue, then run job with $CC_MSG_LEVEL=2 and open IBM support case along with job design, FULL job log and Version.xml file from Engine tier.如果您仍然看到问题,则使用 $CC_MSG_LEVEL=2 运行作业并打开 IBM 支持案例以及来自引擎层的作业设计、完整作业日志和 Version.xml 文件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Hadoop / Eclipse - 线程“main”中的异常java.lang.NoClassDefFoundError:org / apache / hadoop / fs / FileSystem - Hadoop/Eclipse - Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FileSystem SSH 线程“主”中的异常 java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream - SSH Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream 线程“ main”中的异常java.lang.NoClassDefFoundError:org / apache / hadoop / fs / FSDataInputStrea - Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStrea org.apache.hadoop.fs.FileSystem:提供者org.apache.hadoop.hdfs.DistributedFileSystem不是子类型 - org.apache.hadoop.fs.FileSystem: Provider org.apache.hadoop.hdfs.DistributedFileSystem not a subtype 读取Parquet时java.lang.NoClassDefFoundError:org / apache / avro / LogicalType - java.lang.NoClassDefFoundError: org/apache/avro/LogicalType while reading Parquet java.lang.NoClassDefFoundError: org/apache/hadoop/tracing/TraceAdminProtocol - java.lang.NoClassDefFoundError: org/apache/hadoop/tracing/TraceAdminProtocol sqoop:java.lang.NoClassDefFoundError:org / apache / hadoop / mapreduce / InputFormat - sqoop: java.lang.NoClassDefFoundError: org/apache/hadoop/mapreduce/InputFormat java.lang.NoClassDefFoundError:org / apache / hadoop / conf / Configuration - java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration java.lang.NoClassDefFoundError:org.apache.hadoop.hbase.HBaseConfiguration - java.lang.NoClassDefFoundError: org.apache.hadoop.hbase.HBaseConfiguration Hbase java.lang.NoClassDefFoundError:org / apache / hadoop / hbase / MasterNotRunningException - Hbase java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/MasterNotRunningException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM