当前位置:网站首页>Spark002---spark任务提交,传入json作为参数
Spark002---spark任务提交,传入json作为参数
2022-07-25 15:01:00 【维格堂406小队】
提交spark任务时,需要传入json作为参数。遇到几个坑,记录下来:
- 原始json串,双引号加反斜杠\
- 加反斜杠之后的json,最外侧加上双引号
- 最后如果有两个连续的},即有嵌套json,连续的两个}之间要加上空格
看个正确的例子:
"{\"Code\":[\"12345\"],\"data\":{\"id\":\"502826143\"} }"
2021-05-24 于南京市江宁区九龙湖
边栏推荐
- LeetCode_ String_ Medium_ 151. Reverse the words in the string
- Browser based split screen reading
- LeetCode-198-打家劫舍
- 6线SPI传输模式探索
- Cmake specify opencv version
- How many ways can you assign initial values to a two-dimensional array?
- System. Accessviolationexception: an attempt was made to read or write to protected memory. This usually indicates that other memory is corrupted
- VS2010 add WAP mobile form template
- 给VS2010自动设置模板,加头注释
- [Android] recyclerview caching mechanism, is it really difficult to understand? What level of cache is it?
猜你喜欢

Syntax summary of easygui

Melody + realsense d435i configuration and error resolution

Process control (Part 1)

Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud

51 single chip microcomputer learning notes (2)

6月产品升级观察站

"Ask every day" reentrantlock locks and unlocks

流程控制(上)

41 picture background synthesis - colorful navigation map

System.AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏
随机推荐
Unable to start web server when Nacos starts
简易轮播图和打地鼠
"Ask every day" how locksupport realizes thread waiting and wakeup
sql to linq 之存储过程偏
How many ways can you assign initial values to a two-dimensional array?
Several methods of spark parameter configuration
Cmake specify opencv version
51 single chip microcomputer learning notes (1)
Awk from getting started to digging in (20) awk parsing command line parameters
TypeScript学习1——数据类型
How to realize a correct double check locking
PHP 通过原生CURL实现非阻塞(并发)请求模式
41 picture background synthesis - colorful navigation map
Fast-lio: fast and robust laser inertial odometer based on tightly coupled IEKF
Leo-sam: tightly coupled laser inertial odometer with smoothing and mapping
Jmeter的随机数函数怎么用
TypeScript学习2——接口
I2C设备驱动程序的层次结构
LeetCode_因式分解_简单_263.丑数
37 element mode (inline element, block element, inline block element)