You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by GitBox <gi...@apache.org> on 2022/02/17 10:02:34 UTC

[GitHub] [incubator-linkis] Andywli opened a new issue #1499: [Bug] The json4s package conflict problem caused by inconsistent Spark versions

Andywli opened a new issue #1499:
URL: https://github.com/apache/incubator-linkis/issues/1499


   ### Search before asking
   
   - [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.
   
   
   ### Linkis Component
   
   linkis-commons
   
   ### What happened + What you expected to happen
   
   Spark版本不一致导致的json4s包冲突问题,报错如下:错误信息:caused by: java.lang.NoSuchMethodError: org.json4s.jackson.jsonMethod$
   
   The json4s package conflict problem caused by inconsistent Spark versions, the error is as follows: Error message:
   
   > caused by: java.lang.NoSuchMethodError: org.json4s.jackson.jsonMethod$
   
   ### Relevent platform
   
   ·
   
   ### Reproduction script
   
   ·
   
   ### Anything else
   
   This question comes from the QA documentation of the Linkis community
   QA Link:https://docs.qq.com/doc/DSGZhdnpMV3lTUUxq
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
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: commits-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[GitHub] [incubator-linkis] Andywli closed issue #1499: [Bug] The json4s package conflict problem caused by inconsistent Spark versions

Posted by GitBox <gi...@apache.org>.
Andywli closed issue #1499:
URL: https://github.com/apache/incubator-linkis/issues/1499


   


-- 
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: commits-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[GitHub] [incubator-linkis] Andywli commented on issue #1499: [Bug] The json4s package conflict problem caused by inconsistent Spark versions

Posted by GitBox <gi...@apache.org>.
Andywli commented on issue #1499:
URL: https://github.com/apache/incubator-linkis/issues/1499#issuecomment-1042774451


   This is because of Spark jars' json4s and lib/linkis-engineplugins/spark/dist/version/lib
   The version of json4s in the package is inconsistent. When the official release is released, the supported version of Spark will be indicated later. If it is inconsistent, there will be this problem.
   The solution is to replace the json4s package in Spark jars with lib/linkis-engineplugins/spark/dist/version/lib
   The json4s version in the package. In addition, the netty package may also conflict, which can be handled according to the method of Json4s. Then restart the ecp service: sh sbin/linkis-damon.sh restart cg-engineplugin


-- 
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: commits-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[GitHub] [incubator-linkis] Andywli commented on issue #1499: [Bug] The json4s package conflict problem caused by inconsistent Spark versions

Posted by GitBox <gi...@apache.org>.
Andywli commented on issue #1499:
URL: https://github.com/apache/incubator-linkis/issues/1499#issuecomment-1042773706


   这个是因为Spark jars的json4s和lib/linkis-engineplugins/spark/dist/version/lib
   包里面的json4s版本不一致,官方发布release时会在后面注明Spark的支持版本,如果不一致会存在该问题。
   解决办法将Spark jars里面的json4s的包替换掉lib/linkis-engineplugins/spark/dist/version/lib
    包里面的json4s版本。另外netty包也可能存在冲突,可按Json4s的方法进行处理.然后重启ecp服务即可:sh sbin/linkis-damon.sh restart cg-engineplugin
   


-- 
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: commits-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org