spark本地IDE调试模式下:
JavaRDD<String> textFile = sc.textFile("E:\\json.txt",1);
执行异常:
com.fasterxml.jackson.databind.JsonMappingException: Could not find creator property with name 'id' (in class org.apache.spark.rdd.RDDOperationScope))
原因:
https://issues.apache.org/jira/browse/SPARK-8332 写道
Jonathan Kelly added a comment - 20/Oct/15 18:06
Oh, you might be right. I was thinking that I had tried compiling Spark with a newer version of Jackson (2.5.3) and still ran into problems, but now I'm second guessing myself. It might have only been that my classpath had both versions.
Jonathan Kelly added a comment - 20/Oct/15 20:38
Good news! I tried compiling Spark with Jackson 2.5.3 instead of 2.4.4, and it seems to work just fine (as long as this is the only version of Jackson 2.x in the classpath; the issue described above does indeed only occur when multiple versions are in the classpath). Would it be possible to upgrade to Jackson 2.5.3 in Spark 1.6.0? If so, should I cut an issue for this?
Sean Owen added a comment - 20/Oct/15 21:40
How about 2.6, just out of curiosity?
The other issue is colliding with Hadoop's Jackson, which I'm pretty sure is also not shaded. Of course, shading is an answer there, for Spark, also worth a try. It may be that it just pushes the problem around, and now your app still has to shade its Jackson to dodge Hadoop's copy, until Hadoop 3 at least.
What a mess eh?
Oh, you might be right. I was thinking that I had tried compiling Spark with a newer version of Jackson (2.5.3) and still ran into problems, but now I'm second guessing myself. It might have only been that my classpath had both versions.
Jonathan Kelly added a comment - 20/Oct/15 20:38
Good news! I tried compiling Spark with Jackson 2.5.3 instead of 2.4.4, and it seems to work just fine (as long as this is the only version of Jackson 2.x in the classpath; the issue described above does indeed only occur when multiple versions are in the classpath). Would it be possible to upgrade to Jackson 2.5.3 in Spark 1.6.0? If so, should I cut an issue for this?
Sean Owen added a comment - 20/Oct/15 21:40
How about 2.6, just out of curiosity?
The other issue is colliding with Hadoop's Jackson, which I'm pretty sure is also not shaded. Of course, shading is an answer there, for Spark, also worth a try. It may be that it just pushes the problem around, and now your app still has to shade its Jackson to dodge Hadoop's copy, until Hadoop 3 at least.
What a mess eh?
原因是:jackJson版本冲突,换成2.4以前的就好了
相关推荐
在Windows 10下使用MinGW静态...分享出来方便大家,按照http://blog.csdn.net/spotian/article/details/77413064的教程编译的,测试在QT Creator可以使用,配置方法自行搜索,但是好像没有网络模块,有需要的自己下载吧
QtCreator调试工具,
Application Development with Qt Creator(2nd) 英文azw3 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Cocos Creator 3D开发入门----CocosCreator3D篮球.zip import { _decorator, Component, Node, RigidBodyComponent, PhysicMaterial, ColliderComponent } from "cc"; const { ccclass, property } = _...
Application Development with Qt Creator(2nd) 英文epub 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
cocoscreator 翻牌效果cocoscreator 翻牌效果cocoscreator 翻牌效果
QT 开发方法,开发工具使用,学习QT变成的入门,较之随机的文档更加系统一些吧。
qt creator系列教程,学习qt creator的材料
usage: MP4Creator <options> Options: -aac-old-file-format Use old file format with 58 bit adts headers -aac-profile=[2|4] Force AAC to mpeg2 or mpeg4 profile -allow-avi-files Allow avi files -...
ULID创建者 一个用于生成Java库。 按字典顺序生成; 可以存储为UUID / GUID; 可以存储为26个字符的字符串; 可以存储为16个字节的数组; 字符串格式编码为 ; 字符串格式是URL安全且不区分大小写的。 如何...
CREATOR中控编程 技术资料 详细的介绍了CREATOR中控编程基础教程
单机捕鱼-creator.zip源码cocos creator项目源码下载单机捕鱼-creator.zip源码cocos creator项目源码下载 1.适合个人学习技术做项目参考 2.开发脚本为javsScropt或者typeScript 3.适合小公司开发游戏项目参考
cocos creator为按钮添加事件的三种骚操作
疯狂赛车-creator.zip源码cocos creator项目源码下载疯狂赛车-creator.zip源码cocos creator项目源码下载 1.适合个人学习技术做项目参考 2.开发脚本为javsScropt或者typeScript 3.适合小公司开发游戏项目参考
unity解密游戏系统Adventure Creator Unity商店的精品资源 适合二次开发和学习使用 是个Unitypackage包 , 创建个空项目直接导入就行了 如果打开报错请切换编译器版本或者下载最新编译器就行了 unity解密游戏系统...
连连看-creator.zip源码cocos creator项目源码下载连连看-creator.zip源码cocos creator项目源码下载 1.上线产品适合个人学习技术做项目参考 2.开发脚本为javsScropt或者typeScript 3.上线产品适合小公司开发游戏...
Application Development with Qt Creator.2013 文字版
creator固定路径行走
本文档中记录了QtCreator5.12下使用MVCS2017_64编译器连接Oracle12.2数据库时遇到的问题及解决方法,如: QSqlDatabase: QOCI driver not loaded,包括驱动的添加,数据库的安装配置,经过亲测通过,每一步都配有...
介绍如何使用QT做应用的开发,适合有一定基础的QT开发人员