且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用PySpark内核时出现Jupyter Notebook错误:由于出现致命错误而导致代码失败:发送HTTP请求时出错

更新时间:2022-12-03 17:46:21

如果您尝试通过Juvy将Jupyter Notebook连接到Spark服务器(例如AWS Glue Development Endpoint),则必须用Spark替换"localhost"服务器IP地址,位于:〜/.sparkmagic/config.json

If you are trying to connect your Jupyter Notebook to a Spark server through Livy (e.g. AWS Glue Development Endpoint), you have to replace "localhost" with the Spark server IP address in: ~/.sparkmagic/config.json

如此处所述: https ://aws.amazon.com/blogs/machine-learning/build-amazon-sagemaker-notebooks-backed-by-spark-in-amazon-emr/