我们如何在ibmbluemix中将数据存储到Cloudant数据库中?

2024-04-29 13:04:56 发布

您现在位置:Python中文网/ 问答频道 /正文

目前,我正在尝试使用Python的Pixiedust包将笔记本中的数据存储到cloudantdb中。建立连接后,在尝试将数据插入数据库时会出现此错误。你知道吗

nPy4JJavaError: An error occurred while calling o172.save.
: org.apache.spark.SparkException: Job aborted due to stage failure: Task 3 in stage 38.0 failed 10 times, most recent failure: '
Lost task 3.9 in stage 38.0 (TID 1811, yp-spark-dal09-env5-0046): spray.http.IllegalUriException: The path of an URI without authority must not begin with "//"

请告诉我如何将数据从笔记本存储到Cloudant数据库中?你知道吗


Tags: 数据inan数据库failure错误笔记本error
1条回答
网友
1楼 · 发布于 2024-04-29 13:04:56

这个问题已经得到解决,PixieDust的新版本已经上传到PyPI。通过发出以下命令,可以在笔记本中下载最新版本:

!pip install user upgrade no-deps pixiedust

升级完成后重新启动内核。你知道吗

您可以通过运行以下命令来验证PixieDust版本(在版本0.40中已修复):

!pip show pixiedust

输出应类似于以下内容:

 -
Metadata-Version: 1.0
Name: pixiedust
Version: 0.40
Summary: Misc helpers for Spark Python Notebook
Home-page: https://github.com/ibm-cds-labs/pixiedust
Author: David Taieb
Author-email: david_taieb@us.ibm.com
License: Apache 2.0
Location: /gpfs/global_fs01/sym_shared/YPProdSpark/user/sc7c-6877c2673165c0-9db077469d48/.local/lib/python2.7/site-packages
Requires: maven-artifact, mpld3
Classifiers:

相关问题 更多 >