【问题标题】:Recreate a store in atoti with the same name without restarting the kernel在不重启内核的情况下在atoti中重新创建同名存储
【发布时间】:2021-04-30 05:01:00
【问题描述】:

说明 当调用两次以下代码时:

store = session.read_pandas(dataframe, 'my_store', keys=['id'])

我们得到以下异常:

AtotiJavaException: A store with the name my_store already exists! 
If you want to recreate this store with a different CSV, you will have to re-create the session.

我正在寻找一种方法来重新创建这样的存储(覆盖以前的存储),而无需重新启动内核并重新运行所有单元。

【问题讨论】:

    标签: jupyter-notebook jupyter olap restart atoti


    【解决方案1】:

    免责声明:我是 attoti 的数据科学家。

    我为上述问题找到的一个快速解决方法是: 无需重新启动整个内核,您可以简单地重新创建会话,即再次运行以下单元,然后您可以使用相同的 CSV 文件创建存储。 (你通常在导入atoti后执行的步骤。)

    # Tell atoti to load the database containing the UI dashboards
    config = create_config(metadata_db="./metadata.db")
    
    session = atoti.create_session(config=config)
    

    【讨论】:

      猜你喜欢
      • 2016-05-31
      • 2013-05-21
      • 1970-01-01
      • 2015-05-06
      • 1970-01-01
      • 2020-01-11
      • 1970-01-01
      • 2012-05-13
      • 2011-04-07
      相关资源
      最近更新 更多