coldfusioncoder commented on issue #12507:
URL: https://github.com/apache/iceberg/issues/12507#issuecomment-3198361951

   > [@coldfusioncoder](https://github.com/coldfusioncoder) I have unzipped the 
file under `/usr/share/confluent-hub-components/iceberg-kafka-connect` but 
still running into `NoClassDef` errors. The zip file I am extracting is 
`iceberg-kafka-connect-runtime-389c04c.zip`
   > 
   > ```
   > [appuser@84df995315c9 iceberg-kafka-connect]$ pwd
   > /usr/share/confluent-hub-components/iceberg-kafka-connect
   > [appuser@84df995315c9 iceberg-kafka-connect]$ ls -ltr
   > total 24
   > drwxr-xr-x 1 appuser appuser 4096 Jul  8 21:17 lib
   > drwxr-xr-x 1 appuser appuser 4096 Jul  8 21:17 doc
   > -rw-r--r-- 1 appuser appuser 1301 Jul  9 15:08 manifest.json
   > drwxr-xr-x 1 appuser appuser 4096 Jul  9 19:46 assets
   > [appuser@84df995315c9 iceberg-kafka-connect]$ ls 
lib/iceberg-kafka-connect-1.9.1.jar 
   > lib/iceberg-kafka-connect-1.9.1.jar
   > ```
   > 
   > Appreciate any help. TIA
   
   Hey @abhishekkh. My guess is that you just need to move the JAR files from 
the `lib` folder to 
`/usr/share/confluent-hub-components/iceberg-kafka-connect/`. I do this with 
the COPY directive in my Dockerfile:
   ```
   FROM confluentinc/cp-kafka-connect:7.4.10
   
   RUN confluent-hub install --no-prompt 
jcustenborder/kafka-connect-json-schema:0.2.5
   RUN confluent-hub install --no-prompt confluentinc/kafka-connect-s3:10.6.7
   # RUN confluent-hub install --no-prompt iceberg/iceberg-kafka-connect:1.9.1
   
   ARG PLUGINS_PATH=/usr/share/confluent-hub-components
   
   RUN mkdir ${PLUGINS_PATH}/iceberg-iceberg-kafka-connect
   
   RUN curl -L -o 
${PLUGINS_PATH}/iceberg-iceberg-kafka-connect/iceberg-nessie-1.9.1.jar \
       
https://repo1.maven.org/maven2/org/apache/iceberg/iceberg-nessie/1.9.1/iceberg-nessie-1.9.1.jar
   
   RUN curl -L -o 
${PLUGINS_PATH}/iceberg-iceberg-kafka-connect/nessie-model-0.103.3.jar \
       
https://repo1.maven.org/maven2/org/projectnessie/nessie/nessie-model/0.103.3/nessie-model-0.103.3.jar
   
   RUN curl -L -o 
${PLUGINS_PATH}/iceberg-iceberg-kafka-connect/nessie-client-0.103.3.jar \
       
https://repo1.maven.org/maven2/org/projectnessie/nessie/nessie-client/0.103.3/nessie-client-0.103.3.jar
   
   COPY ./deps/iceberg-kafka-connect-runtime-1.10.0-SNAPSHOT/lib/* \
       ${PLUGINS_PATH}/iceberg-iceberg-kafka-connect/
   ```
   
   You can see I'm manually adding some other JAR files for using Nessie, so 
add/remove as needed for your system. Hope this helps.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to