Hi, Iâm trying to follow official pinot docs
https://docs.pinot.apache.org/users/tutorials/batch-data-ingestion-in-practice#executing-the-job-using-spark (different from
https://docs.pinot.apache.org/basics/data-import/batch-ingestion/spark) which is pain as well đ
Spark 2.4.8 with hadoop 2.7 (official build), running in local mode
Command:
export SPARK_HOME=/spark
export PINOT_ROOT_DIR=/pinot
export PINOT_VERSION=0.10.0
export PINOT_DISTRIBUTION_DIR=$PINOT_ROOT_DIR
cd ${PINOT_DISTRIBUTION_DIR}
${SPARK_HOME}/bin/spark-submit \
--verbose \
--class org.apache.pinot.tools.admin.command.LaunchDataIngestionJobCommand \
--master âlocal[2]â \
--deploy-mode client \
--conf âspark.driver.extraJavaOptions=-Dplugins.dir=${PINOT_DISTRIBUTION_DIR}/plugins-externalâ \
--conf âspark.driver.extraClassPath=${PINOT_DISTRIBUTION_DIR}/lib/pinot-all-${PINOT_VERSION}-jar-with-dependencies.jarâ \
local://${PINOT_DISTRIBUTION_DIR}/lib/pinot-all-${PINOT_VERSION}-jar-with-dependencies.jar \
-jobSpecFile /app/job-spec-spark.yaml
I copied pinot-batch-ingestion-spark-0.10.0-shaded.jar to spark/jars and getting error:
Exception in thread âmainâ java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
org/apache/spark/metrics/sink/MetricsServlet.<init>(Ljava/util/Properties;Lcom/codahale/metrics/MetricRegistry;Lorg/apache/spark/SecurityManager;)V @116: invokevirtual
Reason:
Type âcom/codahale/metrics/json/MetricsModuleâ (current frame, stack[2]) is not assignable to âshaded/com/fasterxml/jackson/databind/Moduleâ
Current Frame:
bci: @116
flags: { }
locals: { âorg/apache/spark/metrics/sink/MetricsServletâ, âjava/util/Propertiesâ, âcom/codahale/metrics/MetricRegistryâ, âorg/apache/spark/SecurityManagerâ }
stack: { âorg/apache/spark/metrics/sink/MetricsServletâ, âshaded/com/fasterxml/jackson/databind/ObjectMapperâ, âcom/codahale/metrics/json/MetricsModuleâ }
Bytecode:
0000000: 2a2b b500 2a2a 2cb5 002f 2a2d b500 5c2a
0000010: b700 7e2a 1280 b500 322a 1282 b500 342a
0000020: 03b5 0037 2a2b 2ab6 0084 b600 8ab5 0039
0000030: 2ab2 008f 2b2a b600 91b6 008a b600 95bb
0000040: 0014 592a b700 96b6 009c bb00 1659 2ab7
0000050: 009d b600 a1b8 00a7 b500 3b2a bb00 7159
0000060: b700 a8bb 00aa 59b2 00b0 b200 b32a b600
0000070: b5b7 00b8 b600 bcb5 003e b1