解决win10访问网页的“504 Gateway Time-out”错误

本文介绍如何修改php.ini文件中的max_execution_time参数,以增加PHP脚本的最大执行时间,适用于需要长时间运行的任务场景。同时,指导读者通过命令行操作,使用ipconfig/flushdns命令清除DNS缓存,解决网络访问异常问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1:php.ini

max_execution_time = 30
php脚本最大执行时间 ,将数值调大

2:在管理员命令提示符窗口中输入命令  ipconfig /flushdns

--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) Cell In[1], line 3 1 from pyspark.sql import SparkSession ----> 3 spark = SparkSession.builder \ 4 .appName("HiveConnection") \ 5 .config("hive.metastore.uris", "thrift://<your-metastore-host>:9083") \ 6 .config("spark.sql.hive.metastore.jars", "/path/to/hive/lib/*") \ 7 .config("spark.sql.hive.metastore.version", "3.1.2") \ 8 .config("hive.metastore.client.socket.timeout", "300") \ 9 .config("hive.metastore.client.connect.retry.delay", "5") \ 10 .config("hive.metastore.failure.retries", "10") \ 11 .enableHiveSupport() \ 12 .getOrCreate() File d:\pyspark\Anaconda3\envs\pyspark\lib\site-packages\pyspark\sql\session.py:477, in SparkSession.Builder.getOrCreate(self) 475 sparkConf.set(key, value) 476 # This SparkContext may be an existing one. --> 477 sc = SparkContext.getOrCreate(sparkConf) 478 # Do not update `SparkConf` for existing `SparkContext`, as it's shared 479 # by all sessions. 480 session = SparkSession(sc, options=self._options) File d:\pyspark\Anaconda3\envs\pyspark\lib\site-packages\pyspark\context.py:512, in SparkContext.getOrCreate(cls, conf) 510 with SparkContext._lock: ... --> 106 raise RuntimeError("Java gateway process exited before sending its port number") 108 with open(conn_info_file, "rb") as info: 109 gateway_port = read_int(info) RuntimeError: Java gateway process exited before sending its port number Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
最新发布
06-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值