当前位置:网站首页>Troubleshooting the slow startup of spark local programs
Troubleshooting the slow startup of spark local programs
2022-07-27 15:37:00 【wankunde】
Test today spark When working locally , It is found that the program has to wait a long time every time it starts , Can start to enter the startup program normally , Seriously disturbed Debug The rhythm of . Then start ~~
add Yourkit Start parameter of , among tracing The parameter indicates that it starts when starting tracing Grade CPU profiling, Other kinds profiling The level can be adjusted as needed .
spark.driver.extraJavaOptions -agentpath:/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib=exceptions=disable,delay=100,tracing

Look at the stack of program startup , The one who found the card is still java Of net Package tool class , By the way, I took a look at the source code , Then write a test class to test whether it is really stuck here .
Local test procedure :
object IpTest extends Logging {
def main(args: Array[String]): Unit = {
logInfo("begin getCanonicalHostName")
val address = InetAddress.getLocalHost
println(address.getCanonicalHostName)
logInfo("end getCanonicalHostName")
}
}
20/03/04 00:21:53 INFO IpTest: begin getCanonicalHostName
192.168.0.194
20/03/04 00:22:23 INFO IpTest: end getCanonicalHostName
The test results were as expected .
Think about it. , I saw that the top layer of the stack turned out to be Inet6AddressImpl Implementation class of .
It must feel like DNS There is something wrong with the parsing service .
Enter the router , close IPv6 No effect .
There is no way , Force to specify in the router DNS Resolution server , Get it done ~~
20/03/04 00:51:59 INFO IpTest: begin getCanonicalHostName
192.168.0.194
20/03/04 00:51:59 INFO IpTest: end getCanonicalHostName
边栏推荐
- Complexity analysis
- EMC design scheme of RS485 interface
- 扩展Log4j支持日志文件根据时间分割文件和过期文件自动删除功能
- js寻找数组中的最大和最小值(Math.max()方法)
- Spark 3.0 DPP实现逻辑
- Distributed lock
- 谷粒商城配置CorsWebFilter后,报错:Resource sharing error:MultipleAllowOriginValues
- Huayun data creates a perfect information technology and innovation talent training system to help the high-quality development of information technology and innovation industry
- Spark Bucket Table Join
- Spark lazy list files 的实现
猜你喜欢

Leetcode-1737- minimum number of characters to change if one of the three conditions is met

IJCAI 2022 outstanding papers were published, and 298 Chinese mainland authors won the first place in two items
USB interface electromagnetic compatibility (EMC) solution

【剑指offer】面试题41:数据流中的中位数——大、小堆实现

Huayun data creates a perfect information technology and innovation talent training system to help the high-quality development of information technology and innovation industry

Spark TroubleShooting整理

npm install错误 unable to access
![[TensorBoard] OSError: [Errno 22] Invalid argument处理](/img/bf/c995f487607e3b307a268779ec1e94.png)
[TensorBoard] OSError: [Errno 22] Invalid argument处理

Photoelectric isolation circuit design scheme (six photoelectric isolation circuit diagrams based on optocoupler and ad210an)

QT (IV) mixed development using code and UI files
随机推荐
Spark3中Catalog组件设计和自定义扩展Catalog实现
Network equipment hard core technology insider router 19 dpdk (IV)
Sword finger offer merges two sorted linked lists
Leetcode-1737- minimum number of characters to change if one of the three conditions is met
【剑指offer】面试题39:数组中出现次数超过一半的数字
After configuring corswebfilter in grain mall, an error is reported: resource sharing error:multiplealloworiginvalues
Record record record
The first common node of the two linked lists of "Jianzhi offer"
Problem solving in magic tower project
Spark 任务Task调度异常分析
Use double stars instead of math.pow()
Singles cup, web:web check in
Spark 本地程序启动缓慢问题排查
【剑指offer】面试题52:两个链表的第一个公共节点——栈、哈希表、双指针
Multi table query_ Exercise 1 & Exercise 2 & Exercise 3
Leetcode 244 week competition - post competition supplementary question solution [broccoli players]
Hyperlink parsing in MD: parsing `this$ Set() `, ` $` should be preceded by a space or escape character`\`
【剑指offer】面试题42:连续子数组的最大和——附0x80000000与INT_MIN
Is it safe to open an account on a mobile phone?
Database: use the where statement to retrieve (header song)