[ 
https://issues.apache.org/jira/browse/SPARK-17787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15568020#comment-15568020
 ] 

Saisai Shao commented on SPARK-17787:
-------------------------------------

I guess you don't have jars on the node where AM/Executors launch in path 
"/home/hos/KafkaApp/kafka_2.10-0.8.0.jar".

> spark submit throws error while using kafka Appender log4j:ERROR Could not 
> instantiate class [kafka.producer.KafkaLog4jAppender]. 
> java.lang.ClassNotFoundException: kafka.producer.KafkaLog4jAppender
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-17787
>                 URL: https://issues.apache.org/jira/browse/SPARK-17787
>             Project: Spark
>          Issue Type: Bug
>    Affects Versions: 1.6.2
>            Reporter: Taukir
>
> While trying to push spark app logs to kafka , I am trying to use 
> KafkaAppender. Please find the command below.It throws the following  error
> spark-submit --class com.SampleApp --conf spark.ui.port=8081 --master 
> yarn-cluster
> --files 
> files/home/hos/KafkaApp/log4j.properties#log4j.properties,/home/hos/KafkaApp/kafka_2.10-0.8.0.jar
> --conf 
> spark.driver.extraJavaOptions='-Dlog4j.configuration=file:/home/hos/KafkaApp/log4j.properties'
> --conf "spark.driver.extraClassPath=/home/hos/KafkaApp/kafka_2.10-0.8.0.jar"
> --conf 
> spark.executor.extraJavaOptions='-Dlog4j.configuration=file:/home/hos/KafkaApp/log4j.properties'
> --conf 
> "spark.executor.extraClassPath=/home/hos/KafkaApp/kafka_2.10-0.8.0.jar" 
> Kafka-App-assembly-1.0.jar
>  it it throws java.lang.ClassNotFoundException: 
> kafka.producer.KafkaLog4jAppender exception



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to