本文介绍了我们如何将数据存储到IBM Bluemix中的Cloudant DB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我正在尝试使用Python的Pixiedust软件包将数据从笔记本存储到Cloudant DB中.建立连接后,尝试向数据库中插入数据时会出现此错误.

Currently I am trying to stash data into Cloudant DB from a notebook using Python's Pixiedust package. After establishing a connection it gives me this error when trying to insert data into the database.

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

Please tell me how I can stash data into Cloudant DB from a notebook?

推荐答案

此问题已解决,新版本的PixieDust已上传到PyPI.您可以通过发出以下命令在笔记本中下载最新版本:

This issue has been addressed and a new version of PixieDust has been uploaded to PyPI. You can download the latest version in your notebook by issuing the following command:

!pip install --user --upgrade --no-deps pixiedust

升级完成后重新启动内核.

Restart your kernel after the upgrade is complete.

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

You can verify your PixieDust version (this was fixed in version 0.40) by running the following command:

!pip show pixiedust

输出应类似于以下内容:

The output should look similar to the following:

---
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: [email protected]
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:

这篇关于我们如何将数据存储到IBM Bluemix中的Cloudant DB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 21:39