我们如何将数据存储到IBM Bluemix中的Cloudant DB



目前,我正在尝试使用Python的Pixiedust包从笔记本中存储数据到Cloudant DB中。在建立连接后,当试图向数据库插入数据时,它给了我这个错误。

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 DB ?

此问题已得到解决,新版本的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:

最新更新