当前位置:网站首页>Cluster usage specification
Cluster usage specification
2022-07-29 08:17:00 【Hand tear can】
1. Try to use the database table of the application layer , Reduce access to the source layer library table ; Or build your own application layer table and update it regularly ;
2."spark Inquire about ,pandas Handle 、 Splicing " and "spark Inquire about 、 Handle 、 Splicing " Balance the calculation speed 、 Cluster resources occupy both ;
3. Avoid spark.dataframe turn pd.dataframe and to_csv; take spark.dataframe Directly to csv Save to hdfs:
192.168.101.11 yes master Of ip, Default web UI Interface port 50070, File upload and download port 8020
3.1 Select the cluster location to store : for example hdfs://192.168.101.11:8020/tmp/123.csv
3.2 preservation
spark_df.write.format(“csv”).options(header=‘true’, inferschema=‘true’).save(‘hdfs://192.168.101.11:8020/tmp/’ + “123.csv”)
3.3 see
df = od.spark.read.format(‘com.databricks.spark.csv’).options(header=‘true’, inferschema=‘true’).load(‘hdfs://192.168.101.11:8020/tmp/123.csv’)
边栏推荐
- [beauty of software engineering - column notes] "one question and one answer" issue 2 | 30 common software development problem-solving strategies
- Stm8s003 domestic substitute for dp32g003 32-bit microcontroller chip
- Hal learning notes - Advanced timer of 7 timer
- Operator overloading
- MySQL中的时间函数
- 亚马逊测评自养号是什么,卖家应该怎么做?
- Time function in MySQL
- Intelligent shelf safety monitoring system
- Windows 安装 MySQL 5.7详细步骤
- What is Amazon self support number and what should sellers do?
猜你喜欢
Unity多人联机框架Mirro学习记录(一)
Application scheme of charging pile
Official tutorial redshift 01 basic theoretical knowledge and basic characteristics learning
[beauty of software engineering - column notes] "one question and one answer" issue 2 | 30 common software development problem-solving strategies
简易计算器微信小程序项目源码
Unicode private use areas
Privacy is more secure in the era of digital RMB
[beauty of software engineering - column notes] 24 | technical debt: continue to make do with it, or overthrow it and start over?
深度学习(1):银行客户流失预测
V-Ray 5 acescg workflow settings
随机推荐
[beauty of software engineering - column notes] 26 | continuous delivery: how to release new versions to the production environment at any time?
【学术相关】为什么很多国内学者的AI的论文复现不了?
Proteus simulation based on msp430f2491
Unity shader learning (VI) achieving radar scanning effect
DC motor speed regulation system based on 51 single chip microcomputer (use of L298)
What is Amazon self support number and what should sellers do?
[beauty of software engineering - column notes] "one question and one answer" issue 3 | 18 common software development problem-solving strategies
AES 双向加密解密工具
V-Ray 5 acescg workflow settings
Internet worm
C language problems
Phy6252 is an ultra-low power Bluetooth wireless communication chip for the Internet of things
Huawei wireless device configuration uses WDS technology to deploy WLAN services
Mysql rownum 实现
Unity多人联机框架Mirro学习记录(一)
阿里巴巴政委体系-第三章、阿里政委与文化对接
Si12t and si14t low power capacitive touch chips
Ue4/ue5 C disk enlargement processing
Inclination sensor is used for long-term monitoring of communication tower and high-voltage tower
Simplefoc parameter adjustment 2- speed and position control