[Abnormal] java.lang.NoClassDefFoundError: com / alibaba / fastjson / JSON

See on the History of service is an exception:
java.lang.NoClassDefFoundError: COM / alibaba / FASTJSON / JSON

Then you'd have to add Json jar package: `FASTJSON-1.2.58.jar`:
the Spark-the Submit \
--name OnLineLogAnalysisTest1 \
--class com.importpack.OnLineLogAnalysis \
--master the Yarn \
the --deploy the MODE-Cluster \
Memory. 1G---driver \
--executor-Memory. 1G \
--executor-Cores. 1 \
--num-Executors. 1 \
--packages org.influxdb: influxdb Java-: 2.5, org.apache.spark: Spark-Streaming 0-10_2.11--kafka: 2.4.2 \
--jars /home/hadoop/lib/fastjson-1.2.58.jar \
--driver-class-path /home/hadoop/lib/fastjson-1.2.58 .jar \ ----> guarantee also added to the driver in
/home/hadoop/lib/ruozetest-1.0.jar

Guess you like

Origin www.cnblogs.com/huomei/p/12103473.html