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以前的就好了
相关推荐
Cocos Creator 3D开发入门----CocosCreator3D篮球.zip import { _decorator, Component, Node, RigidBodyComponent, PhysicMaterial, ColliderComponent } from "cc"; const { ccclass, property } = _...
### Ubuntu 18.04 下解决 Qt 出现 qt.qpa.plugin: Could not load the Qt platform plugin “xcb” 问题 #### 问题背景及描述 在 Ubuntu 18.04 系统中,安装并尝试运行 Qt 5.15.0 版本的应用程序时可能会遇到以下...
在Windows 10下使用MinGW静态...分享出来方便大家,按照http://blog.csdn.net/spotian/article/details/77413064的教程编译的,测试在QT Creator可以使用,配置方法自行搜索,但是好像没有网络模块,有需要的自己下载吧
QT 开发方法,开发工具使用,学习QT变成的入门,较之随机的文档更加系统一些吧。
CocosCreator Chrome插件是专为Cocos Creator游戏开发人员设计的一系列实用工具,它们能够极大地提升开发效率和调试体验。这些插件包括Spector.js、Cocos Creator Debugger和Cocos Creator Devtool,以及WebGL ...
本书《Packt.Application.Development.with.Qt.Creator》旨在帮助具有一定基础的Qt开发者掌握如何利用Qt Creator高效地构建跨平台应用程序。 #### 二、基础知识 1. **Qt框架简介**: - Qt是一款强大的跨平台C++...
Cocos Creator是一款强大的2D和3D游戏开发框架,它为开发者提供了丰富的工具集,用于创建高质量的游戏。在游戏开发过程中,打包是必不可少的一环,它将项目资源、代码和配置整合成可分发的安装包。手动打包虽然可行...
QtCreator调试工具,
Application Development with Qt Creator(2nd) 英文azw3 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
### QtCreator“调试器未设置”问题解析及解决方法 #### 一、问题背景与现象 在使用QtCreator开发环境中,部分用户可能会遇到一个常见问题:“调试器未设置”。这一问题通常出现在安装完Qt5.5之后尝试进行调试操作...
Application Development with Qt Creator(2nd) 英文epub 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
FontCreator 中文使用手册说明书 FontCreator 是一个功能强大且易于使用的字体编辑软件,允许用户创建、编辑和管理字体。下面是 FontCreator 中文使用手册说明书的详细知识点: 一、Font Creator 简介 Font...
- **local、packages、library、settings**:这些可能是CocosCreator项目的特定文件夹,`local`可能包含本地设置,`packages`可能包含第三方插件,`library`可能存储编译后的资源,`settings`则可能保存项目的一些...
此外,"RoboEdit Meta Name Creator v1.0.16"的版本号表明它已经经过了一定程度的更新与优化,可能包括错误修复、性能提升和新功能的添加,确保了软件的稳定性和适应性。例如,v1.0.16可能增加了对HTML5新元素的支持...
CocosCreator 嵌入原生 Android 项目详解 本文将详细介绍如何将 CocosCreator 项目嵌入到原生 Android 项目中,包括编译 CocosCreator 项目、配置 Android 项目、添加libcocos2dx依赖模板、设置依赖模块、启动Cocos...
Qt Creator是一款强大的集成开发环境(IDE),主要用于开发使用Qt库的应用程序。这个“qtcreator中文包”是针对Qt Creator的本地化版本,旨在为中文用户提供了友好的界面和文档翻译,使得开发者在使用Qt Creator时...
【标题】"Cocos Creator接入穿山甲GroMore广告demo"是关于在Cocos Creator游戏引擎中集成穿山甲(Qihoo 360's GroMore)广告平台的示例教程。穿山甲是一家知名的移动广告平台,为开发者提供广告变现服务。这个demo...
5. `local`、`packages`、`library`、`assets`、`build`、`settings`:这些目录分别存储了本地设置、第三方包、库文件、项目资产、构建结果以及项目特定设置,构成了Cocos Creator项目的完整结构。 在Cocos Creator...
Arm 平台 qt creator 断点调试 Arm 平台 qt creator 断点调试是指在 Ubuntu 系统中使用 Qt Creator 实现 Arm 平台的断点调试。断点调试是指在程序执行过程中,设置断点,并在断点处暂停程序的执行,以便检查程序的...