Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

程序编译的时候是kafka_client-0.10.jar的,spark-submit的时候加载了CDH自带的spark-assembly。导致类冲突 #49

Open
LinMingQiang opened this issue Nov 29, 2018 · 1 comment

Comments

@LinMingQiang
Copy link

No description provided.

@LinMingQiang
Copy link
Author

例如KafkaConsumer这个类。程序编译的时候是kafka_client-0.10.jar的,但是spark-submit的时候使用的是spark-assembly-1.6.0-cdh5.14.4-hadoop2.6.0-cdh5.14.4.jar包里的 。导致程序运行的时候出现冲突。想请教下这个有好的解决办法吗

@LinMingQiang LinMingQiang changed the title spark-submit的时候加载了cdh的spark-assembly-1.6.0-cdh5.14.4-hadoop2.6.0-cdh5.14.4.jar。里面带了kafka 090的api。导致程序里kafka010 的api冲突报错。 程序编译的时候是kafka_client-0.10.jar的,spark-submit的时候加载了CDH自带的spark-assembly。导致类冲突 Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant