当前位置:网站首页>集群使用规范
集群使用规范
2022-07-29 08:16:00 【手撕易拉罐】
1.数据尽量用应用层的库表,减少贴源层库表的访问;或者自建应用层表并定时更新;
2."spark查询,pandas处理、拼接"和"spark查询、处理、拼接"要平衡好运算速度、集群资源占用两者;
3.避免将spark.dataframe转pd.dataframe并to_csv;将spark.dataframe直接以csv方式存到hdfs:
192.168.101.11是master的ip,默认web UI界面端口50070,文件上传下载端口8020
3.1选择要储存的集群位置:例如 hdfs://192.168.101.11:8020/tmp/123.csv
3.2保存
spark_df.write.format(“csv”).options(header=‘true’, inferschema=‘true’).save(‘hdfs://192.168.101.11:8020/tmp/’ + “123.csv”)
3.3查看
df = od.spark.read.format(‘com.databricks.spark.csv’).options(header=‘true’, inferschema=‘true’).load(‘hdfs://192.168.101.11:8020/tmp/123.csv’)
边栏推荐
- Operator overloading
- Noise monitoring and sensing system
- How to connect VMware virtual machine to external network under physical machine win10 system
- Time function in MySQL
- Stm8s003 domestic substitute for dp32g003 32-bit microcontroller chip
- Reading papers on false news detection (4): a novel self-learning semi supervised deep learning network to detect fake news on
- Redshift 2.6.41 for maya2018 watermark removal
- Character shader exercise
- [robomaster] control RM motor from scratch (2) -can communication principle and electric regulation communication protocol
- Qt/PyQt 窗口类型与窗口标志
猜你喜欢

What constitutes the smart charging pile system?

Simplefoc parameter adjustment 3-pid parameter setting strategy
![[beauty of software engineering - column notes] 29 | automated testing: how to kill bugs in the cradle?](/img/e1/8a61f85bf93801d842e78ab4f7edc7.png)
[beauty of software engineering - column notes] 29 | automated testing: how to kill bugs in the cradle?

Time function in MySQL

UE4 principle and difference between skylight and reflecting sphere

Some tools, plug-ins and software links are shared with you~

Inclination sensor accuracy calibration test

STM32 detection signal frequency

Simplefoc+platformio stepping on the path of the pit

Tcp/ip five layer reference model and corresponding typical devices and IPv6
随机推荐
torch.nn.functional.one_hot()
Reading papers on false news detection (4): a novel self-learning semi supervised deep learning network to detect fake news on
[beauty of software engineering - column notes] 22 | how to do a good job in technology selection for the project?
2.4G band wireless transceiver chip si24r1 summary answer
AES 双向加密解密工具
Stm32ff030 replaces domestic MCU dp32g030
阿里巴巴政委体系-第四章、政委建在连队上
Product promotion channels and strategies, cosmetics brand promotion methods and steps
Charging pile charging technology new energy charging pile development
[beauty of software engineering - column notes] 21 | architecture design: can ordinary programmers also implement complex systems?
110 MySQL interview questions and answers (continuously updated)
[密码学实验] 0x00 安装NTL库
【学术相关】为什么很多国内学者的AI的论文复现不了?
torch.Tensor和torch.tensor的区别
Use the cloud code to crack the problem of authentication code encountered during login
Alibaba political commissar system - Chapter 1: political commissars are built on companies
DC motor control system based on DAC0832
Low power Bluetooth 5.0 chip nrf52832-qfaa
Privacy is more secure in the era of digital RMB
Ansible (automation software)